Restore a Fuel controller from the postgresql dump?

Asked by Baboune

Hi,

There are situations where the containers for postgresql can be lost due to corruption. The mirantis operation manual points to various conditions and steps to recover from container corruptions by using a postgresql dump (see https://docs.mirantis.com/openstack/fuel/fuel-6.0/operations.html#id96)

However, I am unsure how to recover if all containers have been wiped or rebuilt, and the only available data for the restore is the postgresql dump.

The first steps seem clear:
1) Create a fuel server with same release version as lost system
2) Verify all containers are running
3) Restore PostgreSQL:
dockerctl destroy postgres
dockerctl start postgres
dockerctl copy dump.sql postgres:/root/
dockerctl shell postgres su postgres -c "psql nailgun < /root/dump.sql"
dockerctl restart postgres nailgun keystone ostf

Not sure, how to recover Astute, and Cobbler?

Thanks for the help.

Question information

Language:
English Edit question
Status:
Answered
For:
Fuel for OpenStack Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Evgeny Kozhemyakin (ekozhemyakin) said :
#1

Hi,

Unfortunately the postgres dump is not enought for recovery.
You've got three statefull container: postgres, cobbler and astute.

For full recovery you need at least

1. /var/lib/pgsql from postgres container
2. /var/lib/cobbler data from cobbler container
3. /var/lib/astute from astute. (Ssl keys are kept here.)
4. /etc/fuel/* config files from master (astute.yaml especially)
5. network configuration of master
6. I'm near sure I've missed something

You can try to recover the cobbler data with "cobbler sync"command from the container, but I can't guarantee.
No way to recover astute's and other data.

Regards,

Can you help with this problem?

Provide an answer of your own, or ask Baboune for more information if necessary.

To post a message you must log in.