Comment 3 for bug 1998927

Revision history for this message
Elod Illes (elod-illes) wrote :

Meanwhile, I realized that the bug is actually not a nova bug but it seems to be more of an openstacksdk bug [1]. So I would like to ask you to open the same bug report towards openstacksdk in their issue tracking page: https://storyboard.openstack.org/#!/project/openstack/openstacksdk

[1] based on the attached debug log (thanks for that!) the difference is that when the user-agent is openstacksdk, then the api req doesn't contain the requested fixed ip, compared to the case when the user-agent is python-novaclient:

REQ: curl -g -i --cacert "/home/mogindi/dsv_chained.crt"
-X POST https://nova.api.dk-cph01.hcp.dsv.com:8774/v2.1/servers/fc4b82de-7954-46a9-ba29-331734cd3448/os-interface
-H "Accept: application/json"
-H "Content-Type: application/json"
-H "OpenStack-API-Version: compute 2.90"
-H "User-Agent: python-novaclient"
-H "X-Auth-Token: {SHA256}9e9b9b15673e1572c432c8b6d2ea487116e6a663275b17b72c3658a54a1fe39e"
-H "X-OpenStack-Nova-API-Version: 2.90"
-d '{"interfaceAttachment": {"net_id": "60dc763d-a54f-41bc-b2d9-b1aede4e311c", "fixed_ips": [{"ip_address": "172.21.44.52"}]}}'

vs

REQ: curl -g -i --cacert "/home/mogindi/dsv_chained.crt"
-X POST https://nova.api.dk-cph01.hcp.dsv.com:8774/v2.1/servers/fc4b82de-7954-46a9-ba29-331734cd3448/os-interface
-H "Content-Type: application/json"
-H "OpenStack-API-Version: compute 2.70"
-H "User-Agent: openstacksdk/0.61.0 keystoneauth1/4.6.0 python-requests/2.27.1 CPython/3.8.10"
-H "X-Auth-Token: {SHA256}e72b969bcb0f4b4dd39242bc970cdefdf33a0387e0db98bbf411da53287de692"
-H "X-OpenStack-Nova-API-Version: 2.70"
-d '{"interfaceAttachment": {"net_id": "60dc763d-a54f-41bc-b2d9-b1aede4e311c"}}'