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

CEPHADM Failed to bootstrap because of python3 #322

Open
Anddiy opened this issue Oct 30, 2024 · 0 comments
Open

CEPHADM Failed to bootstrap because of python3 #322

Anddiy opened this issue Oct 30, 2024 · 0 comments

Comments

@Anddiy
Copy link

Anddiy commented Oct 30, 2024

Hello!

Im trying to install ceph storage on my RHEL but im having some problems with python3.

Theres the main scenario:

I have my machine with chrony, python3 and all dependecies installed succesfully:

Python 3.8.17 (default, Aug 10 2023, 12:50:17)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Python IS located on /usr/bin/python3:

GODMODE root@sneappapmprd01:/usr/bin# which python3
/usr/bin/python3

But when i try to bootstrap my cluster this happens:

GODMODE root@sneappapmprd01:/usr/bin# cephadm bootstrap --mon-ip 10.98.4.213 --allow-fqdn-hostname
Verifying podman|docker is present...
Verifying lvm2 is present...
Verifying time synchronization is in place...
Unit chronyd.service is enabled and running
Repeating the final host check...
docker (docker) is present
systemctl is present
lvcreate is present
Unit chronyd.service is enabled and running
Host looks OK
Cluster fsid: d007c10c-9709-11ef-a800-005056b39391
Verifying IP 10.98.4.213 port 3300 ...
Verifying IP 10.98.4.213 port 6789 ...
Mon IP `10.98.4.213` is in CIDR network `10.98.4.0/24`
Mon IP `10.98.4.213` is in CIDR network `10.98.4.0/24`
Internal network (--cluster-network) has not been provided, OSD replication will default to the public_network
Pulling container image quay.io/ceph/ceph:v17...
Ceph version: ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)
Extracting ceph user uid/gid from container image...
Creating initial keys...
Creating initial monmap...
Creating mon...
Waiting for mon to start...
Waiting for mon...
mon is available
Assimilating anything we can from ceph.conf...
Generating new minimal ceph.conf...
Restarting the monitor...
Setting mon public_network to 10.98.4.0/24
Wrote config to /etc/ceph/ceph.conf
Wrote keyring to /etc/ceph/ceph.client.admin.keyring
Creating mgr...
Verifying port 9283 ...
Waiting for mgr to start...
Waiting for mgr...
mgr not available, waiting (1/15)...
mgr not available, waiting (2/15)...
mgr not available, waiting (3/15)...
mgr not available, waiting (4/15)...
mgr is available
Enabling cephadm module...
Waiting for the mgr to restart...
Waiting for mgr epoch 5...
mgr epoch 5 is available
Setting orchestrator backend to cephadm...
Generating ssh key...
Wrote public SSH key to /etc/ceph/ceph.pub
Adding key to root@localhost authorized_keys...
Adding host sneappapmprd01...
Non-zero exit code 22 from docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/ceph/ceph:v17 -e NODE_NAME=sneappapmprd01 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/d007c10c-9709-11ef-a800-005056b39391:/var/log/ceph:z -v /tmp/ceph-tmp1shukczt:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpg37em89f:/etc/ceph/ceph.conf:z quay.io/ceph/ceph:v17 orch host add sneappapmprd01 10.98.4.213
/usr/bin/ceph: stderr Error EINVAL: check-host failed:
/usr/bin/ceph: stderr bash: line 22:
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr Data e hora atual: 2024-10-30 18:56:59
/usr/bin/ceph: stderr Status de sincroniza\xe7\xe3o NTP: SINCRONIZADO
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr Tr\xeas \xfaltimos logins:
/usr/bin/ceph: stderr appuser  pts/0        10.192.12.82     Wed Oct 30 16:03   still logged in
/usr/bin/ceph: stderr root     pts/0        10.221.113.127   Wed Oct 30 14:24 - 14:27  (00:02)
/usr/bin/ceph: stderr root     pts/0        10.221.113.127   Wed Oct 30 14:17 - 14:18  (00:01)
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr wtmp begins Mon Jul  3 11:34:54 2023
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr Uso de mem\xf3ria (em GB):
/usr/bin/ceph: stderr               total        used        free      shared  buff/cache   available
/usr/bin/ceph: stderr Mem:             23           1          16           0           5          21
/usr/bin/ceph: stderr Swap:            15           0          15
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr Sistema de arquivos com mais de 90% de uso:
/usr/bin/ceph: stderr Nenhum sistema de arquivos com mais de 90% de uso.
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr
/usr/bin/ceph: stderr /usr/bin/python3: No such file or directory
ERROR: Failed to add host <sneappapmprd01>: Failed command: docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/ceph/ceph:v17 -e NODE_NAME=sneappapmprd01 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/d007c10c-9709-11ef-a800-005056b39391:/var/log/ceph:z -v /tmp/ceph-tmp1shukczt:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpg37em89f:/etc/ceph/ceph.conf:z quay.io/ceph/ceph:v17 orch host add sneappapmprd01 10.98.4.213

As you can see, the bootstrap commands is saying that python3 is not on the folder, but it its as a show before, what is happening here?

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

1 participant