Bug 1774941 - Ansible Networking - create BM guest using "trunk" type network fails
Summary: Ansible Networking - create BM guest using "trunk" type network fails
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: ---
: ---
Assignee: Dan Radez
QA Contact: Arkady Shtempler
URL:
Whiteboard:
: 1776850 (view as bug list)
Depends On:
Blocks: 1774863
TreeView+ depends on / blocked
 
Reported: 2019-11-21 10:19 UTC by Arkady Shtempler
Modified: 2020-03-23 12:52 UTC (History)
3 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 695316 0 'None' MERGED another fix for regression BZ#1770931 2020-06-23 18:35:03 UTC
Red Hat Product Errata RHBA-2020:0770 0 None None None 2020-03-10 11:26:58 UTC

Description Arkady Shtempler 2019-11-21 10:19:30 UTC
### Pre requisites ###
QE Setup is up and running with OSP13

### Scenario ###
 Create “BM guest 1” using 2 tenant networks: “Tenant Net A” and “Tenant Net B”

openstack port create --network tenant-net trunk-parent-port -> Get the ID for {trunk-parent-port id} 

openstack port create --network tenant-net2 trunk-notparent-port

openstack network trunk create --parent-port trunk-parent-port trunk

openstack network trunk list (Make sure that "trunk" network is in)

openstack network trunk show "ID_Of_Trunk_Network" --> get Seg_ID

openstack network trunk set --subport port=trunk-notparent-port,segmentation-type=vlan,segmentation-id="Seg_ID" trunk

openstack server create --flavor baremetal --image overcloud-full --key default --port {trunk-parent-port id}  BM_Guest_1


### Expected result ###
Server created


### Actual Result ###
Server failed to be created + Error in server.log on Controller:
2019-11-20 15:36:37.050 37 ERROR networking_ansible.ml2.mech_driver 
[req-64ac1baa-05d7-4133-9ffe-af49e6ac8715 
8866a62a0c2e4f42b3ee84a796ff84a8 df7cc91a2982470b8b885d32f3ca907d - 
default default] Failed to plug in port 
f722dc0f-b96f-45a8-b32a-f7b989422fbf on device: switch1 from network 
e3d74339-7881-45f1-9072-b6e5e90d1db8 reason:
  PLAY [Openstack networking-ansible playbook] 
***********************************

  TASK [openstack-ml2 : check for required fact: port_name] 
**********************
  skipping: [switch1]

  TASK [openstack-ml2 : check for required fact: port_description] 
***************
  skipping: [switch1]

  TASK [openstack-ml2 : include and run device provider specific tasks] 
**********
  included: /usr/share/ansible/roles/openstack-ml2/tasks/run.yaml for 
switch1

  TASK [openstack-ml2 : include device role specific tasks] 
**********************
  fatal: [switch1]: FAILED! => {"msg": "No file was found when using 
with_first_found. Use the 'skip: true' option to allow this task to be 
skipped if no files are found"}

  PLAY RECAP 
*********************************************************************
  switch1                    : ok=1    changed=0    unreachable=0 failed=1

: AnsibleRunnerException:
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers 
[req-64ac1baa-05d7-4133-9ffe-af49e6ac8715 
8866a62a0c2e4f42b3ee84a796ff84a8 df7cc91a2982470b8b885d32f3ca907d - 
default default] Mechanism driver ansible failed in bind_port: 
MechanismDriverError
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers Traceback 
(most recent call last):
2019-11-20 15:36:37.051 37 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-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers 
driver.obj.bind_port(context)
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python2.7/site-packages/networking_ansible/ml2/mech_driver.py", 
line 276, in bind_port
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers raise 
ml2_exc.MechanismDriverError(e)
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers 
MechanismDriverError
2019-11-20 15:36:37.051 37 ERROR neutron.plugins.ml2.managers
2019-11-20 15:36:37.052 37 ERROR neutron.plugins.ml2.managers 
[req-64ac1baa-05d7-4133-9ffe-af49e6ac8715 
8866a62a0c2e4f42b3ee84a796ff84a8 df7cc91a2982470b8b885d32f3ca907d - 
default default] Failed to bind port 
f722dc0f-b96f-45a8-b32a-f7b989422fbf on host 
30c8b23c-817b-4b75-b4dc-35fd156ae2bf for vnic_type baremetal using 
segments [{'network_id': 'e3d74339-7881-45f1-9072-b6e5e90d1db8', 
'segmentation_id': 1207, 'physical_network': u'baremetal', 'id': 
'f3432b5d-c5b5-4c99-b1b2-b0fcb16f4add', 'network_type': u'vlan'}]

Comment 1 Dan Radez 2019-11-26 14:18:31 UTC
*** Bug 1776850 has been marked as a duplicate of this bug. ***

Comment 4 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.