$ sudo aptitude install python-pip
$ sudo pip install python-novaclient
$ sudo pip install python-neutronclient
$ sudo pip install python-keystoneclient
$ sudo pip install python-glanceclient
$ sudo pip install python-swiftclient
$ sudo pip install python-cinderclient
$ sudo pip install python-heatclient
$ sudo pip install python-ceilometerclient
$ source openrc.sh
$ sudo apt-get install glance python-glanceclient
$ sudo nano /etc/glance/glance-api.conf
[DEFAULT]
...
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.
html#sqlalchemy.create_engine
sql_connection = mysql://glance:openstack@controller/glance
...
*openstack > glance database password
$ sudo nano /etc/glance/glance-registry.conf
[DEFAULT]
...
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.
html#sqlalchemy.create_engine
sql_connection = mysql://glance:openstack@controller/glance
...
$ sudo rm -f /var/lib/glance/glance.sqlite
$ mysql -u root -p
mysql> CREATE DATABASE glance;
mysql> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY openstack;
mysql> GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY openstack;
$ sudo glance-manage db_sync
$ keystone user-create --name=glance --pass=openstack --email=glance@controller
$ keystone user-role-add --user=glance --tenant=service --role=admin
$ sudo nano /etc/glance/glance-api.conf
...
[keystone_authtoken]
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = openstack
...
$ sudo nano /etc/glance/glance-registry.conf
...
[keystone_authtoken]
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = openstack
...
$ sudo nano /etc/glance/glance-api-paste.ini
[filter:authtoken]
paste.filter_factory=keystoneclient.middleware.auth_token:filter_factory
auth_host=controller
admin_user=glance
admin_tenant_name=service
admin_password=openstack
flavor=keystone
$ sudo nano /etc/glance/glance-registry-paste.ini
[filter:authtoken]
paste.filter_factory=keystoneclient.middleware.auth_token:filter_factory
auth_host=controller
admin_user=glance
admin_tenant_name=service
admin_password=openstack
flavor=keystone
$ keystone service-create --name=glance --type=image --description="Glance Image Service"
$ keystone endpoint-create --service-id=the_service_id_above --publicurl=http://controller:9292 --internalurl=http://controller:9292 --adminurl=http://controller:9292
$ sudo service glance-registry restart
$ sudo service glance-api restart
Hi, i have tried installing on ubuntu 14.04. i'm kinda lost when editing /etc/glance/glance-api.conf. i can't seem to find this
ReplyDelete# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.
html#sqlalchemy.create_engine
kindly assist.
thanks