[integration tests] AssertionError: There is not all networks on last agent on neutron test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Confirmed
|
High
|
MOS QA Team |
Bug Description
Test result:
https:/
Trace:
self = <mos_tests.
net_on_dhcp_count = 3
@pytest.
@pytest.
@pytest.
def test_rescheduli
"""Check dhcp-agent rescheduling with
net on dhcp-agent count not equal two.
:param net_on_dhcp_count: count of dhcp-agents for network
1. Revert snapshot with neutron cluster
2. Apply new config for neutron on all controllers:
3. Create network net01, subnet net01_subnet
4. Create router with gateway to external net and
5. Launch instance and associate floating IP
6. Run dhcp-client in instance's console: sudo cirros-dhcpc up eth0
7. Look on what DHCP-agents chosen network is:
8. Ban DHCP-agent on which instance's net is:
9. Run dhcp-client in instance's console:
10. Repeat previous 3 steps two times.
11. Check that all networks is on last dhcp-agent:
12. Ban last DHCP-agent on which instance's net is:
13. Clear first banned DHCP-agent
14. Check that all networks is on cleared dhcp-agent:
15. Run dhcp-client in instance's console:
"""
# Collect all networks on dhcp-agents
all_agents = self.os_
# Ban first two agents
for ban_counter in range(2):
assert len(curr_agents) <= len(all_agents) - ban_counter
# check that all networks are on free agent
last_agent = (set(agents_
err_msg = (
'There is not all networks on last agent: '
'all existing networks - {0}, '
> assert set(agents_
E AssertionError: There is not all networks on last agent: all existing networks - [u'ff0d2345-
E assert set(['8ad0f51.
E Extra items in the left set:
E '8ad0f516-
E Full diff:
E - set([u'
E - u'ff0d2345-
E ? ^^^^^
E + set([u'
E ? ^^^^^
mos_tests/
Changed in mos: | |
assignee: | nobody → MOS QA Team (mos-qa) |
Changed in mos: | |
milestone: | 10.0 → 9.0 |