Teach OpenStack test to distinguish between RHEL and Fedora
(cherry picked from commit 642b909d24
)
This commit is contained in:
parent
7b306e2e84
commit
4f3b81e4e7
@ -110,8 +110,14 @@ __EOF__
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "Verify VM instance"
|
||||
# cloud-init default config differs between RHEL and Fedora
|
||||
CLOUD_USER="cloud-user"
|
||||
if [ -f "/etc/fedora-release" ]; then
|
||||
CLOUD_USER="fedora"
|
||||
fi
|
||||
|
||||
# verify we can login into that instance
|
||||
rlRun -t -c "ssh -oStrictHostKeyChecking=no -i $SSH_KEY_DIR/id_rsa cloud-user@$IP_ADDRESS 'cat /etc/redhat-release'"
|
||||
rlRun -t -c "ssh -oStrictHostKeyChecking=no -i $SSH_KEY_DIR/id_rsa $CLOUD_USER@$IP_ADDRESS 'cat /etc/redhat-release'"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
|
Loading…
Reference in New Issue
Block a user