General installation steps refer to http://blog.chinaunix.net/uid-22414998-id-3265685.html?page=2;
But there are some minor problems:
1.
Open the/etc/glance/glance-registry-paste.ini file and make the same edits at the end of the file as described above.
Then, modify the Glance database connection as MySQL, edit/etc/glance/glance-registry.conf, and find the "sql_connection =" sentence as follows:
Sql_connection = Mysql://glancedbadmin:[email protected]/glance
But actually can not find such a statement, only Sqllite and other statements, directly replace this statement to sql_connection= ....
2.
Create a glance schema in the MySQL database to synchronize:
sudo glance-manage Version_control 0
sudo glance-manage db_sync
When executing these two statements, the first one is changed to sudo glance-manage Db_version_control 0
Execution of the second statement will cause an error: CRITICAL glance [-] valueerror:tables "Migrate_version"
Has non UTF8 collation, please make sure all tables is Charset=utf8;
Workaround: Modify the database table amount encoding
Mysql-u Root-p Glance
mysql> ALTER TABLE migrate_version convert to Character set UTF8 collate utf8_unicode_ci;
mysql> flush Privileges;
Mysql> quit;
Reference: http://www.9itop.cn/thread-30905-1-1.html
3.
Several issues to be aware of during OpenStack installation