Bug 1709410

Summary: the dhcp-provisioning validation fails on RHEL8/Python3
Product: Red Hat OpenStack Reporter: Gaël Chamoulaud <gchamoul>
Component: openstack-tripleo-validationsAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: beth.white, jjoyce, jrist, jschluet, mbarnett, slinaber, tvignaud
Target Milestone: betaKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-10.4.1-0.20190701170405.10b4d77.el8ost.noarch Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:21:58 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: 1710324    
Bug Blocks:    

Description Gaël Chamoulaud 2019-05-13 14:28:34 UTC
$ ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/playbooks/dhcp-provisioning.yaml

Task 'dhcp-validations : Look for DHCP responses' failed:
Host: undercloud
Message: non-zero return code

stderr:
    Traceback (most recent call last):
      File "/tmp/ansible-stack/ansible-tmp-1557757332.7522008-146335328659481/rogue_dhcp.py", line 239, in <module>
        main()
      File "/tmp/ansible-stack/ansible-tmp-1557757332.7522008-146335328659481/rogue_dhcp.py", line 216, in main
        get_hw_addresses(interfaces)
      File "/tmp/ansible-stack/ansible-tmp-1557757332.7522008-146335328659481/rogue_dhcp.py", line 171, in get_hw_addresses
        struct.pack('256s', interface[:15]))
    struct.error: argument for 's' must be a bytes object

Failure! The validation failed for all hosts:
* undercloud

Comment 6 Gaël Chamoulaud 2019-07-10 09:09:37 UTC
(undercloud) [stack@undercloud-0 ~]$ rpm -qa | grep tripleo-validations
openstack-tripleo-validations-10.4.1-0.20190701170405.10b4d77.el8ost.noarch    <---- with 

THROUGH THE NEW TRIPLEO VALIDATOR COMMAND LINE:
===============================================
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation-name dhcp-provisioning
Running single validations
Waiting for messages on queue 'tripleo' with no timeout.
[SUCCESS] - dhcp-provisioning
    Success! The validation passed for all hosts:
    * undercloud

Comment 10 errata-xmlrpc 2019-09-21 11:21:58 UTC
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/RHEA-2019:2811