Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitab.rb sidekiq queue_groups array quoted. #406

Open
ccombs-trustamerica opened this issue Mar 23, 2023 · 0 comments
Open

Gitab.rb sidekiq queue_groups array quoted. #406

ccombs-trustamerica opened this issue Mar 23, 2023 · 0 comments

Comments

@ccombs-trustamerica
Copy link

ccombs-trustamerica commented Mar 23, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: PE 2021.7.2
  • Ruby:
  • Distribution: RHEL 7.9
  • Module version: 8.1.0

How to reproduce (e.g Puppet code you use)

sidekiq => {
      queue_groups    => '[\\'*\\'] * 4',
    },

OR

sidekiq => {
      queue_groups    => "['*'] * 4",
    },

What are you seeing

Both produce the same result:
gitlab.rb: sidekiq['queue_groups'] = "['*'] * 4"

What behaviour did you expect instead

gitlab.rb: sidekiq['queue_groups'] = ['*'] * 4

Output log

Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns:
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: ================================================================================
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: Error executing action create on resource 'template[/opt/gitlab/sv/sidekiq/run]'
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: ================================================================================
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns:
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: Chef::Mixin::Template::TemplateError
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: ------------------------------------
Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]/returns: undefined method `each' for "['*'] * 4":String

Any additional information you'd like to impart

If I try:

sidekiq                 => {
  queue_groups    => ['[\\'*\\'] * 4'],
},

Gitlab.rb: sidekiq['queue_groups'] = ["['*'] * 4"]

The reconfigure doesn't error, but I also don't get 4 sideqik processes.

https://docs.gitlab.com/ee/administration/sidekiq/extra_sidekiq_processes.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant