device_owner field has to be empty string on port-create instead of null

Bug #1362286 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
High
Sachin Bansal
Trunk
Fix Committed
High
Sachin Bansal

Bug Description

1.10 26

On a fresh port-create, device_owner field has to be empty string instead of null

Today, because of this, Floating ip association fails in horizon.

Ex:

REQ: curl -i http://10.204.216.47:9696/v2.0/ports.json -X POST -H "X-Auth-Token: <token>" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"port": {"network_id": "35f70465-25ff-43e7-922e-ff692aa004d3", "admin_state_up": true}}'

DEBUG: neutronclient.client RESP:{'date': 'Wed, 27 Aug 2014 18:28:05 GMT', 'status': '201', 'content-length': '582', 'content-type': 'application/json; charset=UTF-8'} {"port": {"status": "DOWN", "name": "6bec2a85-4222-4067-adb4-ab8bcc66737f", "admin_state_up": true, "network_id": "35f70465-25ff-43e7-922e-ff692aa004d3", "tenant_id": "477e46a223f8424a966cd1e6b1f4139b", "device_owner": null, "mac_address": "02:6b:ec:2a:85:42", "fixed_ips": [{"subnet_id": "49696363-7a55-4df0-8086-155644bde792", "port_id": "6bec2a85-4222-4067-adb4-ab8bcc66737f", "ip_address": "10.1.1.4", "net_id": "35f70465-25ff-43e7-922e-ff692aa004d3"}], "id": "6bec2a85-4222-4067-adb4-ab8bcc66737f", "security_groups": ["f39f5c60-0175-47db-a846-ee9e8359ab3e"], "device_id": ""}}

Created a new port:
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "49696363-7a55-4df0-8086-155644bde792", "ip_address": "10.1.1.4", "port_id": "6bec2a85-4222-4067-adb4-ab8bcc66737f", "net_id": "35f70465-25ff-43e7-922e-ff692aa004d3"} |
| id | 6bec2a85-4222-4067-adb4-ab8bcc66737f |
| mac_address | 02:6b:ec:2a:85:42 |
| name | 6bec2a85-4222-4067-adb4-ab8bcc66737f |
| network_id | 35f70465-25ff-43e7-922e-ff692aa004d3 |
| security_groups | f39f5c60-0175-47db-a846-ee9e8359ab3e |
| status | DOWN |
| tenant_id | 477e46a223f8424a966cd1e6b1f4139b |
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
root@nodea9:~#

Revision history for this message
Sachin Bansal (sbansal) wrote :
Revision history for this message
Sachin Bansal (sbansal) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.