[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] XenServer + libvirt + Ceph


  • To: Jonathan Gowar <jon@xxxxxxxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Brian Menges <bmenges@xxxxxxxxxx>
  • Date: Sat, 26 Oct 2013 17:35:41 +0000
  • Accept-language: en-US
  • Delivery-date: Sat, 26 Oct 2013 17:36:03 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: AQHOqKm4a2oAIVyr70+MEB1Q2Dcf05m1rEuAgAAiHYCAAPrmgIBQO0MAgACNLGk=
  • Thread-topic: [Xen-API] XenServer + libvirt + Ceph

Well; I know what it means; however not why.

SR - Storage Repository
PBD - Physical Block Devices

So basically it says there's no block device in the storage repository to 
attach to the VM... so probably someplace where CEPH is to create the RBD 
device and hand that back as the block device to XAPI isn't happening.

Once you're up and running, it would be excellent to see some consolidated 
instructions! I tried this a while back and got lost and then distracted (real 
work).


---------------------------------------------------------
Brian S. Menges
Principal Engineer, DevOps
2 Harrison, Suite 200|San Francisco, CA|94105
D 415.869.7000|F 415.869.7001
________________________________________
From: xen-api-bounces@xxxxxxxxxxxxx [xen-api-bounces@xxxxxxxxxxxxx] on behalf 
of Jonathan Gowar [jon@xxxxxxxxxxxxxxxx]
Sent: Friday, October 25, 2013 19:10
To: xen-api@xxxxxxxxxxxxx
Subject: Re: [Xen-API] XenServer + libvirt + Ceph

On Thu, 2013-09-05 at 01:55 +0100, Jonathan Gowar wrote:
> I've gotten someway further, with the help of this thread
> http://comments.gmane.org/gmane.comp.file-systems.ceph.user/2416
>
> But, the pool will not start.
>
> virsh # pool-dumpxml pp-ceph-1
> <pool type='rbd'>
>   <name>pp-ceph-1</name>
>   <uuid>be01cdbb-1962-024d-97f2-deec815f3848</uuid>
>   <capacity unit='bytes'>5991852244992</capacity>
>   <allocation unit='bytes'>2516807934</allocation>
>   <available unit='bytes'>5986581966848</available>
>   <source>
>     <host name='10.11.4.52' port='6789'/>
>     <name>rbd</name>
>     <auth username='libvirt' type='ceph'>
>       <secret uuid='b6d26377-a700-bd77-9b1e-c9226f35d1f5'/>
>     </auth>
>   </source>
> </pool>
>
> virsh # secret-list
> UUID                                 Usage
> -----------------------------------------------------------
> b6d26377-a700-bd77-9b1e-c9226f35d1f5 Unused
>
> virsh # secret-dumpxml b6d26377-a700-bd77-9b1e-c9226f35d1f5
> <secret ephemeral='no' private='no'>
>   <uuid>b6d26377-a700-bd77-9b1e-c9226f35d1f5</uuid>
>   <usage type='ceph'>
>     <name>client.libvirt</name>
>   </usage>
> </secret>
>
> virsh # pool-info pp-ceph-1
> Name:           pp-ceph-1
> UUID:           be01cdbb-1962-024d-97f2-deec815f3848
> State:          inactive
> Persistent:     yes
> Autostart:      no
>
> virsh # pool-start pp-ceph-1
> error: Failed to start pool pp-ceph-1
> error: An error occurred, but the cause is unknown

Further still!

[root@pp-xen-dev ~]# TMPLUUID=$(xe template-list | grep -B1
'name-label.*Red Hat.* 6.*64-bit' | awk -F: '/uuid/{print $2}'| tr -d "
")
[root@pp-xen-dev ~]# VMUUID=$(xe vm-install new-name-label="CentOS6"
template=${TMPLUUID})
The SR has no attached PBDs
sr: aa7f4079-de6e-ffa8-ed94-d710885ca3c6 (ceph)
[root@pp-xen-dev ~]# virsh pool-info Ceph
Name:           Ceph
UUID:           b8037dda-9812-7ff3-0b39-7f2ddd450d71
State:          running
Persistent:     no
Autostart:      no
Capacity:       7.72 TiB
Allocation:     0.00
Available:      7.72 TiB

[root@pp-xen-dev ~]# xe sr-list
uuid=aa7f4079-de6e-ffa8-ed94-d710885ca3c6
uuid ( RO)                : aa7f4079-de6e-ffa8-ed94-d710885ca3c6
          name-label ( RW): ceph
    name-description ( RW):
                host ( RO): pp-xen-dev
                type ( RO): libvirt
        content-type ( RO):

So close!  Any help, please, I don't know what that error means; "The SR
has no attached PBDs".

Regards,
Jon


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

________________________________

The information contained in this message, and any attachments, may contain 
confidential and legally privileged material. It is solely for the use of the 
person or entity to which it is addressed. Any review, retransmission, 
dissemination, or action taken in reliance upon this information by persons or 
entities other than the intended recipient is prohibited. If you receive this 
in error, please contact the sender and delete the material from any computer.

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.