Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ceph-rgw | start rgw on ubuntu" failing on 14.04 #537

Closed
zmc opened this issue Feb 11, 2016 · 10 comments
Closed

"ceph-rgw | start rgw on ubuntu" failing on 14.04 #537

zmc opened this issue Feb 11, 2016 · 10 comments

Comments

@zmc
Copy link
Member

zmc commented Feb 11, 2016

Output excerpt:

TASK: [ceph-rgw | check if rgw is started] ************************************
ok: [vpm097.front.sepia.ceph.com] => {"changed": false, "cmd": "/etc/init.d/radosgw status", "failed": false, "failed_when_result": false, "msg": "[Errno 2] No such file or directory", "rc": 2}

TASK: [ceph-rgw | start rgw] **************************************************
skipping: [vpm097.front.sepia.ceph.com]

TASK: [ceph-rgw | activate rgw on ubuntu] *************************************
ok: [vpm097.front.sepia.ceph.com] => {"changed": false, "cmd": ["initctl", "emit", "radosgw", "cluster=ceph", "id=rgw.vpm097"], "delta": "0:00:00.004136", "end": "2016-02-11 21:19:41.155271", "rc": 0, "start": "2016-02-11 21:19:41.151135", "stderr": "", "stdout": "", "warnings": []}

TASK: [ceph-rgw | start rgw on ubuntu] ****************************************
failed: [vpm097.front.sepia.ceph.com] => {"failed": true}
msg: no service or tool found for: radosgw

I logged into the machine directly:

ubuntu@vpm097:~$ sudo initctl emit radosgw cluster=ceph id=rgw.vpm097
ubuntu@vpm097:~$ echo $?
0
ubuntu@vpm097:~$ initctl list | grep rgw
ubuntu@vpm097:~$ initctl list | grep rados
ubuntu@vpm097:~$ initctl list | grep vpm
ceph-mon (ceph/vpm097) start/running, process 8893
ceph-mds (ceph/vpm097) start/running, process 11591
@leseb
Copy link
Member

leseb commented Feb 11, 2016

Thanks for reporting @zmc, let look into this

@zmc
Copy link
Member Author

zmc commented Feb 11, 2016

Thanks @leseb! Let me know if I can help.

@leseb
Copy link
Member

leseb commented Feb 11, 2016

Weird, just deploy a rgw with vagrant and got the following:

root@ceph-rgw0:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty
root@ceph-rgw0:~# ps aux| grep radosgw
ceph      9117  0.3  4.3 1725028 10708 ?       Ssl  21:49   0:00 /usr/bin/radosgw --cluster=ceph --id rgw.ceph-rgw0 -f --setuser ceph --setgroup ceph
root      9360  0.0  0.3  10464   920 pts/0    S+   21:52   0:00 grep --color=auto radosgw

So it seems to be working for me

@zmc
Copy link
Member Author

zmc commented Feb 11, 2016

Hmm, looks like radosgw wasn't even installed:

ubuntu@vpm097:~$ ls /usr/bin/rados*
/usr/bin/rados
ubuntu@vpm097:~$ dpkg -l radosgw
dpkg-query: no packages found matching radosgw
ubuntu@vpm097:~$ apt-cache search radosgw$
radosgw - REST gateway for RADOS distributed object store
TASK: [ceph-common | install ceph] ********************************************
ok: [vpm097.front.sepia.ceph.com] => (item=ceph,ceph-common,ceph-fs-common,ceph-fuse,ceph-mds,libcephfs1) => {"changed": false, "item": "ceph,ceph-common,ceph-fs-common,ceph-fuse,ce
ph-mds,libcephfs1"}

TASK: [ceph-common | install rados gateway] ***********************************
skipping: [vpm097.front.sepia.ceph.com]

@leseb
Copy link
Member

leseb commented Feb 11, 2016

is it bare metal?

@zmc
Copy link
Member Author

zmc commented Feb 11, 2016

It's a KVM instance. Here's my inventory fwiw:

[mdss]
vpm097.front.sepia.ceph.com

[mons]
vpm097.front.sepia.ceph.com

[osds]
vpm097.front.sepia.ceph.com

Looks like rgw should have been ignored here!

@leseb
Copy link
Member

leseb commented Feb 11, 2016

Well you need a [rgws] section and a host to get it rgw :)

@zmc
Copy link
Member Author

zmc commented Feb 11, 2016

Seems like either we should skip rgw entirely if the group isn't present, or install it unconditionally. I think the former sounds more sane :)

@leseb
Copy link
Member

leseb commented Mar 2, 2016

@zmc can we close this?

@zmc
Copy link
Member Author

zmc commented Mar 2, 2016

@leseb I haven't seen it in a while, so yes I'll close it.

@zmc zmc closed this as completed Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants