← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1077700] Re: Issue with ConfigDriveV2 and ssh authorized_keys

 

This bug was fixed in the package cloud-init - 0.7.0-0ubuntu2.2

---------------
cloud-init (0.7.0-0ubuntu2.2) quantal-proposed; urgency=low

  * debian/patches/lp-1090482-fix-cloud-config-mirrors.patch:
    fix issue with cloud-config data in user-data providing mirror
    info (LP: #1073077)

cloud-init (0.7.0-0ubuntu2.1) quantal-proposed; urgency=low

  * debian/patches/lp-1073077-zsh-workaround-for-locale_warn.patch: avoid
    warning when user's shell is zsh (LP: #1073077)
  * debian/patches/lp-1077700-config-drive-fix-ssh-authorized-keys.patch:
    fix bug in config-drive-v2 usage of authoried keys (LP: #1077700)
  * debian/patches/lp-1080985-fix-resize-root-noblock.patch:
    fix 'resize_root: noblock' (LP: #1080985)
  * debian/patches/lp-1076811-fix-userdata-update-to-distro-config.patch:
    fix updates to distro config via user-data. (LP: #1076811)
  * debian/patches/lp-1066115-install-landscape-if-needed.patch:
    fix permissions on landscape config, and ensure landscape client
    is installed if landscape config is given. (LP: #1066115)
  * debian/patches/lp-1070345-restart-landscape-if-needed.patch:
    restart the landscape-client if changes to config were made. (LP: #1070345)
  * debian/patches/lp-1077020-fix-ca-certificates-blanklines.patch: fix
    adding of empty lines in ca-certificates file (LP: #1077020)
 -- Scott Moser <smoser@xxxxxxxxxx>   Mon, 17 Dec 2012 10:15:03 -0500

** Changed in: cloud-init (Ubuntu Quantal)
       Status: Fix Committed => 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/1077700

Title:
  Issue with ConfigDriveV2 and ssh authorized_keys

Status in Init scripts for use on cloud images:
  Fix Released
Status in “cloud-init” package in Ubuntu:
  Fix Released
Status in “cloud-init” source package in Quantal:
  Fix Released
Status in “cloud-init” source package in Raring:
  Fix Released

Bug description:
  == SRU Information ==
  [Impact]
   * Users of openstack who use config-drive version 2 (added in folsom/quantal) will not have their ssh keys imported from the config drive.  They can use other means (ssh-import-id) to get ssh keys imported, but users would expect instances launched with a given key to have access to the instance with that key.
   * without this fix images don't work as expected with OpenStack folsom and confdig-drive-v2.
   * The bug was simply that the cloud-init key was expecting a key named 'public-keys' and openstack named it 'public_keys'

  [Test Case]
   * launch cloud-image instance on openstack folsom or grizzly with config-drive enabled passing, and pass in a ssh key (nova boot --key_name).
   * attempt to ssh in as 'ubuntu@' and see failure.

  [Regression Potential]
   * low chance for regression.  fix is tested in raring. Potential for regression would really be in a patched OpenStack.

  == End SRU Information ==

  
  cloud-init (latest sources) is not getting the public key from config drive. Tested on an Ubuntu 12.04 instance.

  A patch is attached.

  Here's the content of the configdrive generated by Nova:

  https://dl.dropbox.com/u/9060190/configdrive.tar.gz

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