Set image_alt_ssh_user during stack
At this moment, only image_ssh_user is present in the config of Tempest. It's set to cirros by default and used for SSH connections in tests. However, several tests build instances with image_ref_alt, but still use image_ssh_user to connect, which results in failure if image_ref_alt is set to a non-cirros image. They should use image_alt_ssh_user instead, which can be set to whichever user the image_ref_alt needs in either local.conf or during plugin installation. Change-Id: I899909fb71a9862c891e94ba54c6a8fa137f9769 Partial-Bug: #1844535
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
# - ``USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION``
|
||||
# - ``DEFAULT_INSTANCE_TYPE``
|
||||
# - ``DEFAULT_INSTANCE_USER``
|
||||
# - ``DEFAULT_INSTANCE_ALT_USER``
|
||||
# - ``CINDER_ENABLED_BACKENDS``
|
||||
# - ``NOVA_ALLOW_DUPLICATE_NETWORKS``
|
||||
#
|
||||
@@ -443,7 +444,8 @@ function configure_tempest {
|
||||
iniset $TEMPEST_CONFIG validation run_validation ${TEMPEST_RUN_VALIDATION:-True}
|
||||
iniset $TEMPEST_CONFIG validation ip_version_for_ssh 4
|
||||
iniset $TEMPEST_CONFIG validation ssh_timeout $BUILD_TIMEOUT
|
||||
iniset $TEMPEST_CONFIG validation image_ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
|
||||
iniset $TEMPEST_CONFIG validation image_ssh_user ${DEFAULT_INSTANCE_USER:=cirros}
|
||||
iniset $TEMPEST_CONFIG validation image_alt_ssh_user ${DEFAULT_INSTANCE_ALT_USER:-$DEFAULT_INSTANCE_USER}
|
||||
iniset $TEMPEST_CONFIG validation network_for_ssh $TEMPEST_SSH_NETWORK_NAME
|
||||
|
||||
# Volume
|
||||
|
||||
Reference in New Issue
Block a user