Add centos to list of alternative users for login

The hp-cloud centos (and official upstream images) require logging in
as the user 'centos'

Change-Id: I276c44b2c711e1d8db980c8ee39a07d912cfc720
This commit is contained in:
Ian Wienand 2014-10-28 07:41:57 +11:00
parent c8f7c4f84d
commit 05e8c32e77
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ class SnapshotImageUpdater(ImageUpdater):
# We have connected to the node but couldn't do anything as root
# try distro specific users, since we know ssh is up (a timeout
# didn't occur), we can connect with a very sort timeout.
for username in ['ubuntu', 'fedora', 'cloud-user']:
for username in ['ubuntu', 'fedora', 'cloud-user', 'centos']:
try:
host = utils.ssh_connect(server['public_v4'], username,
ssh_kwargs,