To install, configure, and register an image with Glance, follow the steps outlined here:
- Create the Glance database and user:
root@controller:~# mysql -u root -plxcpasswordMariaDB [(none)]> CREATE DATABASE glance;Query OK, 1 row affected (0.00 sec)MariaDB [(none)]> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'lxcpassword';Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'lxcpassword';Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> exitByeroot@controller:~#
- Create the Glance user and add it to the admin role:
root@controller:~# openstack user create --domain default --password-prompt glanceUser Password:Repeat User ...