[integration tests] Check dhcp-agents work test fails with AssertionError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Confirmed
|
High
|
MOS QA Team |
Bug Description
Test result: https:/
Exception:
AssertionError: Amounts of networks for each agent are not nearly equal. assert <bound method TestDHCPAgent.
Trace:
self = <mos_tests.
@pytest.
def test_to_
"""[Neutron VLAN and VXLAN] Check dhcp-agents work
Steps:
1. Update quotas for creation a lot of networks:
2. Create max count networks, subnets, launch and terminate
3. Get the table with all agents:
4. Check networks on each dhcp-agent:
5. Check networks quantity on each dhcp-agent:
"""
# Count networks for each dhcp agent
# Each agent should contain networks
# And amount of networks for each agent should be nearly equal
for agt_id in self.dhcp_
amount = len(self.
err_msg = "The dhcp agent {} has no networks!
assert amount > 0, err_msg
max_value = max(networks_
err_msg = "Amounts of networks for each agent are not nearly equal."
for value in networks_
> assert self.isclose(value, max_value, abs_tol=3), err_msg
E AssertionError: Amounts of networks for each agent are not nearly equal.
E assert <bound method TestDHCPAgent.
E + where <bound method TestDHCPAgent.
mos_tests/
Changed in mos: | |
status: | New → Confirmed |
assignee: | nobody → Georgy Dyuldin (g-dyuldin) |
Changed in mos: | |
importance: | Undecided → High |
milestone: | none → 9.0 |
Changed in mos: | |
assignee: | Georgy Dyuldin (g-dyuldin) → MOS QA Team (mos-qa) |