@@ -38,3 +38,55 @@ when building new images.
3838
3939To rollback an image update, simply delete the old image. The next newest image with
4040a tag matching ``amp_image_tag `` will be selected.
41+
42+ Manually deleting broken load balancers
43+ =======================================
44+
45+ Sometimes, a load balancer will get stuck in a broken state of ``PENDING_CREATE `` or ``PENDING_UPDATE ``.
46+ When in this state, the load balancer cannot be deleted; you will see the error ``Invalid state PENDING_CREATE of loadbalancer resource ``.
47+ To delete a load balancer in this state, you will need to manually update its provisioning status in the database.
48+
49+ Find the database password:
50+
51+ .. code-block :: console
52+
53+ ansible-vault view --vault-password-file <path-to-vault-pw> $KOLLA_CONFIG_PATH/passwords.yml
54+
55+ # Search for database_password with:
56+ /^database
57+
58+ Access the database from a controller:
59+
60+ .. code-block :: console
61+
62+ docker exec -it mariadb bash
63+ mysql -u root -p octavia
64+ # Enter the database password when promted.
65+
66+ List the load balancers to find the ID of the broken one(s):
67+
68+ .. code-block :: console
69+
70+ SELECT * FROM load_balancer;
71+
72+ Set the provisioning status to ERROR for any broken load balancer:
73+
74+ .. code-block :: console
75+
76+ UPDATE load_balancer SET provisioning_status='ERROR' WHERE id='<id>';
77+
78+ Delete the load balancer from the OpenStack CLI, cascading if any stray
79+ Amphorae are hanging around:
80+
81+ .. code-block :: console
82+
83+ openstack loadbalancer delete <id> --cascade
84+
85+
86+ Sometimes, Amphora may also fail to delete if they are stuck in state
87+ ``BOOTING ``. These can be resolved entirely from the OpenStack CLI:
88+
89+ .. code-block :: console
90+
91+ openstack loadbalancer amphora configure <amphora-id>
92+ openstack loadbalancer amphora delete <amphora-id>
0 commit comments