mysql> CREATE DATABASE nova;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'XXXXXXXXXXXXXXX';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'XXXXXXXXXXXXXXX';
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
root@controller:~# source /root/admin-openrc.sh
root@controller:~# keystone user-create --name=nova --pass=XXXXXXXXXXXXXXX --email=newbd@smileserv.com
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| email | newbd@smileserv.com |
| enabled | True |
| id | 7cf04c61dd7c4294898026f8c932efc6 |
| name | nova |
| username | nova |
+----------+----------------------------------+
root@controller:~# keystone user-role-add --user=nova --tenant=service --role=admin
root@controller:~# keystone service-create --name=nova --type=compute --description="OpenStack Compute"
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | OpenStack Compute |
| enabled | True |
| id | 49774c273f1f4d20851d124d74cd849b |
| name | nova |
| type | compute |
+-------------+----------------------------------+
root@controller:~# keystone endpoint-create \
> --service-id=$(keystone service-list | awk '/ compute / {print $2}') \
> --publicurl=http://115.XXX.XXX.6:8774/v2/%\(tenant_id\)s \
> --internalurl=http://115.XXX.XXX.6:8774/v2/%\(tenant_id\)s \
> --adminurl=http://115.XXX.XXX.6:8774/v2/%\(tenant_id\)s
+-------------+-------------------------------------------+
| Property | Value |
+-------------+-------------------------------------------+
| adminurl | http://115.XXX.XXX.6:8774/v2/%(tenant_id)s |
| id | 5e21130124c44e84a369fd043c249815 |
| internalurl | http://115.XXX.XXX.6:8774/v2/%(tenant_id)s |
| publicurl | http://115.XXX.XXX.6:8774/v2/%(tenant_id)s |
| region | regionOne |
| service_id | 49774c273f1f4d20851d124d74cd849b |
+-------------+-------------------------------------------+
root@controller:~# (keystone service-list | awk '/ compute / {print $2}')
49774c273f1f4d20851d124d74cd849b
root@controller:~# apt-get -y install nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler python-novaclient
/etc/nova/nova.conf ¼öÁ¤ & Ãß°¡
[DEFAULT]
...
auth_strategy = keystone
rpc_backend = rabbit
rabbit_host = 115.XXX.XXX.6
rabbit_password = XXXXXXXXXXXXXXX
my_ip = 115.XXX.XXX.6
vncserver_listen = 115.XXX.XXX.6
vncserver_proxyclient_address = 115.XXX.XXX.6
glance_host = 115.XXX.XXX.6
[database]
connection = mysql://nova:XXXXXXXXXXXXXXX@115.XXX.XXX.6/nova
[keystone_authtoken]
auth_uri = http://115.XXX.XXX.6:5000/v2.0
auth_host = 115.XXX.XXX.6
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = XXXXXXXXXXXXXXX
root@controller:~# nova-manage db sync
2015-02-24 14:39:28.801 10052 INFO migrate.versioning.api [-] 215 -> 216...
2015-02-24 14:40:09.152 10052 INFO migrate.versioning.api [-] done
2015-02-24 14:40:09.153 10052 INFO migrate.versioning.api [-] 216 -> 217...
.............
2015-02-24 14:40:24.492 10052 INFO migrate.versioning.api [-] 253 -> 254...
2015-02-24 14:40:25.195 10052 INFO migrate.versioning.api [-] done
root@controller:~# service nova-api restart
nova-api stop/waiting
nova-api start/running, process 10574
root@controller:~# service nova-cert restart
nova-cert stop/waiting
nova-cert start/running, process 10613
root@controller:~# service nova-consoleauth restart
nova-consoleauth stop/waiting
nova-consoleauth start/running, process 10641
root@controller:~# service nova-scheduler restart
nova-scheduler stop/waiting
nova-scheduler start/running, process 10666
root@controller:~# service nova-conductor restart
nova-conductor stop/waiting
nova-conductor start/running, process 10689
root@controller:~# service nova-novncproxy restart
nova-novncproxy stop/waiting
nova-novncproxy start/running, process 10724
root@controller:~# rm -f /var/lib/nova/nova.sqlite
È®ÀÎ
nova ¸í·É¾î·Î À̹ÌÁö¸ñ·Ï È®ÀÎ
root@controller:~# source /root/admin-openrc.sh
root@controller:~# nova image-list