can't create/update port of no IP with command line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Confirmed
|
Low
|
kavitha h r | ||
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
1. when I trying to create a port without IP from a network with subnet. I specify the ip within this cmd:
#neutron --debug port-create ext_net1 --fixed-ip=""
it actually send the request with such data to server:
'{"port": {"network_id": "be7badb2-
and neutron server will parse the fixed_ips. Because currently server only support unaddress port by inputting "fixed_ips": []
When input "fixed_ips": [{}] , it will get error of "InvalidInput" from IPAM backend of neutron.
=======
in exception_
status_
BadRequest: Invalid input for operation: IP allocation requires subnet_id or ip_address.
========
2. another problem is that:
#nneutron --debug port-create ext_net1 --fixed-ip "" --fixed-
when the fixed-ip list include the empty one, what kind of request should be sent to neutron server?
3. how to specify unaddress port? could we use --fixed-ips?
#neutron --debug port-create ext_net1 --fixed-ips ""
will send out the "fixed_ips": ""
#neutron --debug port-create ext_net1 --fixed-ips list=true ''
will send out "fixed_ips": [""]
Changed in python-neutronclient: | |
assignee: | nobody → yalei wang (yalei-wang) |
description: | updated |
description: | updated |
description: | updated |
summary: |
- can't create port of no IP with command line + can't create/update port of no IP with command line |
Changed in python-neutronclient: | |
status: | Expired → Confirmed |
Changed in python-neutronclient: | |
assignee: | nobody → kavitha h r (nidi) |
Changed in python-openstackclient: | |
assignee: | nobody → M V P Nitesh (m-nitesh) |
Changed in python-openstackclient: | |
assignee: | M V P Nitesh (m-nitesh) → nobody |
The syntax that you have used is actually passing a single fixed-ip argument that is an empty string. But, what you really want is to pass an empty list. I thought there was a way to do this but I'm having trouble finding it and kevinbenton tells me in IRC that he doesn't think it can be done at the moment.
As a work-around, curl can be used to accomplish this by sending an empty list with the '{}'.