BB-1542: Remove old K/V format support
This PR removes code related to the old K/V format and operations that used Consul transactions.
Testing instructions: Since we don't usually have Consul set up locally, this testing should be performed on stage.
- Deploy this branch on Ocim Stage.
- Go into Ocim shell and pick one active instance and run (don't forget to change
some-instance
to an instance with active appservers):
x = OpenEdXInstance.objects.get(internal_lms_domain__contains='some-instance')
- Check the consul key related to that instance on Consul web interface (username: consul, password: here).
- On ocim shell, run
x.purge_consul_metadata()
and check that the key was deleted on Consul. - Then run
x.update_consul_metadata()
and check that the instance's Consul entry is correctly created using the new format.
Reviewer:
-
@viadanna