Bug 1641963

Summary: Can't bind port is already configured
Product: Red Hat OpenStack Reporter: Derek Higgins <derekh>
Component: python-networking-ansibleAssignee: Dan Radez <dradez>
Status: CLOSED ERRATA QA Contact: Arkady Shtempler <ashtempl>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: ashtempl, bfournie, jlibosva, jschluet, michapma
Target Milestone: Upstream M2Keywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ansible-1.1.0-0.20190425100406.e41f9cb.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:19:11 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:

Description Derek Higgins 2018-10-23 09:08:55 UTC
The net ansible Mechanism driver fails to apply vlan configuration to a port if it already has any config. 

Errors from the neutron api log (which ironic nodes are being clean for the first time)
2018-10-23 08:57:30.904 30 ERROR neutron.plugins.ml2.managers [req-235ea2ba-0f8a-426f-a605-74c70b3a4608 cedcec64f5b24025848a2130a5892191 a2d65540a46944af95b64d72065400be - default default] Mechanism driver ansible failed in bind_port: AnsibleRunnerException: ^M


2018-10-23 08:57:17.723 30 ERROR neutron.plugins.ml2.managers  fatal: [switch1]: FAILED! => {"changed": false, "msg": "error editing configuration: <?xml version=\"1.0\" encoding=\"UTF-8\"?><rpc-reply xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\" xmlns:junos=\"http://xml.juniper.net/junos/17.3R2/junos\" xmlns:nc=\"urn:ietf:params:xml:ns:netconf:base:1.0\" message-id=\"urn:uuid:a333b53e-d6a1-11e8-91cf-588a5a535fd9\">\n<commit-results>\n<rpc-error>\n<error-type>protocol</error-type>\n<error-tag>operation-failed</error-tag>\n<error-severity>error</error-severity>\n<source-daemon>\nl2ald\n</source-daemon>\n<error-path>\n[edit interfaces xe-0/0/6 unit 0 family ethernet-switching vlan]\n</error-path>\n<error-info>\n<bad-element>\nmembers 1201-1202\n</bad-element>\n</error-info>\n<error-message>\nVlan range format not supported if interface-mode is access\n</error-message>\n</rpc-error>\n<rpc-error>\n<error-type>protocol</error-type>\n<error-tag>operation-failed</error-tag>\n<error-severity>error</error-severity>\n<error-message>\nconfiguration check-out failed\n</error-message>\n</rpc-error>\n</commit-results>\n</rpc-reply>"}


Should this happen, deleting the config from the switch for the ports allows the process to continue, once this is done once, net ansible cleans up port config as it goes so it doesn't need to be manually done a second time.

Comment 1 Bob Fournier 2018-10-23 14:48:56 UTC
*** Bug 1642005 has been marked as a duplicate of this bug. ***

Comment 2 Bob Fournier 2018-10-23 14:50:25 UTC
*** Bug 1642004 has been marked as a duplicate of this bug. ***

Comment 7 Dan Radez 2019-09-03 11:59:35 UTC
This looks correct to me. I agree with VERIFIED

Comment 9 errata-xmlrpc 2019-09-21 11:19:11 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