[openstack-ko] [Help-Ask] cinder º¼·ý»ý¼º ÈÄ º¼·ý»óÅ status ¿¡ ¸ØÃçÀÖ´Â ¹®Á¦... Àá±ñ Çѹø¸¸ ºÁÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù
Ian Y. Choi
ianyrchoi at gmail.com
Thu Jan 21 16:39:22 UTC 2016
¾È³çÇϼ¼¿ä.
ÀÌ¹Ì ÇØ°áÇϼÌÀ¸·Á³ª ¸ð¸£°ÚÁö¸¸, Âü°í°¡ µÉ±î ½Í¾î ÀÛ¼ºÇÕ´Ï´Ù.
¾Æ·¡ ¸ÞÀÏ ³»¿ë Áß°£ Áß°£¿¡ ÀÛ¼ºÇÏ°íÀÚ ÇÕ´Ï´Ù.
Âü°í°¡ µÇ½Ã±æ º÷´Ï´Ù. °¨»çÇÕ´Ï´Ù.
µðÄÉÀÌ wrote on 1/20/2016 9:13 PM:
> ¾È³çÇϼ¼¿ä ¿ÀǽºÅðü·Ã Çؼ ¹®ÀÇ µå¸³´Ï´Ù. Àá±ñ Çѹø¸¸ ºÁÁÖ½Ã¸é °¨»ç
> ÇÏ°Ú½À´Ï´Ù.^^
> cinder create ¸í·ÉÀ¸·Î »ý¼ºÇÑ »õ·Î¿î º¼·ýÀÇ »óÅ°¡ creating ¿¡¼ °è¼Ó
> ¸ØÃçÀÖ½À´Ï´Ù.
> ¿¹»óµÇ´Â ¹®Á¦ Æ÷ÀÎÆ® ÁöÁ¡ÀÌ ¾îµðÀϱî¿ä? ÇØ°áÀ» ¸øÇϰڳ׿ä...¤Ð
> ÇØ°á¹æ¹ýÀ̳ª Á¢±Ù¹æ¹ýÀ» ¾Æ½Ã¸é ´äº¯ ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
> ¼¹ö¿¡¼ È®ÀÎÇÑ ·Î±×¿Í ±¸¼ºÁ¤º¸ ¹× »óÅ ÇÔ²² °øÀ¯ÇÕ´Ï´Ù.
> ¡Ü [¿ÀǽºÅà ±¸¼º] : 3-node configuration (Controller-node,
> Network-node, Compute-node(½ºÅ丮Áö³ëµåÀ̱⵵ÇÔ))
> : ubuntu14.04, icehouse ¹öÁ¯ÀÌ °¢ ³ëµå¸¶
> ´Ù ¼³Ä¡µÇ¾î ÀÖÀ¸¸ç, virtualbox¿¡¼ ½ÇÇàµÇ°í ÀÖÀ½
=> ¸»¾¸ÇϽŴë·Î icehouse ±âÁØÀ̸é, ¾î¶² ¹®¼¸¦ Âü°íÇÏ°í °è½ÅÁö¿ä?
¿©·¯ ´Ù¸¥ ºí·Î±× µî¿¡µµ ¼³Ä¡ ¹æ½ÄÀÌ Á¤¸®µÇ¾î ÀÖ°ÚÁö¸¸, °ø½Ä ¼³Ä¡ °¡À̵å
°¡ °¡Àå Á¤È®ÇÒ °Å °°½À´Ï´Ù.
Ȥ½Ã ¸ô¶ó ¸µÅ©¸¦ ³²±é´Ï´Ù:
http://docs.openstack.org/icehouse/install-guide/install/apt/content/ch_cinder.html
> ¡Ü (On Controller node)
> # cinder create --display-name myVolume 1
> # cinder list
> +--------------------------------------+----------+--------------+------+-------------+----------+-------------+
> | ID | Status | Display Name |
> Size | Volume Type | Bootable | Attached to |
> +--------------------------------------+----------+--------------+------+-------------+----------+-------------+
> | 4891a2e7-0cb2-4caf-9528-6612d8cf5f5a | creating | myVolume | 1
> | None | false | |
> +--------------------------------------+----------+--------------+------+-------------+----------+-------------+
>
> mysql> select status from volumes;
> +----------+
> | status |
> +----------+
> | creating |
> +----------+
> mysql> select id from volumes;
> +--------------------------------------+
> | id |
> +--------------------------------------+
> | 4891a2e7-0cb2-4caf-9528-6612d8cf5f5a |
> +--------------------------------------+
>
> # netstat -an | grep 8776
> tcp 0 0 0.0.0.0:8776 <http://0.0.0.0:8776> 0.0.0.0:* LISTEN
>
> # netstat -an | grep 5672
> .....
> tcp6 0 0 :::5672 :::* LISTEN
> tcp6 0 0 10.10.15.11:567210.10.15.31:33271 ESTABLISHED
> .....
> # service cinder-api status
> cinder-api start/running, process 3733
> # service cinder-scheduler status
> cinder-scheduler start/running, process 3755
>
> *<Logs>* ¸í·É¾î ½ÇÇàÇÒ¶§ »ý¼ºµÈ ·Î±×
> *<cinder-api.log>*
> 2016-01-20 15:24:29.584 3739 INFO eventlet.wsgi.server [-] (3739)
> accepted ('10.10.15.11', 51845)
> 2016-01-20 15:24:29.588 3739 INFO urllib3.connectionpool [-] Starting
> new HTTP connection (1): 10.10.15.11
> 2016-01-20 15:24:29.874 3739 INFO urllib3.connectionpool [-] Starting
> new HTTP connection (1): 10.10.15.11
> 2016-01-20 15:24:30.029 3739 INFO cinder.api.openstack.wsgi
> [req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50
> 5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d - -
> -] POST
> http://10.10.15.11:8776/v1/56ee36bd79724517bf115df7f3202f1d/volumes
> 2016-01-20 15:24:30.032 3739 AUDIT cinder.api.v1.volumes
> [req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50
> 5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d - -
> -] Create volume of 1 GB
> 2016-01-20 15:24:30.212 3739 AUDIT cinder.api.v1.volumes
> [req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50
> 5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d - -
> -] vol={'migration_status': None, 'availability_zone': 'nova',
> 'terminated_at': None, 'reservations':
> ['8339d8b8-70a5-4226-94a5-ad7c4f16d3f6',
> '6795bec3-0875-49cb-b538-c1e0f3b097c1'], 'updated_at': None,
> 'provider_geometry': None, 'snapshot_id': None, 'ec2_id': None,
> 'mountpoint': None, 'deleted_at': None, 'id':
> '4891a2e7-0cb2-4caf-9528-6612d8cf5f5a', 'size': 1, 'user_id':
> u'5f8b76cf5986402fa6affdb4c9e2fc44', 'attach_time': None,
> 'attached_host': None, 'display_description': None,
> 'volume_admin_metadata': [], 'encryption_key_id': None, 'project_id':
> u'56ee36bd79724517bf115df7f3202f1d', 'launched_at': None,
> 'scheduled_at': None, 'status': 'creating', 'volume_type_id': None,
> 'deleted': False, 'provider_location': None, 'host': None,
> 'source_volid': None, 'provider_auth': None, 'display_name':
> u'myVolume', 'instance_uuid': None, 'bootable': False, 'created_at':
> datetime.datetime(2016, 1, 20, 6, 24, 30, 108934), 'attach_status':
> 'detached', 'volume_type': None, '_name_id': None, 'volume_metadata':
> [], 'metadata': {}}
> 2016-01-20 15:24:30.217 3739 INFO cinder.api.openstack.wsgi
> [req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50
> 5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d - -
> -] http://10.10.15.11:8776/v1/56ee36bd79724517bf115df7f3202f1d/volumes
> returned with HTTP 200
> 2016-01-20 15:24:30.226 3739 INFO eventlet.wsgi.server
> [req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50
> 5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d - -
> -] 10.10.15.11 - - [20/Jan/2016 15:24:30] "POST
> /v1/56ee36bd79724517bf115df7f3202f1d/volumes HTTP/1.1" 200 602 0.639812
>
> *<cinder-scheduler.log>* °è¼Ó °°Àº ·Î±×°¡ ¹Ýº¹µÇ¸ç ½ÇÇàµÉ¶§´Â
> "2016-01-20 15:24:30.205" ·Î±×°¡ Çѹø°¡ ÂïÇûÀ½
> 2016-01-20 15:23:12.097 3755 WARNING cinder.context [-] Arguments
> dropped when creating context: {'user': None, 'tenant': None,
> 'user_identity': u'- - - - -'}
> 2016-01-20 15:24:12.105 3755 WARNING cinder.context [-] Arguments
> dropped when creating context: {'user': None, 'tenant': None,
> 'user_identity': u'- - - - -'}
> *2016-01-20 15:24:30.205 3755 WARNING cinder.context [-] Arguments
> dropped when creating context: {'user':
> u'5f8b76cf5986402fa6affdb4c9e2fc44', 'tenant':
> u'56ee36bd79724517bf115df7f3202f1d', 'user_identity':
> u'5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d -
> - -'}
> *2016-01-20 15:25:12.133 3755 WARNING cinder.context [-] Arguments
> dropped when creating context: {'user': None, 'tenant': None,
> 'user_identity': u'- - - - -'}
ÇØ´ç ·Î±×·Î ºÁ¼´Â ÀÎÁõÀÌ µÈ °ÍÀ¸·Î º¸À̴µ¥.. Ȥ½Ã ¸ð¸£´Ï rabbitmq ·Î±×
µµ »ìÆ캸¼ÌÀ¸¸é ÇÕ´Ï´Ù.
/var/log/rabbitmq Æú´õ¿¡ ·Î±×°¡ ÀÖ½À´Ï´Ù.
±×¸®°í ¼³Á¤ ÆÄÀÏ º¯°æÇϼÌÀ¸¸é °ü·Ã ¼ºñ½º Àç½ÃÀÛÇØ Áֽðí¿ä..
>
> *# cinder.conf* <controller node>
> [DEFAULT]
> rootwrap_config = /etc/cinder/rootwrap.conf
> api_paste_confg = /etc/cinder/api-paste.ini
> iscsi_helper = tgtadm
> volume_name_template = volume-%s
> volume_group = cinder-volumes
> verbose = True
> auth_strategy = keystone
> state_path = /var/lib/cinder
> lock_path = /var/lock/cinder
> volumes_dir = /var/lib/cinder/volumes
> rpc_backend = cinder.openstack.common.rpc.impl_kombu
ÇöÀç °ø½Ä ¼³Ä¡ ¹®¼ °¡À̵忡´Â rpc_backend·Î rabbitÀ» ¼³Á¤Ç϶ó°í µÇ¾î ÀÖ
³×¿ä.
°ü·ÃÇؼ °Ë»öÇغ¸´Ï 2014³â 8¿ù Áß¼ø¿¡, rabbitÀ¸·Î ¿É¼ÇÀ» ÁÖ¾î¾ß Á¦´ë·Î
µÇ´Â °É·Î..
¼³Ä¡ °¡ÀÌµå ¹®¼°¡ ¼öÁ¤µÈ °ÍÀ¸·Î ³ª¿Í ÀÖ½À´Ï´Ù:
https://bugs.launchpad.net/openstack-manuals/+bug/1358752
¾Æ·¡ computeÂʵµ ¸¶Âù°¡ÁöÀÏÅ×°í.. rabbitÀ¸·Î ¹Ù²Ù°í Å×½ºÆ®ÇϼÌÀ¸¸é ÇÕ´Ï´Ù.
> rabbit_host = 10.10.15.11
> rabbit_port = 5672
> rabbit_userid = guest
> rabbit_password = rabbitpass
> control_exchange = cinder
> notification_driver = cinder.openstack.common.notifier.rpc_notifier
=> ¾î¶² ¹®¼¸¦ ±âÁØÀ¸·Î ¼³Ä¡ÇϽôÂÁö Àß ¸ð¸£°ÚÀ¸³ª, cinder ¼³Ä¡½Ã
OpenStack °ø½Ä icehouse ¼³Ä¡ ¹®¼¿¡´Â
notification_driver ÀÚü´Â ¾ø´øµ¥.. ´Ù¸¥ ÄÄÆ÷³ÍÆ®¿Í ¿¬µ¿ÇÏ·Á°í ¼³Á¤ÇÏ
½Å °ÇÁö¿ä?
> [database]
> connection = mysql://cinder:cinderdbpass@10.10.15.11/cinder
> <http://cinder:cinderdbpass@10.10.15.11/cinder>
> [keystone_authtoken]
> auth_uri = http://10.10.15.11:5000
> auth_host = 10.10.15.11
> auth_port = 35357
> auth_protocol = http
> admin_tenant_name = service
> admin_user = cinder
> admin_password = cinderpass
>
¸¶Âù°¡Áö·Î ¼³Á¤ ÆÄÀÏ º¯°æÇϼÌÀ¸¸é °ü·Ã ¼ºñ½º Àç½ÃÀÛÇØ Áֽðí¿ä..
±×¸®°í ÄÁÆ®·Ñ·¯ ³ëµå ¼³Á¤ ÈÄ, keystone¿¡ volume, volumev2 2°³ÀÇ À¯Çü¿¡
´ëÇÑ ¼ºñ½º ¹×
¿£µåÆ÷ÀÎÆ®¿¡ ´ëÇØ keystoneÀ¸·Î Ãß°¡ÇØ ÁÖ½Ã¸é µË´Ï´Ù. Ãß°¡µÇ¾î ÀÖ´ÂÁö È®
ÀÎ ÇØ º¸¼Å¾ß ÇÏÁö ½Í±¸¿ä..
> ---------------------------------------------------------------------------------------------------------------
>
> ¡Ü (On Compute node) ½ºÅ丮Áö³ëµå
> # vgs
> VG #PV #LV #SN Attr VSize VFree
> cinder-volumes 2 0 0 wz--n- 1.99g 1.99g
> # pvs
> PV VG Fmt Attr PSize PFree
> /dev/sdc cinder-volumes lvm2 a-- 1020.00m 1020.00m
> /dev/sdd cinder-volumes lvm2 a-- 1020.00m 1020.00m
> # service cinder-volume status
> cinder-volume start/running, process 1755
> # service tgt status
> tgt start/running, process 1783
> # /etc/lvm/lvm.conf
> ...
> filter = [ "a/sda1/", "a/sdc/", "a/sdd/", "r/.*/"]
> ....
> # netstat -an | grep 5672
> tcp 0 0 10.10.15.31:33263 <http://10.10.15.31:33263>
> 10.10.15.11:5672 <http://10.10.15.11:5672> ESTABLISHED
> *# cinder-volume.log * (¸í·É¼öÇà°ú °ü°è¾øÀÌ ¾Æ·¡ ·Î±×¸¸ ¹Ýº¹µÊ.)
> 2016-01-20 15:12:12.112 2422 INFO cinder.volume.manager [-] Updating
> volume status
> 2016-01-20 15:13:12.139 2422 INFO cinder.volume.manager [-] Updating
> volume status
> 2016-01-20 15:14:12.107 2422 INFO cinder.volume.manager [-] Updating
> volume status
> 2016-01-20 15:15:12.147 2422 INFO cinder.volume.manager [-] Updating
> volume status
> 2016-01-20 15:16:12.121 2422 INFO cinder.volume.manager [-] Updating
> volume status
> *# cinder.conf* <compute node>
> [DEFAULT]
> rootwrap_config = /etc/cinder/rootwrap.conf
> api_paste_confg = /etc/cinder/api-paste.ini
> iscsi_helper = tgtadm
> volume_name_template = volume-%s
> volume_group = cinder-volumes
> verbose = True
> auth_strategy = keystone
> state_path = /var/lib/cinder
> lock_path = /var/lock/cinder
> volumes_dir = /var/lib/cinder/volumes
> #
> rpc_backend = cinder.openstack.common.rpc.impl_kombu
¿ª½Ã, rabbitÀ¸·Î º¯°æÇÏ¼Å¾ß ÇÒ °Í °°°í...
> rabbit_host = 10.10.15.11
> rabbit_port = 5672
> rabbit_userid = guest
> rabbit_password = rabbitpass
> #
> my_ip = 10.10.15.31
> glance_host = 10.10.15.11
> #
> [keystone_authtoken]
> auth_uri = http://10.10.15.11:5000
> auth_host = 10.10.15.11
> auth_port = 35357
> auth_protocol = http
> admin_tenant_name = service
> admin_user = cinder
> admin_password = cinderpass
> #
> [database]
> connection = mysql://cinder:cinderdbpass@10.10.15.11/cinder
> <http://cinder:cinderdbpass@10.10.15.11/cinder>
>
> # ls -al /var/lib/cinder/volumes
> total 8
> drwxr-xr-x 2 cinder cinder 4096 9¿ù 5 05:43 .
> drwxr-xr-x 3 cinder cinder 4096 1¿ù 19 21:13 ..
> # ls -al /var/lock/cinder
> total 0
> drwxr-xr-x 2 cinder root 40 1¿ù 19 21:52 .
> drwxrwxrwt 7 root root 140 1¿ù 19 21:53 ..
À§ 2°³ Æú´õ¿¡´Â ÆÄÀÏÀÌ ¾ø´Ù°í ºñÁ¤»óÀº ¾Æ´Ñ °ÍÀ¸·Î ¾Ë°í ÀÖ½À´Ï´Ù.
> # cat /admin-openrc.sh
> export OS_USERNAME=admin
> export OS_PASSWORD=adminpass
> export OS_TENANT_NAME=admin
> export OS_AUTH_URL=http://10.10.15.11:35357/v2.0
>
>
> _______________________________________________
> openstack-ko mailing list
> openstack-ko at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-ko