BGPVPN client is post to the wrong endpoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
Medium
|
Vinetos |
Bug Description
Hello,
With the latest release of Openstack, the client and the plugin BGPVPN, running
openstack --debug bgpvpn network association create cl1-bgpvpn priv-net-1
shows that the client is posting to
v.2.0/bgpvpn/
instead of
v.2.0/bgpvpn/
REQ: curl -g -i --cacert "/etc/ssl/
Resetting dropped connection: cl1-api.
https:/
RESP: [400] connection: close content-type: application/json strict-
RESP BODY: {"NeutronError": {"type": "HTTPBadRequest", "message": "Unrecognized attribute(s) 'network_id'", "detail": ""}}
As excepted, Neutron does not recognized the body that should be for network_
Step to reproduce : https:/
I am very new to Openstack but I am currently trying to identify with part of the client is handling this behavior in order to fix it.
You can see the raw output of the command here : https:/
Important note: I have replaced the IDs in the command line by the resource name for reading purpose.
Cheers,
Valentin
description: | updated |
description: | updated |
description: | updated |
Changed in python-neutronclient: | |
assignee: | nobody → Vinetos (vinetos) |
importance: | Undecided → Medium |
After some debugging, I found something interesting : In neutronclient/ osc/v2/ networking_ bgpvpn/ resource_ association. py line 78 to 84 does invalid tests.
When running openstack bgpvpn network association create ..., res_name is equal to 'network' and the constants. NETWORK_ ASSOC is 'network_ association' . This is why the command is failing.
self._assoc_
I suppose there is the same problem for port association.