[Fullstack] Remove dhcp agent in tests where it isn't necessary
In fullstack tests like test_connectivity or test_securitygroup using
dhcp agent isn't really needed. We are testing dhcp agents and
configuration of the IP addresses using DHCP in the tests from the
test_dhcp_agent module.
So this patch disables usage of the dhcp agent where it's not really
needed to save some resources (less agents running during tests) and to
minimize potential failures in the tests.
Additionally this patch also adds method
block_until_all_dhcp_config_done() to the FakeFullstackMachinesList
class and uses it in tests when fake VMs are using DHCP. That will
hopefully help better understand where the issue is in case of failures
like described in the related bug.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/834070 /opendev. org/openstack/ neutron/ commit/ 282ccbb8f0b471d 9bc96261ab1866f fca4ec2b97
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 282ccbb8f0b471d 9bc96261ab1866f fca4ec2b97
Author: Slawek Kaplonski <email address hidden>
Date: Wed Mar 16 21:19:37 2022 +0100
[Fullstack] Remove dhcp agent in tests where it isn't necessary
In fullstack tests like test_connectivity or test_securitygroup using
dhcp agent isn't really needed. We are testing dhcp agents and
configuration of the IP addresses using DHCP in the tests from the
test_dhcp_agent module.
So this patch disables usage of the dhcp agent where it's not really
needed to save some resources (less agents running during tests) and to
minimize potential failures in the tests.
Additionally this patch also adds method until_all_ dhcp_config_ done() to the FakeFullstackMa chinesList
block_
class and uses it in tests when fake VMs are using DHCP. That will
hopefully help better understand where the issue is in case of failures
like described in the related bug.
Related-Bug: #1962854 1ad6424637abff3 d992737f6f4
Change-Id: Ib6ca18b5a0ae10