fuel-qa doesn't support Ubuntu Xenial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Critical
|
Vladimir Khlyunev |
Bug Description
Custom BVT job [1] was launched without any modification to fuel-qa code, all customizations were made via job parameters, in particular OPENSTACK_RELEASE = 'Ubuntu+UCA 16.04' to deploy Xenial based environment.
Deployment was successful, OSTF also passed (according to log [2]).
Overrall test FAILED becase fuel-qa doesn't support Xenial fully, it wrongy choose 'rpm' to get list of packages on Debian-based system.
* From the log [2] we can see fuel-qa tried to call get_node_packages and use 'rpm' for that:
---
2016-07-28 23:39:00,936 - DEBUG __init__.py:56 -- Calling: get_node_packages with args: (SSHClient(
2016-07-28 23:39:00,936 - DEBUG ssh_client.py:740 -- Executing command: 'rpm -qa --qf "%{name} %{version}"'
2016-07-28 23:39:01,004 - DEBUG ssh_client.py:719 -- rpm -qa --qf "%{name} %{version}"
execution results: Exit code: 127
2016-07-28 23:39:01,004 - ERROR __init__.py:67 -- get_node_packages raised: IndexError('list index out of range',)
Traceback: Traceback (most recent call last):
File "/home/
result = func(*args, **kwargs)
File "/home/
node_packages = remote.
IndexError: list index out of range
2016-07-28 23:39:01,005 - ERROR __init__.py:67 -- store_packages_json raised: IndexError('list index out of range',)
Traceback: Traceback (most recent call last):
File "/home/
result = func(*args, **kwargs)
File "/home/
packages = get_node_
File "/home/
result = func(*args, **kwargs)
File "/home/
node_packages = remote.
IndexError: list index out of range
---
* From the master node we can see that OS on the node in question is Ubuntu:
---
[root@nailgun ~]# fuel node
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---+---
4 | ready | slave-02_controller | 1 | 10.109.15.5 | 64:4c:99:cb:76:d3 | controller | | 1 | 1
2 | ready | slave-06_
1 | ready | slave-01_controller | 1 | 10.109.15.4 | 64:8c:36:6c:32:51 | controller | | 1 | 1
6 | ready | slave-03_controller | 1 | 10.109.15.6 | 64:6f:58:14:a4:2b | controller | | 1 | 1
5 | ready | slave-05_
3 | ready | slave-04_
[root@nailgun ~]# ssh node-3 cat /etc/lsb-release
Warning: Permanently added 'node-3' (ECDSA) to the list of known hosts.
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
---
* get_node_packages code [3]:
---
def get_node_
if settings.
cmd = "dpkg-query -W -f='${Package} ${Version}'\r"
else:
cmd = 'rpm -qa --qf "%{name} %{version}"\r'
---
[1] https:/
[2] https:/
[3] https:/
Fix proposed to branch: master /review. openstack. org/348773
Review: https:/