time.sleep() should be mocked when tests run so they don't take an
extra amount of time to run for no reason.
30s from test_health_daemon.TestHealthDaemon.test_run_sender
10s from test_rest_api_driver.TestAmphoraAPIClientTest.test_request
Change-Id: If32c2021ea37240fd200ebc41d519ed897be87b2
During loadbalancer delete in certain corner case where
Amphora agent never reports the heartbeat to the octavia controller.
After load balancer creation the health manager updates the health status of
amphora in the amphora_health table . Since none of the heartbeat received
from the amphora agent and hence no entry is created in 'amphora_health'
table And eventually it goes PENDING_DELETE during delete .
This fix handles UnmappedInstanceError when there is no entries represented
in the octavia DB for the amphora health.
Change-Id: Ib149c7c93ae2f0ad97b09cbcb5668a8872f01879
Closes-Bug: #1609235
Verify that security group exists. If no skip procedure do remove it
Small code refactoring to be more readable and usable
Change-Id: I2e567f9d6e95a3f6219b569c9dde8e0356daca6b
Closes-Bug: #1605548
Currently Octavia assumes that DHCP service is available on
the VIP and member subnets. This is not the case at all operators.
This patch makes Octavia use the IP information provided when
the ports are created, if available. If the IP information is
not available on the ports it will fall back to relying on DHCP.
Change-Id: I08a93d4318bbce48128019376320782d1a334369
Closes-Bug: #1607900
The API was not allowing the deletion of load balancers in ERROR state.
Users should be able to delete their load balancers in ACTIVE or ERROR
state. This is good for users and good for operators.
Change-Id: Ie40b062e1b5cc6d90274190676fb81ee1c32e63e
Closes-Bug: #1607502
Oslo context provides a from_environ features that loads up a context
with all the standard auth_token middleware and oslo middleware. Use
that instead of checking those ourselves.
Change-Id: Id19aa796bf284348667b8e02f91bec4dba9d7b4a
Security group names could be same, although it's low probabilities,
we should try to use uuid as far as possible
Change-Id: I66122ddf335ca8e3567c28f9fb65fde6b7aa31c1
Change default image size to 2GB (align with devstack value)
Store the virt-inspector output to reuse in virt-inspector calls
Relax the size check to allow for system size change after updates and
differences in base distribution
Change-Id: I9aaaabcbe8a1332e57fd8f9f0649dc8cfc5b9977
OCTAVIA_HM_LISTEN_PORT is used for amphore to talk with o-hm.
This port need to be enabled in security group.
Change-Id: I686e49a502a1abf9afa5fc6b10d444fda98dc0d5
Disable the DNS update for port o-hm0 during the installation of
devstack to aviod accidentally DNS change.
Note: NetworkManager will attempt to write DNS information from
DHCP into /etc/resolv.conf, overwriting the existing contents.
So, if you have NetworkManager enabled, the once for all solution
should be set the immutable bit on the file:
chattr +i /etc/resolv.conf
Change-Id: Icbc23feb8cb3c9967aa66a3c6c2f61da61397d11
We are seeing odd behavior connecting to the amphora on some
gate hosts. This patch adds additional logging to gather
information on this behavior as well as provide more user
friendly log messages when connection issues occur.
Change-Id: I086fd64cfadb839eec36128016ee018e373f9457