← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1912424] Re: Chef module fails to complete when chef_license is specified

 

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1912424

Title:
  Chef module fails to complete when chef_license is specified

Status in cloud-init:
  Fix Released

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',
  ])

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1912424/+subscriptions


References