linux:ceph:troubleshooting:error_deploying_gateway
Table of Contents
[TROUBLESHOOT] Error on ceph-deploy rgw create (radosgw)
Documentation | |
---|---|
Name: | [TROUBLESHOOT] Error deploying radosgw |
Description: | how to solve this “issue” |
Modification date : | 07/06/2019 |
Owner: | dodger |
Notify changes to: | Owner |
Tags: | ceph, object storage |
Scalate to: | Thefuckingbofh |
The Error
ceph@bvmld-osadm-101 ~/ceph-deploy $ ceph-deploy rgw create ${THEHOSTNAME} [ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.25): /bin/ceph-deploy rgw create bvmld-osgw-101 [ceph_deploy.rgw][DEBUG ] Deploying rgw, cluster ceph hosts bvmld-osgw-101:rgw.bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] connection detected need for sudo [bvmld-osgw-101][DEBUG ] connected to host: bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] detect platform information from remote host [bvmld-osgw-101][DEBUG ] detect machine type [ceph_deploy.rgw][INFO ] Distro info: CentOS Linux 7.5.1804 Core [ceph_deploy.rgw][DEBUG ] remote host will use sysvinit [ceph_deploy.rgw][DEBUG ] deploying rgw bootstrap to bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf [bvmld-osgw-101][DEBUG ] create path recursively if it doesn't exist [bvmld-osgw-101][INFO ] Running command: sudo ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.bvmld-osgw-101 osd allow rwx mon allow rw -o /var/lib/ceph/radosgw/ceph-rgw.bvmld-osgw-101/keyring [bvmld-osgw-101][INFO ] Running command: sudo service ceph-radosgw start [bvmld-osgw-101][WARNIN] Redirecting to /bin/systemctl start ceph-radosgw.service [bvmld-osgw-101][WARNIN] Failed to start ceph-radosgw.service: Unit not found. [bvmld-osgw-101][ERROR ] RuntimeError: command returned non-zero exit status: 5 [ceph_deploy.rgw][ERROR ] Failed to execute command: service ceph-radosgw start [ceph_deploy][ERROR ] GenericError: Failed to create 1 RGWs
Troubleshoot
Seems that installation command:
ceph-deploy install --rgw ${THEHOSTNAME} --repo-url https://download.ceph.com/rpm-hammer/el7/
Does not install ceph-radosgw
package…
Solution
yum install ceph-radosgw
Then it works:
ceph@bvmld-osadm-101 ~/ceph-deploy :( $ ceph-deploy rgw create ${THEHOSTNAME} [ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf [ceph_deploy.cli][INFO ] Invoked (1.5.25): /bin/ceph-deploy rgw create bvmld-osgw-101 [ceph_deploy.rgw][DEBUG ] Deploying rgw, cluster ceph hosts bvmld-osgw-101:rgw.bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] connection detected need for sudo [bvmld-osgw-101][DEBUG ] connected to host: bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] detect platform information from remote host [bvmld-osgw-101][DEBUG ] detect machine type [ceph_deploy.rgw][INFO ] Distro info: CentOS Linux 7.5.1804 Core [ceph_deploy.rgw][DEBUG ] remote host will use sysvinit [ceph_deploy.rgw][DEBUG ] deploying rgw bootstrap to bvmld-osgw-101 [bvmld-osgw-101][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf [bvmld-osgw-101][DEBUG ] create path recursively if it doesn't exist [bvmld-osgw-101][INFO ] Running command: sudo ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.bvmld-osgw-101 osd allow rwx mon allow rw -o /var/lib/ceph/radosgw/ceph-rgw.bvmld-osgw-101/keyring [bvmld-osgw-101][INFO ] Running command: sudo service ceph-radosgw start [bvmld-osgw-101][DEBUG ] Reloading systemd: [ OK ] [bvmld-osgw-101][DEBUG ] Starting ceph-radosgw (via systemctl): [ OK ] [bvmld-osgw-101][INFO ] Running command: sudo systemctl enable ceph-radosgw [bvmld-osgw-101][WARNIN] ceph-radosgw.service is not a native service, redirecting to /sbin/chkconfig. [bvmld-osgw-101][WARNIN] Executing /sbin/chkconfig ceph-radosgw on
linux/ceph/troubleshooting/error_deploying_gateway.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1