Bug 1770931 - Ansible Networking - "Clean" BM guests fails + "MechanismDriverError" in server.log on Controllers
Summary: Ansible Networking - "Clean" BM guests fails + "MechanismDriverError" in serv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ansible
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: z11
: 13.0 (Queens)
Assignee: Dan Radez
QA Contact: Arkady Shtempler
URL:
Whiteboard:
Depends On:
Blocks: 1774863
TreeView+ depends on / blocked
 
Reported: 2019-11-11 14:14 UTC by Arkady Shtempler
Modified: 2020-03-23 12:53 UTC (History)
7 users (show)

Fixed In Version: python-networking-ansible-0.3.0-2.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 11:26:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 693722 0 'None' MERGED regression fix BZ#1770931 2020-03-23 12:51:37 UTC
OpenStack gerrit 695316 0 'None' MERGED another fix for regression BZ#1770931 2020-03-23 12:51:37 UTC
Red Hat Product Errata RHBA-2020:0770 0 None None None 2020-03-10 11:26:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.