Connect to Ceph Cluster from other network

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

 



Hello Ceph community,

I am currently facing an issue connecting to my Ceph cluster from an
external system and would appreciate your guidance.

Here are some details about my setup:

- Ceph Public Network: 172.0.0.1/24
- Ceph Private Network: 172.10.0.1/24
- Monitor (MON) Nodes:
  - mon1: 172.0.3.1
  - mon2: 172.0.3.2
  - mon3: 172.0.3.3

My network node has an internet IP (1.1.1.1), and I'm using HAProxy with
the following configuration:

```bash
backend admin_mons_v2
    mode tcp
    server mon1  172.0.3.1:3300 check
    server mon2  172.0.3.2:3300 check
    server mon3  172.0.3.3:3300 check

backend admin_mons_v1
    mode tcp
    server mon1  172.0.3.1:6789 check
    server mon2  172.0.3.2:6789 check
    server mon3  172.0.3.3:6789 check

frontend mon_v1
    bind *:6789
    mode tcp
    use_backend admin_mons_v1

frontend mon_v2
    bind *:3300
    mode tcp
    use_backend admin_mons_v2
```

I've created a new authentication for my local system (IP: 2.2.2.2) using
the following command:

```bash
ceph auth get-or-create client.gateway mon 'allow * network 0.0.0.0/0'
```

And I've created a configuration file on my local system as follows:

```ini
[global]
fsid = MY_CLUSTER_FSID
mon host = [v1:1.1.1.1:3300,v2:1.1.1.1:6789]
```

However, when attempting to connect to the Ceph cluster using the `ceph` or
`radosgw-admin` commands, I encounter a connection timeout issue:

```bash
2024-03-10T20:00:10.551+0000 ffff7a214d38  0 monclient(hunting):
authenticate timed out after 300
```

Interestingly, I can connect to ports 3300 and 6789 using `telnet` from my
local system:

```bash
telnet 1.1.1.1 3300
Trying 1.1.1.1...
Connected to 1.1.1.1.
Escape character is '^]'.
ceph v2

telnet 1.1.1.1 6789
Trying 1.1.1.1...
Connected to 1.1.1.1.
Escape character is '^]'.
ceph v027??
```

I would appreciate any insights or guidance on how to successfully connect
to my Ceph cluster from my local system.

Thank you for your time and assistance!

Best regards,
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[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