Spaces in SSH public key comment breaks cloud-init
Bug #1297685 reported by
Juerg Haefliger
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Juerg Haefliger |
Bug Description
A Nova generated public SSH key contains the comment 'Generated by Nova'. Earlier versions of cloud-init (prior to 0.7.2) can't properly handle spaces in key comments and as a result, fail to disable the root account (if configured to do so).
Earlier Nova versions (Essex and older) didn't have spaces in the comment.
Problem introduced by commit: 114109dbf4094ae
cloud-init bug report: https:/
Changed in nova: | |
assignee: | nobody → Juerg Haefliger (juergh) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → High |
tags: | added: icehouse-rc-potential |
tags: |
added: icehouse-backport-potential removed: icehouse-rc-potential |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/76904 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8f299f5545e 19b36533742458d e43649d41080ed
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8f299f5545e19b3 6533742458de436 49d41080ed
Author: Juerg Haefliger <email address hidden>
Date: Thu Feb 27 14:39:06 2014 +0100
Remove spaces from SSH public key comment
An SSH key generated by Nova contains the comment 'Generated by Nova'. Older
versions (prior to 0.7.2) of cloud-init trip over the spaces in the comment
and as a result of that the key injected into the root account is not disabled
by cloud-init. Yes, it's a cloud-init bug but it's also a regression in the
sense that older OpenStack installations (Essex and older) don't contain
spaces in Nova generated key comments and thus older cloud-init's are not
affected in these environments.
This patch replaces the spaces with dashes, i.e., 'Generated- by-Nova' .
Spaces were introduced by commit: 114109dbf4094ae 6b6333d41c84beb f6f85c4e48 /bugs.launchpad .net/ubuntu/ +source/ cloud-init/ +bug/1220273
Ubuntu cloud images with cloud-init < 0.7.2: 10.04 LTS and 12.04 LTS
cloud-init bug report: https:/
Closes-Bug: #1297685 be98351ae4a5188 4b03268cf09
Change-Id: I1761f61dfbba58