Nova failed to mount a RBD volume without extra ceph.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Josh Durgin | ||
OpenStack Compute (nova) |
Fix Released
|
High
|
Josh Durgin |
Bug Description
When mounting a RBD volume to an instance, nova-volume/cinder doesn't pass Ceph monitor(MON) addresses to libvirt.Whithout the MON address, libvirt failed to tal with MON and then cannot plug in the disk into volume.
This bug also affect cinder.
Here is the error log from nova-compute:
2012-11-12 12:12:36 ERROR nova.compute.
3245d0ac58041f1
f at /dev/vdb
2012-11-12 12:12:36 TRACE nova.compute.
2012-11-12 12:12:36 TRACE nova.compute.
ages/nova/
2012-11-12 12:12:36 TRACE nova.compute.
2012-11-12 12:12:36 TRACE nova.compute.
ages/nova/
2012-11-12 12:12:36 TRACE nova.compute.
2012-11-12 12:12:36 TRACE nova.compute.
b.py", line 24, in __exit__
2012-11-12 12:12:36 TRACE nova.compute.
2012-11-12 12:12:36 TRACE nova.compute.
ages/nova/
2012-11-12 12:12:36 TRACE nova.compute.
2012-11-12 12:12:36 TRACE nova.compute.
ages/nova/
2012-11-12 12:12:36 TRACE nova.compute.
ice=mount_device)
2012-11-12 12:12:36 TRACE nova.compute.
db) is busy.
When looking into libvirt's log,the following error presents:
unable to find any monitors in conf. please specify monitors via -m monaddr or -c ceph.conf
Here is the XML generated by libvirt,
<disk type="network" device="disk">
<driver name="qemu" type="raw" cache="none"/>
<source protocol="rbd" name="nova/
<target bus="virtio" dev="vdb"/>
<serial>
</disk>
But from the link (http://
<pool type="rbd">
<source>
<host name='1.2.3.4' port='6789'/>
<host name='my.
<host name='third.
<auth username='admin' type='ceph'>
</auth>
</source>
</pool>
description: | updated |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cinder: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in cinder: | |
assignee: | nobody → Josh Durgin (jdurgin) |
Changed in nova: | |
assignee: | nobody → Josh Durgin (jdurgin) |
status: | Triaged → In Progress |
Changed in cinder: | |
status: | Triaged → In Progress |
Changed in cinder: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
Changed in nova: | |
milestone: | havana-2 → 2013.2 |
This is how it's designed to work right now. See my response to the question https:/ /answers. launchpad. net/nova/ +question/ 201366.
As I noted there, this should be changed in the future, but that's more of a cleanup/feature than a bug. ceph.com/ docs/master/ rbd/rbd- openstack/ #configure- openstack- ceph-clients includes adding a ceph.conf with
Note that http://
monitor addresses to the compute host.