¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
OpenStack JUNO - Ubuntu 14.04 #04 Nova-Management
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-02-24 (È­) 13:28 Á¶È¸ : 2923
                                
Nova Management  INSTALL
root@controller:~# mysql -uroot -pXXXXXXXXXXXXXXX
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
+--------------------------------------+------------------------------+-------------+------------------+------------+--------+
| ID                                   | Name                         | Disk Format | Container Format | Size       | Status |
+--------------------------------------+------------------------------+-------------+------------------+------------+--------+
| 14cb4b95-07c2-478a-88a6-fa1e7931f828 | cirros-0.3.2-x86_64          | qcow2       | bare             | 13167616   | active |
| a86622c9-a876-4fbc-825f-6f80a2fb8354 | Ubuntu14.04_cloud-images     | qcow2       | bare             | 256705024  | active |
| a4373411-7dff-4083-aa9a-6e94b3f2944d | CentOS6.6 SMILESERV-IMG | qcow2       | bare             | 2822307840 | active |
+--------------------------------------+------------------------------+-------------+------------------+------------+--------+

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.