Part 3 of Part 6 - Openstack Queens installation in Virtualbox on Ubuntu - Keystone & Glance
Автор: Kedar Apte
Загружено: 2018-07-17
Просмотров: 522
Описание:
Let us start with Keystone deployment
mysql -u root -p
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'keystone';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'keystone';
quit;
apt install keystone apache2 libapache2-mod-wsgi
Edit the /etc/keystone/keystone.conf file
--------------------------------------------------------------
nano /etc/keystone/keystone.conf
[database]
connection = mysql+pymysql://keystone:keystone@controller/keystone
[token]
provider = fernet
---------------------------------------------------------------
su -s /bin/sh -c "keystone-manage db_sync" keystone
keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
keystone-manage bootstrap --bootstrap-password ADMIN --bootstrap-admin-url http://controller:5000/v3/
keystone-manage bootstrap --bootstrap-password ADMIN --bootstrap-internal-url http://controller:5000/v3/
keystone-manage bootstrap --bootstrap-password ADMIN --bootstrap-public-url http://controller:5000/v3/
keystone-manage bootstrap --bootstrap-password ADMIN --bootstrap-region-id RegionOne
Edit the /etc/apache2/apache2.conf
nano /etc/apache2/apache2.conf
ServerName controller
Save & exit
service apache2 restart
----------------------------------------------------------------
nano admin_openrc
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
---------------------------------------------------------------
source admin_openrc (mention this everytime when you change the shell)
openstack project create --domain default --description "Service Project" service
openstack project create --domain default --description "Demo Project" demo
openstack user create --domain default --password demo demo
openstack role create user
openstack role add --project demo --user demo user
---------------------------------------------------------------------------------------------------
===================================================================================================
Glance installation
mysql -u root -p
CREATE DATABASE glance;
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'glance';
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'glance';
quit;
openstack user create --domain default --password glance glance
openstack role add --project service --user glance admin
openstack service create --name glance --description "OpenStack Image" image
openstack endpoint create --region RegionOne image public http://controller:9292
openstack endpoint create --region RegionOne image internal http://controller:9292
openstack endpoint create --region RegionOne image admin http://controller:9292
apt install glance
-----------------------------------------------------
nano /etc/glance/glance-api.conf
[database]
connection = mysql+pymysql://glance:glance@controller/glance
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = glance
[paste_deploy]
flavor = keystone
[glance_store]
stores = file,http
default_store = file
filesystem_store_datadir = /var/lib/glance/images/
---------------------------------------------------------
Make similar changes in /etc/glance/glance-registry.conf
nano /etc/glance/glance-registry.conf
[database]
connection = mysql+pymysql://glance:glance@controller/glance
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = glance
[paste_deploy]
flavor = keystone
-------------------------------------------------------------
su -s /bin/sh -c "glance-manage db_sync" glance
service glance-registry restart
service glance-api restart
We can download cirros image in the glance store now or we can do it when we install the dashboard, we can do it anytime we want
wget http://download.cirros-cloud.net/0.3....
openstack image create "cirros" --file cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format bare --public
openstack image list
We are done with installing keystone and glance services. See you in part 4 in which we shall be installing nova services on controller node and nova-compute on compute node
Bye
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: