I can reliably reproduce this issue via the following steps:

1) Create blah.py under nova/api/metadata/ with these contents:

from nova.api.metadata import base

class CustomVendordata(base.VendorDataDriver):
    def __init__(self, *args, **kwargs):
        super(BcpcMetadata, self).__init__(*args, **kwargs)
    
    def get(self):
        return {"msg": "", "uuid": "4996e2b67d2941818646481453de1efe", "users": 
[{"username": "erhudy", "sshPublicKeys": [], "uuid": "erhudy"}], "name": 
"TestTenant"}

2) Configure Nova to use that class as the vendordata_driver in
nova.conf:

[DEFAULT]
vendordata_driver = nova.api.metadata.blah.CustomVendordata

3) Restart nova-api.

4) Launch an Ubuntu cloud instance on that hypervisor.

5) Experience cloud-init fury:

2015-07-22 15:30:56,075 - util.py[WARNING]: Running ssh-authkey-fingerprints 
(<module 'cloudinit.config.cc_ssh_authkey_fingerprints' from 
'/usr/lib/python2.7/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.pyc'>)
 failed
ec2: 
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
-----END SSH HOST KEY KEYS-----

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1469260

Title:
  Custom vendor data causes cloud-init failure on 0.7.5

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to