chef / chef/chef-server

lb_internal['enable'] in /etc/opscode/chef-server.rb doesn't take effect

Open
#593 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Consider for next release Status: Good First Issue Status: To be prioritized Triage: Confirmed Type: Bug
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Found in chef-server-core-12.2.0-1.el6.x86_64.

= Root cause =

The following code replace lb_internal with lb-internal, but lb_internal is used in the private-chef cookbook.

https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/libraries/private_chef.rb#L227

rkey = if key =~ /^oc_/ || key == "redis_lb"
                 key # leave oc_* keys as is
               else
                 key.gsub('_', '-')
               end

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at private-chef-cookbooks/private-chef/libraries/private_chef.rb#L227 and inspect how configuration keys are transformed. Verify the behavior of lb_internal in /etc/opscode/chef-server.rb; done means that setting takes effect without being renamed incompatibly.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.