Upgrading Virtuozzo PowerPanel
/etc/vzapi/vzapi.conf and /etc/keystone/keystone.conf, copy them to a safe location and keep them at hand.Typically, notifications are sent out about each Virtuozzo PowerPanel release, so you know when you can upgrade. In addition, you can manually check for updates at any time using vzapi-installer check-upgrade --minimal or --full. The latter option provides more ways to filter command’s JSON output.
The output may look like this:
| |
After confirming that an update is available, do the following:
Update the installer package:
1# yum update vzapi-installerYUM will back up the current configuration templates
/usr/share/vzapi-installer/roles/api/templates/vzapi.conf.j2and/usr/share/vzapi-installer/roles/keystone/templates/keystone.conf.j2to*.j2.rpmsaveand replace them with the updated ones.If you have customized the
*.j2templates, merge the customizations from the*.j2.rpmsavebackups to the new templates.For the upgrade, the identity driver must be set to SQL (driver = sql) in/usr/share/vzapi-installer/roles/keystone/templates/keystone.conf.j2.Start the upgrade:
1# vzapi-installer upgrade <upgrade_package_URL>Where
<upgrade_package_URL>is the URL of thepp-releasepackage that installs a repository for the upgrade. The URL becomes available when an update is released. It is mentioned in Deploying the Controller as well as the release notes.The controller and compute nodes will be redeployed. The current configuration files
/etc/vzapi/vzapi.confand/etc/keystone/keystone.confwill be deleted and created anew from the updated templates. If you have customized the*.conffiles, merge the customizations from the previously saved copies to the new files.
systemctl restart vzapi-compute.