Bug 1688639
| Summary: | SSHExecCommandFailed does not exist | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Attila Fazekas <afazekas> |
| Component: | openstack-tempest | Assignee: | Martin Kopec <mkopec> |
| Status: | CLOSED ERRATA | QA Contact: | Suraj Patil <surpatil> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 10.0 (Newton) | CC: | apevec, jschluet, lhh, slinaber, udesale |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tempest-13.0.0-23.bafe630git.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-16 09:41:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1708810 | ||
Steps to reproduce:
$ source ~/overcloudrc && openstack flavor create --id 200 --ram 1024 --disk 10 --vcpus 1 rhel
$ source ~/overcloudrc && openstack flavor create --id 201 --ram 2048 --disk 11 --vcpus 2 rhel_alt
$ mkdir cloud; cd cloud
$ /usr/share/openstack-tempest-13.0.0/tools/configure-tempest-directory
$ ./tools/config_tempest.py --image <path/to/rhel8> --deployer-input ../tempest-deployer-input.conf --debug --create identity.uri $OS_AUTH_URL compute.allow_tenant_isolation true object-storage.operator_role swiftoperator identity.admin_password $OS_PASSWORD compute.flavor_ref 200 compute.flavor_ref_alt 201 compute.image_ssh_user cloud-user validation.image_ssh_user cloud-user scenario.dhcp_client dhclient volume.volume_size 12
Run the following test:
$ ostestr --regex tempest.scenario.test_network_v6.TestGettingAddress.test_dualnet_dhcp6_stateless_from_os
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/stack/cloud/tempest/test.py", line 107, in wrapper
return f(self, *func_args, **func_kwargs)
File "/home/stack/cloud/tempest/scenario/test_network_v6.py", line 250, in test_dualnet_dhcp6_stateless_from_os
self._prepare_and_test(address6_mode='dhcpv6-stateless', dualnet=True)
File "/home/stack/cloud/tempest/scenario/test_network_v6.py", line 173, in _prepare_and_test
self.turn_nic6_on(sshv4_1, sid1)
File "/home/stack/cloud/tempest/scenario/test_network_v6.py", line 158, in turn_nic6_on
ssh.set_nic_state(ssh.get_nic_name_by_mac(mac6))
File "/home/stack/cloud/tempest/common/utils/linux/remote_client.py", line 186, in set_nic_state
except exceptions.SSHExecCommandFailed as e:
AttributeError: 'module' object has no attribute 'SSHExecCommandFailed'
I Am able to Reproduces the issue and verified bug fixes RHOS version 10 (In reply to Suraj from comment #13) > I Am able to Reproduces the issue and verified bug fixes RHOS version 10 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3122 |
Description of problem: Tempest tries to catch a not existing exception, when using RHEL image. Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/home/stack/tempest-dir/tempest/test.py", line 107, in wrapper return f(self, *func_args, **func_kwargs) File "/home/stack/tempest-dir/tempest/scenario/test_network_v6.py", line 244, in test_dualnet_slaac_from_os self._prepare_and_test(address6_mode='slaac', dualnet=True) File "/home/stack/tempest-dir/tempest/scenario/test_network_v6.py", line 173, in _prepare_and_test self.turn_nic6_on(sshv4_1, sid1) File "/home/stack/tempest-dir/tempest/scenario/test_network_v6.py", line 158, in turn_nic6_on ssh.set_nic_state(ssh.get_nic_name_by_mac(mac6)) File "/home/stack/tempest-dir/tempest/common/utils/linux/remote_client.py", line 187, in set_nic_state except exceptions.SSHExecCommandFailed as e: AttributeError: 'module' object has no attribute 'SSHExecCommandFailed' Version-Release number of selected component (if applicable): python-tempest-tests-13.0.0-20.bafe630git.el7ost.noarch python-tempest-13.0.0-20.bafe630git.el7ost.noarch