Configuring user accounts in Virtuozzo Hybrid Infrastructure
To configure the virtual appliance, you need a Virtuozzo Hybrid Infrastructure user account. This account must have the Administrator role in the Default domain. For more information about users, refer to Managing Domain Users in the Virtuozzo Hybrid Infrastructure documentation. Ensure that you granted this account access to all projects in the Default domain.
To grant access to all projects in the Default domain
Run the following script in the Virtuozzo Hybrid Infrastructure cluster via the OpenStack Command-Line Interface. For more information on how to connect to this interface, refer to Connecting to OpenStack Command-Line Interface in the Virtuozzo Hybrid Infrastructure documentation.
su - vstoradmin
kolla-ansible post-deploy
exit
. /etc/kolla/admin-openrc.sh
openstack --insecure user set --project admin --project-domain Default --domain Default <username>
openstack --insecure role add --domain Default --user <username> --user-domain Default compute --inherited
Here, <username> is the Virtuozzo Hybrid Infrastructure account with the Administrator role in the Default domain. The virtual appliance will use this account in order to back up and restore the virtual machines in any child project under the Default domain.
Example
su - vstoradmin
kolla-ansible post-deploy
exit
. /etc/kolla/admin-openrc.sh
openstack --insecure user set --project admin --project-domain Default --domain Default johndoe
openstack --insecure role add --domain Default --user johndoe --user-domain Default compute --inherited
To manage backups for virtual machines in a domain that is different from the Default domain, run the following script as well.
To grant access to all projects in a different domain
su - vstoradmin
kolla-ansible post-deploy
exit
. /etc/kolla/admin-openrc.sh
openstack --insecure role add --domain <domain name> --inherited --user <username> --user-domain Default admin
Here, <domain name> is the domain to the projects in which the <username> account will have access.
Example
su - vstoradmin
kolla-ansible post-deploy
exit
. /etc/kolla/admin-openrc.sh
openstack --insecure role add --domain MyNewDomain --inherited --user johndoe --user-domain Default admin