Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: Make sure OVN key files are available before accessing them
When Engine CA certificate file is removed and then engine-setup with certificate renewal is run, engine-setup may fail with the following error: [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/etc/pki/ovirt-engine/keys/ovn-sdb.key.nopass' The problem is that otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._upgrade, which requires the presence of the OVN keys, may be run before otopi.plugins.ovirt_engine_setup.ovirt_engine.pki.ca.Plugin._miscUpgrade, which generates them if previously asked for that by otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._misc_pki. Let’s ensure correct ordering of these three actions and also set up OVN renewal if self._provider_installed is true, since this condition is used to check whether otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._upgrade should be run.
- Loading branch information