** Attachment added: "Potential patch" https://bugs.launchpad.net/ubuntu/+bug/1423972/+attachment/4323594/+files/lp1423972.patched
** Also affects: cloud-init Importance: Undecided Status: New -- 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/1423972 Title: cloud-init skips cloud-config modules on 15.04 Azure Status in Init scripts for use on cloud images: New Status in Ubuntu: New Bug description: Cloud-init is skipping the init modules on Azure. The Azure Datasource is run and then cloud-config modules are run. This prevents user- creation, default SSH keys, etc. [ORIGINAL REPORT] Cloud-init is not creating the fabric defined user. The root cause appears that the "users-groups" cloud-config module is not being run. Feb 20 16:35:33 utl-vivid-en-200932 kernel: [ 34.032275] init: cloud-init main process (603) terminated with status 1 Feb 20 16:35:33 utl-vivid-en-200932 kernel: [ 34.139874] init: Error while reading from descriptor: Broken pipe Feb 20 16:35:33 utl-vivid-en-200932 kernel: [ 34.152660] init: failsafe main process (838) killed by TERM signal Feb 20 16:12:47 utl-vivid-en-200910 [CLOUDINIT] util.py[DEBUG]: Running module ssh-authkey-fingerprints (<module 'cloudinit.config.cc_s sh_authkey_fingerprints' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>) failed#012Traceback (m ost recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 664, in _run_modules#012 cc.run(run_name , mod.handle, func_args, freq=freq)#012 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 63, in run#012 return self._ runners.run(name, functor, args, freq, clear_on_fail)#012 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 198, in run #012 results = functor(*args)#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py", line 103, in handle#012 (key_fn, key_entries) = ssh_util.extract_authorized_keys(user_name)#012 File "/usr/lib/python3/dist-packages/cloudini t/ssh_util.py", line 211, in extract_authorized_keys#012 (ssh_dir, pw_ent) = users_ssh_info(username)#012 File "/usr/lib/python3/di st-packages/cloudinit/ssh_util.py", line 204, in users_ssh_info#012 pw_ent = pwd.getpwnam(username)#012KeyError: 'getpwnam(): name n ot found: utlemming' Feb 20 16:12:47 utl-vivid-en-200910 [CLOUDINIT] stages.py[DEBUG]: Running module keys-to-console (<module 'cloudinit.config.cc_keys_to_ console' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_keys_to_console.py'>) with frequency once-per-instance Snippet on the user {'cfg': {'_pubkeys': [{'fingerprint': '8ECDF2795861824ADBE631CF8FF016B85D2A0B04', 'path': '/home/utlemming/.ssh/authorized_keys'}], 'cloud_config_modules': [ ... ], 'disk_setup': {'ephemeral0': {'layout': [100], 'overwrite': True, 'table_type': 'gpt'}}, 'fs_setup': [{'device': 'ephemeral0.1', 'filesystem': 'ext4', 'replace_fs': 'ntfs'}], 'ssh_pwauth': False, 'system_info': {'default_user': {'lock_passwd': False, 'name': 'utlemming', 'passwd': '...'}}}, In --- ApportVersion: 2.16.1-0ubuntu2 Architecture: amd64 DistroRelease: Ubuntu 15.04 Package: cloud-init 0.7.7~bzr1060-0ubuntu1 PackageArchitecture: all ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5 Tags: vivid uec-images Uname: Linux 3.18.0-13-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: _MarkForUpload: True To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1423972/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp