Bug 1207701
Summary: | Unable to attach cinder volume to instance | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] RDO | Reporter: | Udayendu Kar <udayendu.kar> | ||||
Component: | openstack-puppet-modules | Assignee: | Lukas Bezdicka <lbezdick> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | yeylon <yeylon> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | Juno | CC: | eharney, lbezdick, srevivo, udayendu.kar, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | Kilo | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-puppet-modules-2014.2.14-1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Udayendu Kar
2015-03-31 13:47:30 UTC
Could you also please attach the cinder volume log? The new instance creation is OK. From command line also its not working: [root@localhost ~(keystone_admin)]# cinder list +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | 7dd8b1d4-5936-4645-b71c-eb7fbbca96cc | available | vol | 1 | iscsi | false | | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ [root@localhost ~(keystone_admin)]# nova list +--------------------------------------+-------+--------+------------+-------------+---------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-------+--------+------------+-------------+---------------------+ | 7a0d5c72-e409-4f48-b500-892fb91e504b | first | ACTIVE | - | Running | public=172.24.4.228 | +--------------------------------------+-------+--------+------------+-------------+---------------------+ [root@localhost ~(keystone_admin)]# nova volume-attach 7a0d5c72-e409-4f48-b500-892fb91e504b 7dd8b1d4-5936-4645-b71c-eb7fbbca96cc auto +----------+--------------------------------------+ | Property | Value | +----------+--------------------------------------+ | device | /dev/vdb | | id | 7dd8b1d4-5936-4645-b71c-eb7fbbca96cc | | serverId | 7a0d5c72-e409-4f48-b500-892fb91e504b | | volumeId | 7dd8b1d4-5936-4645-b71c-eb7fbbca96cc | +----------+--------------------------------------+ [root@localhost ~(keystone_admin)]# cinder list +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | 7dd8b1d4-5936-4645-b71c-eb7fbbca96cc | attaching | vol | 1 | iscsi | false | | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ Created attachment 1009071 [details]
Cinder volume log
Eric, Here is the error: ==--== 2015-03-31 18:49:10.864 1868 INFO cinder.brick.iscsi.iscsi [req-b432129a-cbd6-4153-aab7-0f1444fe9a96 c8907d964a6241ff886896b19c9be242 41dc9394e65f46b187e4021f8f7881dd - - -] Creating iscsi_target fo r volume: volume-7dd8b1d4-5936-4645-b71c-eb7fbbca96cc 2015-03-31 18:49:12.147 1868 ERROR cinder.brick.iscsi.iscsi [req-b432129a-cbd6-4153-aab7-0f1444fe9a96 c8907d964a6241ff886896b19c9be242 41dc9394e65f46b187e4021f8f7881dd - - -] Failed to create iscsi target for volume id:volume-7dd8b1d4-5936-4645-b71c-eb7fbbca96cc. 2015-03-31 18:49:12.149 1868 ERROR oslo.messaging.rpc.dispatcher [req-b432129a-cbd6-4153-aab7-0f1444fe9a96 c8907d964a6241ff886896b19c9be242 41dc9394e65f46b187e4021f8f7881dd - - -] Exception during m essage handling: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. ==--== More errors are there in the attached volume.log file. Thanks, Uday Eric, Did you get a chance to look into the attached logs. Manually also the below command is not working. # sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-7dd8b1d4-5936-4645-b71c-eb7fbbca96cc -p 192.168.122.70:3260 --rescan Thanks, Uday This is caused by puppet-cinder starting tgtd even though it should be using lioadm. Fedora 20 and 21 should now use lioadm Thanks Lukas, Currently do you have any workaround for this issue ? I would grab opm rpm from here http://koji.fedoraproject.org/koji/buildinfo?buildID=625675 and rerun packstack. After rerun stop tgtd daemon. |