assigning a fixed-ip while creating a port is not working

Bug #1329233 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Invalid
High
Sachin Bansal

Bug Description

Build 1.10 29

Below I wanted to assign 70.1.1.254 to the port. But only the next-available IP of 70.1.1.3 was allocated

root@nodeg30:~# neutron port-create testvn2 --fixed-ip subnet-id=d236e7e9-830c-4bc0-b779-040ca64c65ed --fixed-ip ip-address=70.1.1.254
Created a new port:
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "d236e7e9-830c-4bc0-b779-040ca64c65ed", "ip_address": "70.1.1.3"} |
| id | 205fe4ff-7ef4-4c73-b30a-796c416d48f1 |
| mac_address | 02:20:5f:e4:ff:7e |
| name | 205fe4ff-7ef4-4c73-b30a-796c416d48f1 |
| network_id | ee413758-d872-44f0-8541-1a2f0642fc97 |
| port_security_enabled | True |
| security_groups | |
| status | ACTIVE |
| tenant_id | bb2139daa52145508b21f4cbcdde0b42 |
+-----------------------+---------------------------------------------------------------------------------+
root@nodeg30:~#

Tags: config
Revision history for this message
Ashish Ranjan (aranjan-n) wrote :

Target date for fix 06/13. Most likely it works on mainline as per Ajay.

Revision history for this message
Hampapur Ajay (hajay) wrote :

Input in this test is incorrect. neutron help port-create shows:
  --fixed-ip ip_address=IP_ADDR
                        desired IP for this port:
                        subnet_id=<name_or_id>,ip_address=<ip>, (This option
                        can be repeated.)

but ip-address(no underscore) was specified in test.
Verified correct funtionality when ip_address was given. Also verified nova boot with v4-fixed-ip.

Also seems that latest python-neutronclient disallows incorrect input per
https://bugs.launchpad.net/python-neutronclient/+bug/1318022

Changed in juniperopenstack:
status: New → Invalid
information type: Proprietary → Public
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.