Chef module fails to complete when chef_license is specified

Bug #1912424 reported by Alex
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Undecided
Alex

Bug Description

When the chef_license attribute is specified, the cloud-init run fails to complete as the attribute is interpreted as a path. The suggested fix for this is to move the attribute from CHEF_RB_TPL_PATH_KEYS to CHEF_RB_TPL_DEFAULTS

CHEF_RB_TPL_DEFAULTS = {
    # These are ruby symbols...
    'ssl_verify_mode': ':verify_none',
    'log_level': ':info',
    # These are not symbols...
    'log_location': '/var/log/chef/client.log',
    'validation_key': CHEF_VALIDATION_PEM_PATH,
    'validation_cert': None,
    'client_key': '/etc/chef/client.pem',
    'json_attribs': CHEF_FB_PATH,
    'file_cache_path': '/var/cache/chef',
    'file_backup_path': '/var/backups/chef',
    'pid_file': '/var/run/chef/client.pid',
    'show_time': True,
    'encrypted_data_bag_secret': None,
}
CHEF_RB_TPL_BOOL_KEYS = frozenset(['show_time'])
CHEF_RB_TPL_PATH_KEYS = frozenset([
    'log_location',
    'validation_key',
    'client_key',
    'file_cache_path',
    'json_attribs',
    'pid_file',
    'encrypted_data_bag_secret',
    'chef_license',
])

Tags: chef
Revision history for this message
Alex (scahartner) wrote :
Revision history for this message
Mina Galić (minagalic) wrote :
Revision history for this message
Alex (scahartner) wrote :

I am a little lost here. I thought I did that already. Would you be able to take a look at: https://code.launchpad.net/~scahartner/cloud-init/+git/cloud-init/+ref/Fix-1912424 and let me know how I can get this submitted correctly.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hey Alex, so I think what's happened is you've conflated a couple of parts of our process. If you haven't previously signed the Canonical CLA with your Launchpad ID (which AFAICT is true for you: you haven't), then you don't need to touch Launchpad at all for code submissions any longer. The steps in https://cloudinit.readthedocs.io/en/latest/topics/hacking.html#submitting-your-first-pull-request should guide you through submitting a GitHub pull request with your change.

Does that make sense? If not, feel free to reply here or reach out in #cloud-init on Freenode.

(I've proposed a doc change which will hopefully help folks avoid this confusion in future, if you'd like to take a look: https://github.com/canonical/cloud-init/pull/789)

Thanks!

James Falcon (falcojr)
Changed in cloud-init:
assignee: nobody → Alex (scahartner)
status: New → In Progress
Revision history for this message
Wes Deviers (wdeviers) wrote :

Is there any way I can help with this?

Revision history for this message
Dan Watkins (oddbloke) wrote :

Alex, are you still planning on submitting this via GitHub? Or could someone else pick this up to push forward?

Revision history for this message
Ben Hughes (bmhughes) wrote :

Ran into this recently and have put a PR in: https://github.com/canonical/cloud-init/pull/868. Pretty sure i've done everything I need to procedure wise.

Revision history for this message
James Falcon (falcojr) wrote :

This bug is believed to be fixed in cloud-init in version 21.2. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: In Progress → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.