Ceph对象网关-不监听端口7480

时间:2018-11-27 01:26:08

标签: ceph

我正在尝试Ceph。我有四个在VirtualBox中运行的Ubuntu 16.04虚拟机。我将其中一个命名为admin1,其他命名为node1,node2和node3。在admin1上,我运行了以下命令:

cd ~
mkdir my-cluster
cd my-cluster

# Start deploying a new cluster, and write a CLUSTER.conf and keyring
# for it. Specify the initial monitor hostname.
ceph-deploy new --public-network 192.168.40.0/24 node1

# Install Ceph packages on remote hosts.
ceph-deploy install node1 node2 node3

# Ceph MON Daemon management. create-initial will deploy for monitors
# defined in "mon initial members", wait until they form quorum and then
# gather keys, reporting the monitor status along the process. If monitors
# don't form quorum the command will eventually time out.
ceph-deploy mon create-initial

# Push configuration and client.admin key to a remote host.
ceph-deploy admin node1 node2 node3

# Manage OSDs by preparing a data disk on remote host.
# Create new Ceph OSD daemon by preparing and activating disk.
ceph-deploy osd create node1:/dev/sdc
ceph-deploy osd create node2:/dev/sdc
ceph-deploy osd create node3:/dev/sdc

# Add monitors for high availability
ceph-deploy mon add node2
ceph-deploy mon add node3

# Install Ceph Object Gateway
ceph-deploy install --rgw node1

# Create an RGW instance
# Access at http://192.168.40.4:7480
ceph-deploy rgw create node1

这给了我消息:

[node1][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.node1 osd allow rwx mon allow rw -o /var/lib/ceph/radosgw/ceph-rgw.node1/keyring
[node1][INFO  ] Running command: sudo systemctl enable ceph-radosgw@rgw.node1
[node1][WARNIN] Created symlink from /etc/systemd/system/ceph-radosgw.target.wants/ceph-radosgw@rgw.node1.service to /lib/systemd/system/ceph-radosgw@.service.
[node1][INFO  ] Running command: sudo systemctl start ceph-radosgw@rgw.node1
[node1][INFO  ] Running command: sudo systemctl enable ceph.target
[ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host node1 and default port 7480

在这一点上,如果我尝试转到node1的地址192.168.40.4:74​​80,则不会得到任何响应。另外,netstat -ant在node1上的端口7480上没有监听任何内容。

日志显示:

2018-11-27 02:49:16.264165 7f686892aa00  0 ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe), process radosgw, pid 5378
2018-11-27 02:54:16.264329 7f684c70a700 -1 Initialization timeout, failed to initialize
2018-11-27 02:54:16.517489 7fd727a09a00  0 deferred set uid:gid to 64045:64045 (ceph:ceph)
2018-11-27 02:54:16.517536 7fd727a09a00  0 ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe), process radosgw, pid 5425
2018-11-27 02:59:16.524374 7fd70b7e9700 -1 Initialization timeout, failed to initialize
2018-11-27 02:59:16.787623 7efeb71b6a00  0 deferred set uid:gid to 64045:64045 (ceph:ceph)
2018-11-27 02:59:16.787676 7efeb71b6a00  0 ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe), process radosgw, pid 5534

我想念什么吗?如何创建Ceph对象网关?

0 个答案:

没有答案