yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #67658
[Bug 1717661] [NEW] neutron's test test_create_floatingip_with_specified_ip_address should be executed only for ML2 plugin
Public bug reported:
test neutron.tests.tempest.api.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_create_floatingip_with_specified_ip_address uses specific feature of ML2 plugin - it tries to detect allocated floating ips through listing of ports.
This way doesn't work for non ML2 plugins (ex: Contrail).
Contrail plugin doesn't create port for newly allocated floating ip like
ML2. When common test's function get_unused_ip returns floating ip that
is allocated but not attached then then test case tries to allocate it
again it gets HTTP 409.
It can be one of these changes to fix this:
1. Do not create a floating ip in setup (it wouldn't help if IP was allocated by someone else)
2. When finding first free ip, also skip over floating ip objects.
3. Use a random available ip address for the test.
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1717661
Title:
neutron's test test_create_floatingip_with_specified_ip_address should
be executed only for ML2 plugin
Status in neutron:
New
Bug description:
test neutron.tests.tempest.api.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_create_floatingip_with_specified_ip_address uses specific feature of ML2 plugin - it tries to detect allocated floating ips through listing of ports.
This way doesn't work for non ML2 plugins (ex: Contrail).
Contrail plugin doesn't create port for newly allocated floating ip
like ML2. When common test's function get_unused_ip returns floating
ip that is allocated but not attached then then test case tries to
allocate it again it gets HTTP 409.
It can be one of these changes to fix this:
1. Do not create a floating ip in setup (it wouldn't help if IP was allocated by someone else)
2. When finding first free ip, also skip over floating ip objects.
3. Use a random available ip address for the test.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1717661/+subscriptions