Public bug reported: When doing bulk port creation requests the returned object does not have the binding information -- unlike the 'standard' port creation.
For a single (standard) port creation with: neutron_client.create_port(rq).get('port') where rq has: {'port': {'device_owner': 'compute:kuryr', 'binding:host_id': u'kuryr- devstack', 'name': 'available-port', 'admin_state_up': True, 'network_id': '9b360a57-fb9f-4c6e-a636-b63d0558c551', 'project_id': 'cdf106e1045f47868df764863e58578a', 'fixed_ips': [{'subnet_id': '2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa'}], 'security_groups': ['7c384ae3 -b43e-4d5a-b14a-0f0eae8967e0'], 'device_id': ''}} this is the returned object: {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2017-06-05T10:59:45Z', u'device_owner': u'compute:kuryr', u'revision_number': 9, u'port_security_enabled': True, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa', u'ip_address': u'10.0.0.3'}, {u'subnet_id': u'a76b53d2-5654-4256-bafc-73f9756e151a', u'ip_address': u'fd16:3870:3761:0:f816:3eff:fee3:111d'}], u'id': u'4f30dc4d-37a0-4f82-a146-b432ead06860', u'security_groups': [u'7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], u'binding:vif_details': {u'port_filter': True, u'ovs_hybrid_plug': False}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:e3:11:1d', u'project_id': u'cdf106e1045f47868df764863e58578a', u'status': u'DOWN', u'binding:host_id': u'kuryr-devstack', u'description': u'', u'tags': [], u'device_id': u'', u'name': u'available-port', u'admin_state_up': True, u'network_id': u'9b360a57-fb9f-4c6e-a636-b63d0558c551', u'tenant_id': u'cdf106e1045f47868df764863e58578a' , u'created_at': u'2017-06-05T10:59:45Z', u'binding:vnic_type': u'normal'} However, when doing the same call but for bulk requests (i.e., neutron_client.create_port(rq).get('ports')), with rq: {'ports': [{'device_owner': 'compute:kuryr', 'binding:host_id': u'kuryr-devstack', 'name': 'available-port', 'admin_state_up': True, 'network_id': '9b360a57-fb9f-4c6e-a636-b63d0558c551', 'project_id': 'cdf106e1045f47868df764863e58578a', 'fixed_ips': [{'subnet_id': '2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa'}], 'security_groups': ['7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], 'device_id': ''}]} The returned object is: [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2017-06-05T10:59:44Z', u'device_owner': u'compute:kuryr', u'revision_number': 9, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa', u'ip_address': u'10.0.0.6'}, {u'subnet_id': u'a76b53d2-5654-4256-bafc-73f9756e151a', u'ip_address': u'fd16:3870:3761:0:f816:3eff:fec1:a5e4'}], u'id': u'47342c62-8235-4a82-ac0e-681a44d5b7f2', u'security_groups': [u'7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:c1:a5:e4', u'project_id': u'cdf106e1045f47868df764863e58578a', u'status': u'DOWN', u'binding:host_id': u'kuryr-devstack', u'description': u'', u'tags': [], u'device_id': u'', u'name': u'available-port', u'admin_state_up': True, u'network_id': u'9b360a57-fb9f-4c6e-a636-b63d0558c551', u'tenant_id': u'cdf106e1045f47868df764863e58578a', u'created_at': u'2017-06-05T10:59:43Z', u'binding:vnic_type': u'normal'}] Even though it is a bulk creation of only a single port, with the same request information as before (same port attrs but a list of ports, instead of a port dict), the binding details are missing: u'binding:vif_details': {}, u'binding:vif_type': u'unbound' ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1696051 Title: Missing binding details for bulk port creation requests Status in neutron: New Bug description: When doing bulk port creation requests the returned object does not have the binding information -- unlike the 'standard' port creation. For a single (standard) port creation with: neutron_client.create_port(rq).get('port') where rq has: {'port': {'device_owner': 'compute:kuryr', 'binding:host_id': u'kuryr- devstack', 'name': 'available-port', 'admin_state_up': True, 'network_id': '9b360a57-fb9f-4c6e-a636-b63d0558c551', 'project_id': 'cdf106e1045f47868df764863e58578a', 'fixed_ips': [{'subnet_id': '2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa'}], 'security_groups': ['7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], 'device_id': ''}} this is the returned object: {u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2017-06-05T10:59:45Z', u'device_owner': u'compute:kuryr', u'revision_number': 9, u'port_security_enabled': True, u'binding:profile': {}, u'fixed_ips': [{u'subnet_id': u'2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa', u'ip_address': u'10.0.0.3'}, {u'subnet_id': u'a76b53d2-5654-4256-bafc-73f9756e151a', u'ip_address': u'fd16:3870:3761:0:f816:3eff:fee3:111d'}], u'id': u'4f30dc4d-37a0-4f82-a146-b432ead06860', u'security_groups': [u'7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], u'binding:vif_details': {u'port_filter': True, u'ovs_hybrid_plug': False}, u'binding:vif_type': u'ovs', u'mac_address': u'fa:16:3e:e3:11:1d', u'project_id': u'cdf106e1045f47868df764863e58578a', u'status': u'DOWN', u'binding:host_id': u'kuryr-devstack', u'description': u'', u'tags': [], u'device_id': u'', u'name': u'available-port', u'admin_state_up': True, u'network_id': u'9b360a57-fb9f-4c6e-a636-b63d0558c551', u'tenant_id': u'cdf106e1045f47868df764863e58578 a', u'created_at': u'2017-06-05T10:59:45Z', u'binding:vnic_type': u'normal'} However, when doing the same call but for bulk requests (i.e., neutron_client.create_port(rq).get('ports')), with rq: {'ports': [{'device_owner': 'compute:kuryr', 'binding:host_id': u'kuryr-devstack', 'name': 'available-port', 'admin_state_up': True, 'network_id': '9b360a57-fb9f-4c6e-a636-b63d0558c551', 'project_id': 'cdf106e1045f47868df764863e58578a', 'fixed_ips': [{'subnet_id': '2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa'}], 'security_groups': ['7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], 'device_id': ''}]} The returned object is: [{u'allowed_address_pairs': [], u'extra_dhcp_opts': [], u'updated_at': u'2017-06-05T10:59:44Z', u'device_owner': u'compute:kuryr', u'revision_number': 9, u'binding:profile': {}, u'port_security_enabled': True, u'fixed_ips': [{u'subnet_id': u'2d58a9ba-e1d2-4ed1-90d0-a6ea22d0f3aa', u'ip_address': u'10.0.0.6'}, {u'subnet_id': u'a76b53d2-5654-4256-bafc-73f9756e151a', u'ip_address': u'fd16:3870:3761:0:f816:3eff:fec1:a5e4'}], u'id': u'47342c62-8235-4a82-ac0e-681a44d5b7f2', u'security_groups': [u'7c384ae3-b43e-4d5a-b14a-0f0eae8967e0'], u'binding:vif_details': {}, u'binding:vif_type': u'unbound', u'mac_address': u'fa:16:3e:c1:a5:e4', u'project_id': u'cdf106e1045f47868df764863e58578a', u'status': u'DOWN', u'binding:host_id': u'kuryr-devstack', u'description': u'', u'tags': [], u'device_id': u'', u'name': u'available-port', u'admin_state_up': True, u'network_id': u'9b360a57-fb9f-4c6e-a636-b63d0558c551', u'tenant_id': u'cdf106e1045f47868df764863e58578a', u'created_at': u'2017-06-05T10:59:43Z' , u'binding:vnic_type': u'normal'}] Even though it is a bulk creation of only a single port, with the same request information as before (same port attrs but a list of ports, instead of a port dict), the binding details are missing: u'binding:vif_details': {}, u'binding:vif_type': u'unbound' To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1696051/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp