
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: 114109dbf4094ae6b6333d41c84bebf6f85c4e48 Ubuntu cloud images with cloud-init < 0.7.2: 10.04 LTS and 12.04 LTS cloud-init bug report: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1220273 Closes-Bug: #1297685 Change-Id: I1761f61dfbba58be98351ae4a51884b03268cf09
13 lines
767 B
JSON
13 lines
767 B
JSON
{
|
|
"keypair": {
|
|
"created_at": "2014-05-07T12:06:13.681238",
|
|
"deleted": false,
|
|
"deleted_at": null,
|
|
"fingerprint": "9d:00:f4:d7:26:6e:52:06:4c:c1:d3:1d:fd:06:66:01",
|
|
"id": 1,
|
|
"name": "keypair-3582d8b7-e588-4aad-b7f7-f4e76f0e4314",
|
|
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYJrTVpcMwFqQy/oMvtUSRofZdSRHEwrsX8AYkRvn2ZnCXM+b6+GZ2NQuuWj+ocznlnwiGFQDsL/yeE+/kurqcPJFKKp60mToXIMyzioFxW88fJtwEWawHKAclbHWpR1t4fQ4DS+/sIbX/Yd9btlVQ2tpQjodGDbM9Tr9/+/3i6rcR+EoLqmbgCgAiGiVV6VbM2Zx79yUwd+GnQejHX8BlYZoOjCnt3NREsITcmWE9FVFy6TnLmahs3FkEO/QGgWGkaohAJlsgaVvSWGgDn2AujKYwyDokK3dXyeX3m2Vmc3ejiqPa/C4nRrCOlko5nSgV/9IXRx1ERImsqZnE9usB Generated-by-Nova\n",
|
|
"updated_at": null,
|
|
"user_id": "fake"
|
|
}
|
|
} |