Page MenuHomePhabricator

Improve trove backup/restore
Closed, ResolvedPublic

Description

Now that we have Swift this barely works. It needs some work though:

  • All existing guest VMs need a config upgrade to find the right container images
  • The process for building container images needs documenting
  • An upgrade to Bobcat will fix version discovery for backup containers which should unblock future versions

Event Timeline

All existing guest VMs need a config upgrade to find the right container images

This is harder than I expected. Many config settings can be updated, but the guest agent still fails to talk to the openstack APIs as needed to complete the backup.

I think the needed steps are:

  • Update /etc/trove/conf.d/trove-guestagent.conf, adding the needed (or all) backup_docker_image and [service_credentials] section
  • Update the resident trove agent: $ source /opt/guest-agent-venv/bin/activate $ pip install --upgrade trove
  • Restart guest agent $ service guest-agent restart

Update about this: I'm working on getting 'openstack database instance rebuild' working for all our cases (T355721); if that succeeds then that provides a path forward for guest VM upgrades.

All Trove instances (well, really, all but one which is getting upgraded next week) are now updated, and backup/restore seems to work fine.