Re: RBD: create imaged with qemu

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

 



Your use of "sudo" for the rados CLI tool makes me wonder if perhaps
the "nstcc0" user cannot read "/etc/ceph/ceph.conf" or
"/etc/ceph/ceph.admin.keyring". If that's not the case, what version
of qemu-img are you using?

$ rpm -qa | grep qemu-img
qemu-img-2.11.2-4.fc28.x86_64
$ qemu-img create -f raw rbd:rbd/test 1G
Formatting 'rbd:rbd/test', fmt=raw size=1073741824

On Tue, Oct 30, 2018 at 11:56 AM Liu, Changcheng
<changcheng.liu@xxxxxxxxx> wrote:
>
> Hi all,
>
>      I follow below guide to create images with qemu-rbd: qemu-img create -f raw rbd:quick_rbd_test/own_image 5G;
>
>             http://docs.ceph.com/docs/master/rbd/qemu-rbd/
>
> However, it always shows “connect error”. Does anyone know how to resolve the problem?
>
>
>
> The info is below:
>
> nstcc0@nstcloudcc0:lst_deploy$ sudo rados lspools
>
> .rgw.root
>
> default.rgw.control
>
> default.rgw.meta
>
> default.rgw.log
>
> quick_rbd_test
>
>
>
> nstcc0@nstcloudcc0:lst_deploy$ qemu-img create -f raw rbd:quick_rbd_test/own_image 5G; dmesg | grep -v 'UFW' | tail -n 5
>
> Formatting 'rbd:quick_rbd_test/own_image', fmt=raw size=5368709120
>
> qemu-img: rbd:quick_rbd_test/own_image: error connecting
>
>
>
> [30696.520273] virbr0: port 1(virbr0-nic) entered blocking state
>
> [30696.520278] virbr0: port 1(virbr0-nic) entered listening state
>
> [30698.472362] virbr0: port 1(virbr0-nic) entered disabled state
>
> [30698.478503] device virbr0-nic left promiscuous mode
>
> [30698.478569] virbr0: port 1(virbr0-nic) entered disabled state
>
>
>
>
>
> nstcc0@nstcloudcc0:lst_deploy$ ifconfig
>
> eno1      Link encap:Ethernet  HWaddr 00:1e:67:94:65:ae
>
>           inet addr:10.239.48.91  Bcast:10.239.48.255  Mask:255.255.255.0
>
>           inet6 addr: fe80::651e:6989:e32c:b0b2/64 Scope:Link
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:1649029 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:870237 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:1492566309 (1.4 GB)  TX bytes:237759999 (237.7 MB)
>
>
>
> lo        Link encap:Local Loopback
>
>           inet addr:127.0.0.1  Mask:255.0.0.0
>
>           inet6 addr: ::1/128 Scope:Host
>
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>
>           RX packets:52119 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:52119 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:84885344 (84.8 MB)  TX bytes:84885344 (84.8 MB)
>
>
>
> virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
>
>           inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
>
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000
>
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
>
>
> B.R.
>
> Changcheng
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



-- 
Jason
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux