Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1770931

Summary: Ansible Networking - "Clean" BM guests fails + "MechanismDriverError" in server.log on Controllers
Product: Red Hat OpenStack Reporter: Arkady Shtempler <ashtempl>
Component: python-networking-ansibleAssignee: Dan Radez <dradez>
Status: CLOSED ERRATA QA Contact: Arkady Shtempler <ashtempl>
Severity: urgent Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: akaris, amuller, bfournie, dradez, jlibosva, michapma, tfreger
Target Milestone: z11Keywords: Regression, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ansible-0.3.0-2.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:26:15 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: 1774863    

Description Arkady Shtempler 2019-11-11 14:14:01 UTC
### Test Scenario ###
QE Setup is up and running with OSP13.
Start "Clean" for BM Guests using:
openstack baremetal node list
openstack baremetal node manage <ID>
openstack baremetal node provide <ID>

### Actual Result ###
Clean fails and it seems that it happens because of "Ansible Networking" feature.
ERRORs while "cleaning" is logged on Controller's server.log with the following content:
2019-11-07 13:21:13.582 38 ERROR networking_ansible.ml2.mech_driver [req-241223b6-c2c4-49f7-b6c0-4c06808a76bb 426d7163b8f94a1eaae114815e45c5ed cdc1abcbc6b845aea49de458ca8c1c04 - default default] Failed to plug in port 48683d87-0ba3-4e98-998e-5d912e821384 on device: switch1 from network 4e86a40b-6aa8-469f-8d2e-65059442561a reason: 'int' object has no attribute '__getitem__'
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers [req-241223b6-c2c4-49f7-b6c0-4c06808a76bb 426d7163b8f94a1eaae114815e45c5ed cdc1abcbc6b845aea49de458ca8c1c04 - default default] Mechanism driver ansible failed in bind_port: MechanismDriverError
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 781, in _bind_port_level
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers     driver.obj.bind_port(context)
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python2.7/site-packages/networking_ansible/ml2/mech_driver.py", line 277, in bind_port
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers     raise ml2_exc.MechanismDriverError(e)
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers MechanismDriverError
2019-11-07 13:21:13.582 38 ERROR neutron.plugins.ml2.managers

### Expected Result ###
"Clean" BM Guests should PASS

Comment 4 Dan Radez 2020-01-13 16:13:06 UTC
Sry, the + instead of the ? is probably my lack of experience with hotfixes.
Thanks everyone.

Comment 7 errata-xmlrpc 2020-03-10 11:26:15 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/RHBA-2020:0770