Tempest test "tempest.api.network.admin.test_ports.PortsAdminExtendedAttrsTestJSON" fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Tempest test "tempest.
Here is the python log :
('\n', 'PortsAdminExte
~~~~~~~
Error: List of Failed tests:
setUpClass (tempest.
Reason: _StringException: Traceback (most recent call last):
File "/usr/lib/
six.
File "/usr/lib/
cls.
File "/usr/lib/
cls.host_id = hyper_list[
IndexError: list index out of range
```````
This log conveys like tempest test could not fetch any underlying hypervisor information which negative.
It seems that the tempest does not get the host name from the hypervisor list.
But in nova, there is a value in the hypervisor-list like below.
```````
(undercloud) [root@undercloud ~]# nova hypervisor-list
+------
| ID | Hypervisor hostname | State | Status |
+------
| b9ea75f4-
+------
Please let us know if any additional information required.
Expected results:
this test should pass without any errors
Hi B ChandraShekhra,
Are you still getting same problem.
I have tried on my system, tests are passing.
stack@control: ~/tempest$ sudo python -m testtools.run tempest. api.network. admin.test_ ports.PortsAdmi nExtendedAttrsT estJSON
Tests running...
Ran 4 tests in 23.497s
OK
I have checked, result is coming properly hostname' : u'control'}]}
hyper_list
{u'hypervisors': [{u'status': u'disabled', u'state': u'down', u'id': 1, u'hypervisor_
(Pdb) cls.host_id
u'control'
I think there might be some issue with your environment
Can you please share the reproducing steps?