yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78111
[Bug 1572018] Re: cloud-init dies with "ValueError: need more than 1 value to unpack" if sshd_config values are set without value
[Expired for cloud-init because there has been no activity for 60 days.]
** Changed in: cloud-init
Status: Incomplete => Expired
--
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/1572018
Title:
cloud-init dies with "ValueError: need more than 1 value to unpack" if
sshd_config values are set without value
Status in cloud-init:
Expired
Bug description:
If you have a sshd_config with the following valid content:
---
AllowUsers centos
AllowGroups
---
cloud-init (AWS) dies with
2016-04-16 04:05:33,304 - util.py[DEBUG]: Applying ssh credentials failed!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh.py", line 120, in handle
apply_credentials(keys, user, disable_root, disable_root_opts)
File "/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh.py", line 129, in apply_credentials
ssh_util.setup_user_keys(keys, user)
File "/usr/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 252, in setup_user_keys
(auth_key_fn, auth_key_entries) = extract_authorized_keys(username)
File "/usr/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 220, in extract_authorized_keys
ssh_cfg = parse_ssh_config_map(DEF_SSHD_CFG)
File "/usr/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 303, in parse_ssh_config_map
lines = parse_ssh_config(fname)
File "/usr/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 297, in parse_ssh_config
(key, val) = line.split(None, 1)
ValueError: need more than 1 value to unpack
SSH key is not copied to user, this instances becomes unusable.
Environment:
aws
cloud init from CentOS-Extras
[root@puppet ~]# rpm -qa | grep cloud-init
cloud-init-0.7.5-10.el7.centos.1.x86_64
{"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7",
"minor"=>"2", "full"=>"7.2.1511"}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1572018/+subscriptions
References