Ceph Object Gateway - не прослушивает порт 7480 - PullRequest
0 голосов
/ 27 ноября 2018

Я пробую Сефа.У меня есть четыре виртуальных машины Ubuntu 16.04, работающие в VirtualBox.Один я назвал 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

На этом этапе, если я пытаюсь перейти к 192.168.40.4:7480, который является адресом узла 1, я не получаю ответа.Кроме того, netstat -ant ничего не показывает прослушивания порта 7480 на узле 1.

Журнал показывает:

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 Object Gateway?

...