Public bug reported:
While debugging unit test for [1] using tox command "tox -e venv --
python -m testtools.run
neutron.tests.unit.extensions.test_l3.L3AgentDbIntTestCase.test_l3_agent_routers_query_floatingips".
I found that floatingip created with the params:
(Pdb) data
{'floatingip': {'tenant_id': '46f70361-ba71-4bd0-9769-3573fd227c4b', 'port_id':
u'3dca5c4e-dee5-4a9c-afbe-d77494c42223', 'floating_network_id':
u'2bdc683e-5b0c-46ad-a85a-9fc138e5778f'}}
But these params will error while using neutronclient:
# neutron floatingip-create --port-id 5b129110-d6ba-4e0f-8d56-3fce7d052213
public
DEBUG: keystoneauth.session REQ: curl -g -i -X POST
http://20.30.40.5:9696/v2.0/floatingips -H "User-Agent: python-neutronclient"
-H "Content-Type: application/json" -H "Accept: application/json" -H
"X-Auth-Token: {SHA1}d98e0f7fa754f69fc26bd427b244a335f7f8d97a" -d
'{"floatingip": {"floating_network_id": "30c2a624-7c53-46a2-a733-b196e7d72b40",
"port_id": "5b129110-d6ba-4e0f-8d56-3fce7d052213"}}'
DEBUG: keystoneauth.session RESP: [400] Content-Type: application/json
Content-Length: 147 X-Openstack-Request-Id:
req-9998bac0-3f87-4db3-98a3-9c98789d275b Date: Wed, 06 Dec 2017 15:02:58 GMT
Connection: keep-alive
RESP BODY: {"NeutronError": {"message": "Invalid input for operation: IP
allocation requires subnet_id or ip_address.", "type": "InvalidInput",
"detail": ""}}
Function floatingip_with_assoc in[2] create a FIP only with FIP network
and private port, so I think there are lots of UTs need to amend.
[1] https://review.openstack.org/#/c/521707/
[2]
https://github.com/openstack/neutron/blob/master/neutron/tests/unit/extensions/test_l3.py#L484
** Affects: neutron
Importance: Undecided
Assignee: Dongcan Ye (hellochosen)
Status: New
** Tags: unittest
** Changed in: neutron
Assignee: (unassigned) => Dongcan Ye (hellochosen)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1736755
Title:
unit tests error in FIP creation
Status in neutron:
New
Bug description:
While debugging unit test for [1] using tox command "tox -e venv --
python -m testtools.run
neutron.tests.unit.extensions.test_l3.L3AgentDbIntTestCase.test_l3_agent_routers_query_floatingips".
I found that floatingip created with the params:
(Pdb) data
{'floatingip': {'tenant_id': '46f70361-ba71-4bd0-9769-3573fd227c4b',
'port_id': u'3dca5c4e-dee5-4a9c-afbe-d77494c42223', 'floating_network_id':
u'2bdc683e-5b0c-46ad-a85a-9fc138e5778f'}}
But these params will error while using neutronclient:
# neutron floatingip-create --port-id 5b129110-d6ba-4e0f-8d56-3fce7d052213
public
DEBUG: keystoneauth.session REQ: curl -g -i -X POST
http://20.30.40.5:9696/v2.0/floatingips -H "User-Agent: python-neutronclient"
-H "Content-Type: application/json" -H "Accept: application/json" -H
"X-Auth-Token: {SHA1}d98e0f7fa754f69fc26bd427b244a335f7f8d97a" -d
'{"floatingip": {"floating_network_id": "30c2a624-7c53-46a2-a733-b196e7d72b40",
"port_id": "5b129110-d6ba-4e0f-8d56-3fce7d052213"}}'
DEBUG: keystoneauth.session RESP: [400] Content-Type: application/json
Content-Length: 147 X-Openstack-Request-Id:
req-9998bac0-3f87-4db3-98a3-9c98789d275b Date: Wed, 06 Dec 2017 15:02:58 GMT
Connection: keep-alive
RESP BODY: {"NeutronError": {"message": "Invalid input for operation: IP
allocation requires subnet_id or ip_address.", "type": "InvalidInput",
"detail": ""}}
Function floatingip_with_assoc in[2] create a FIP only with FIP
network and private port, so I think there are lots of UTs need to
amend.
[1] https://review.openstack.org/#/c/521707/
[2]
https://github.com/openstack/neutron/blob/master/neutron/tests/unit/extensions/test_l3.py#L484
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1736755/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp