mysql -uroot -pabc-123
---
create database glance;
grant all privileges on glance.* to 'glance'@'localhost' identified by 'glance';
grant all privileges on glance.* to 'glance'@'%' identified by 'glance';
flush privileges;
exit
5.2 Keystone注册glance
5.2.1 Keystone创建glance用户
[root@controller script]# openstack user create --domain default --password=glance glance
openstack user list+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 977f170b491d49a289677396d19caca2 |
| name | glance |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
[root@controller script]# openstack user list
+----------------------------------+--------+
| ID | Name |
+----------------------------------+--------+
| 39732e6eef9641dca49bdee383ae02d3 | test |
| 977f170b491d49a289677396d19caca2 | glance |
| d1379b1a6b0e4adb822be53379a228e1 | admin |
+----------------------------------+--------+