sadhu suresh created CLOUDSTACK-4240:
----------------------------------------
Summary: ceph:unable to attach a rbd datadisk to a ceph instance
Key: CLOUDSTACK-4240
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4240
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Reporter: sadhu suresh
step:
1.add primary storage with protocol as RBD by providing the all the required
details (like storage tag as RBD as well other ceph storage cluster details)
2.once its successfully added to CS,create "compute offering" by specifying
the storage Tag "RBD"
3.deploye A VM using above compute offering
4. once its successful
5,create a disk offering by mentioning the storage tag as "RBD"
6.create volume using above diskoffering and try to attach volume to instance
createdin step:3
Actual results:
attach data disk volume failed "Unable to find storage pool when create
volumecs"
mysql> select * from storage_pool where id=20\G;
*************************** 1. row ***************************
id: 20
name: rbd
uuid: 8e7c6fb5-c4d7-38f9-9cb1-d34d3bba4957
pool_type: RBD
port: 6789
data_center_id: 1
pod_id: 1
cluster_id: 3
used_bytes: 0
capacity_bytes: 150248366080
host_address: 10.147.41.3
user_info: admin:AQBV7AFSsLmZEBAAmGivAk_BV1iMvcaRHQfiXg==
path: cloudstack
created: 2013-08-11 21:03:35
removed: NULL
update_time: NULL
status: Up
storage_provider_name: DefaultPrimary
scope: CLUSTER
hypervisor: NULL
managed: 0
capacity_iops: NULL
1 row in set (0.00 sec)
select * from async_job;
id: 74
user_id: 2
account_id: 2
session_key: NULL
instance_type: NULL
instance_id: NULL
job_cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd
job_cmd_originator: NULL
job_cmd_info:
{"sessionkey":"oLMqb83SuNXD6lzMxicb57XsmUk\u003d","cmdEventType":"VM.CREATE","ctxUserId":"2","serviceOfferingId":"3d58746c-6839-4f58-8ba2-4cfb8bfeea6b","httpmethod":"GET","zoneId":"6ec00b45-7913-4095-944b-d0fa16adb84a","templateId":"a70d1aea-fe1d-11e2-9c5b-06a2f0000056","response":"json","id":"29","networkIds":"175ee16b-5cb1-4a35-bce2-daeada124e64","hypervisor":"KVM","name":"onlc","_":"1376245769516","ctxAccountId":"2","ctxStartEventId":"310","displayname":"onlc"}
job_cmd_ver: 0
callback_type: 0
callback_address: NULL
job_status: 1
job_process_status: 0
job_result_code: 0
job_result:
org.apache.cloudstack.api.response.UserVmResponse/virtualmachine/{"id":"da617d9f-9d08-4067-9405-66c9875c6ae2","name":"onlc","displayname":"onlc","account":"admin","domainid":"a707b316-fe1d-11e2-9c5b-06a2f0000056","domain":"ROOT","created":"2013-08-11T19:57:40-0400","state":"Running","haenable":false,"zoneid":"6ec00b45-7913-4095-944b-d0fa16adb84a","zonename":"zone111","hostid":"68109a25-9ea8-42c2-a9f3-132eaf732236","hostname":"Rack1Pod1Host21","templateid":"a70d1aea-fe1d-11e2-9c5b-06a2f0000056","templatename":"CentOS
5.5(64-bit) no GUI (KVM)","templatedisplaytext":"CentOS 5.5(64-bit) no GUI
(KVM)","passwordenabled":false,"serviceofferingid":"3d58746c-6839-4f58-8ba2-4cfb8bfeea6b","serviceofferingname":"rbd1","cpunumber":1,"cpuspeed":100,"memory":128,"guestosid":"a735d8e0-fe1d-11e2-9c5b-06a2f0000056","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"f53b8743-1ef6-4ba0-9049-6956de7c2e24","networkid":"175ee16b-5cb1-4a35-bce2-daeada124e64","networkname":"nw1","netmask":"255.255.255.0","gateway":"10.1.2.1","ipaddress":"10.1.2.119","isolationuri":"vlan://1003","broadcasturi":"vlan://1003","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:65:bc:00:09"}],"hypervisor":"KVM","instancename":"i-2-29-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"jobid":"b91ad3a5-a9da-4cfe-b368-278eb775039e","jobstatus":0}
job_init_msid: 7296881000534
job_complete_msid: 7296881000534
created: 2013-08-11 23:57:41
last_updated: 2013-08-12 00:06:50
last_polled: 2013-08-12 00:06:49
removed: NULL
uuid: b91ad3a5-a9da-4cfe-b368-278eb775039e
*************************** 14. row ***************************
id: 75
user_id: 2
account_id: 2
session_key: NULL
instance_type: NULL
instance_id: NULL
job_cmd:
org.apache.cloudstack.api.command.user.volume.CreateVolumeCmd
job_cmd_originator: NULL
job_cmd_info:
{"id":"33","response":"json","sessionkey":"oLMqb83SuNXD6lzMxicb57XsmUk\u003d","cmdEventType":"VOLUME.CREATE","ctxUserId":"2","diskOfferingId":"cae9cf06-9709-48b8-8b6c-62bd0bdc53bc","name":"cs","httpmethod":"GET","_":"1376246191450","ctxAccountId":"2","ctxStartEventId":"313","zoneId":"6ec00b45-7913-4095-944b-d0fa16adb84a"}
job_cmd_ver: 0
callback_type: 0
callback_address: NULL
job_status: 1
job_process_status: 0
job_result_code: 0
job_result:
org.apache.cloudstack.api.response.VolumeResponse/volume/{"id":"0b353b34-f2a4-41a0-ae88-1af19e6ca32d","name":"cs","zoneid":"6ec00b45-7913-4095-944b-d0fa16adb84a","zonename":"zone111","type":"DATADISK","size":1073741824,"miniops":0,"maxiops":0,"created":"2013-08-11T20:04:44-0400","state":"Allocated","account":"admin","domainid":"a707b316-fe1d-11e2-9c5b-06a2f0000056","domain":"ROOT","storagetype":"shared","diskofferingid":"cae9cf06-9709-48b8-8b6c-62bd0bdc53bc","diskofferingname":"csdata","diskofferingdisplaytext":"csdata","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true,"jobid":"db07bfb7-d2b8-4ae6-bd10-f0f64332d639","jobstatus":0}
job_init_msid: 7296881000534
job_complete_msid: 7296881000534
created: 2013-08-12 00:04:44
last_updated: 2013-08-12 00:04:45
last_polled: NULL
removed: NULL
uuid: db07bfb7-d2b8-4ae6-bd10-f0f64332d639
*************************** 15. row ***************************
id: 76
user_id: 2
account_id: 2
session_key: NULL
instance_type: NULL
instance_id: NULL
job_cmd:
org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
job_cmd_originator: NULL
job_cmd_info:
{"response":"json","id":"0b353b34-f2a4-41a0-ae88-1af19e6ca32d","sessionkey":"oLMqb83SuNXD6lzMxicb57XsmUk\u003d","cmdEventType":"VOLUME.ATTACH","ctxUserId":"2","virtualMachineId":"da617d9f-9d08-4067-9405-66c9875c6ae2","httpmethod":"GET","_":"1376246428222","ctxAccountId":"2","ctxStartEventId":"318"}
job_cmd_ver: 0
callback_type: 0
callback_address: NULL
job_status: 2
job_process_status: 0
job_result_code: 530
job_result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Unable
to find storage pool when create volumecs"}
job_init_msid: 7296881000534
job_complete_msid: 7296881000534
created: 2013-08-12 00:08:39
last_updated: 2013-08-12 00:08:40
last_polled: NULL
removed: NULL
uuid: 7758a32e-37d1-4c9a-ac3a-626d085cb218
15 rows in set (0.00 sec)
mysql> select * from disk_offering where id in (12,14)\G;
*************************** 1. row ***************************
id: 12
domain_id: NULL
name: rbd1
uuid: 3d58746c-6839-4f58-8ba2-4cfb8bfeea6b
display_text: ceph
disk_size: 0
type: Service
tags: RBD
recreatable: 0
use_local_storage: 0
unique_name: NULL
system_use: 0
customized: 1
removed: NULL
created: 2013-08-11 21:10:24
sort_key: 0
display_offering: 1
customized_iops: NULL
min_iops: NULL
max_iops: NULL
bytes_read_rate: NULL
bytes_write_rate: NULL
iops_read_rate: NULL
iops_write_rate: NULL
*************************** 2. row ***************************
id: 14
domain_id: NULL
name: csdata
uuid: cae9cf06-9709-48b8-8b6c-62bd0bdc53bc
display_text: csdata
disk_size: 1073741824
type: Disk
tags: cloudstack
recreatable: 0
use_local_storage: 0
unique_name: NULL
system_use: 0
customized: 0
removed: NULL
created: 2013-08-11 23:31:29
sort_key: 0
display_offering: 1
customized_iops: 1
min_iops: NULL
max_iops: NULL
bytes_read_rate: NULL
bytes_write_rate: NULL
iops_read_rate: NULL
iops_write_rate: NULL
2 rows in set (0.00 sec)
ERROR:
No query specified
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira