Bug #53652
cephadm "Verifying IP <ip> port 3300" ... -> "OSError: [Errno 99] Cannot assign requested address"
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:
0%
Source:
Tags:
ux low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
We have to get better at returning better error messages:
ubuntu@admin:~$ sudo cephadm --docker --image "admin:5000/ceph/ceph:v16" bootstrap --skip-monitoring-stack --mon-ip 192.168.122.51 Verifying podman|docker is present... Verifying lvm2 is present... Verifying time synchronization is in place... Unit chrony.service is enabled and running Repeating the final host check... systemctl is present lvcreate is present Unit chrony.service is enabled and running Host looks OK Cluster fsid: fsid Verifying IP <ip> port 3300 ... Traceback (most recent call last): File "/usr/sbin/cephadm", line 6242, in <module> r = args.func() File "/usr/sbin/cephadm", line 1451, in _default_image return func() File "/usr/sbin/cephadm", line 2923, in command_bootstrap check_ip_port(args.mon_ip, 3300) File "/usr/sbin/cephadm", line 771, in check_ip_port attempt_bind(s, ip, port) File "/usr/sbin/cephadm", line 731, in attempt_bind raise e File "/usr/sbin/cephadm", line 724, in attempt_bind s.bind((address, port)) OSError: [Errno 99] Cannot assign requested address
- This is not helpful and users need better guidance: E.g. a better error message with more details
- Why port 3000?
- Also, we shouldn't print a Traceback here.
Related issues
History
#1 Updated by Sebastian Wagner over 2 years ago
- Description updated (diff)
#2 Updated by Sebastian Wagner over 2 years ago
- Related to Bug #47905: cephadm: cephadm bootstrap is missing structured output. (was: logging to stderr) added
#3 Updated by Sebastian Wagner about 2 years ago
- Description updated (diff)
#4 Updated by Redouane Kachach Elhichou about 2 years ago
This issue could be closed. The code is fixed in the latest ceph development version and the error is reported correctly (when forcing an invalid mon IP):
cephadm ['bootstrap', '--mon-ip', '192.168.122.51', '--initial-dashboard-password', 'password', '--allow-fqdn-hostname', '--dashboard-password-noupdate'] 2022-01-24 11:48:59,910 7f5c47e0f740 DEBUG /usr/bin/podman: 3.4.2 2022-01-24 11:48:59,999 7f5c47e0f740 WARNING ESC[93mThis is a development version of cephadm.ESC[0m 2022-01-24 11:49:00,002 7f5c47e0f740 WARNING ESC[93mFor information regarding the latest stable release:ESC[0m 2022-01-24 11:49:00,007 7f5c47e0f740 WARNING ESC[93m https://docs.ceph.com/docs/pacific/cephadm/installESC[0m 2022-01-24 11:49:00,008 7f5c47e0f740 INFO Verifying podman|docker is present... 2022-01-24 11:49:00,142 7f5c47e0f740 DEBUG /usr/bin/podman: 3.4.2 2022-01-24 11:49:00,232 7f5c47e0f740 INFO Verifying lvm2 is present... 2022-01-24 11:49:00,232 7f5c47e0f740 INFO Verifying time synchronization is in place... 2022-01-24 11:49:00,249 7f5c47e0f740 DEBUG systemctl: Failed to get unit file state for chrony.service: No such file or directory 2022-01-24 11:49:00,266 7f5c47e0f740 DEBUG systemctl: inactive 2022-01-24 11:49:00,283 7f5c47e0f740 DEBUG systemctl: enabled 2022-01-24 11:49:00,299 7f5c47e0f740 DEBUG systemctl: active 2022-01-24 11:49:00,301 7f5c47e0f740 INFO Unit chronyd.service is enabled and running 2022-01-24 11:49:00,301 7f5c47e0f740 INFO Repeating the final host check... 2022-01-24 11:49:00,383 7f5c47e0f740 DEBUG /usr/bin/podman: 3.4.2 2022-01-24 11:49:00,473 7f5c47e0f740 INFO podman (/usr/bin/podman) version 3.4.2 is present 2022-01-24 11:49:00,473 7f5c47e0f740 INFO systemctl is present 2022-01-24 11:49:00,473 7f5c47e0f740 INFO lvcreate is present 2022-01-24 11:49:00,489 7f5c47e0f740 DEBUG systemctl: Failed to get unit file state for chrony.service: No such file or directory 2022-01-24 11:49:00,507 7f5c47e0f740 DEBUG systemctl: inactive 2022-01-24 11:49:00,524 7f5c47e0f740 DEBUG systemctl: enabled 2022-01-24 11:49:00,541 7f5c47e0f740 DEBUG systemctl: active 2022-01-24 11:49:00,544 7f5c47e0f740 INFO Unit chronyd.service is enabled and running 2022-01-24 11:49:00,544 7f5c47e0f740 INFO Host looks OK 2022-01-24 11:49:00,545 7f5c47e0f740 INFO Cluster fsid: 9ee363bc-7d0b-11ec-90c6-525400b871df 2022-01-24 11:49:00,546 7f5c47e0f740 DEBUG Acquiring lock 140034293061040 on /run/cephadm/9ee363bc-7d0b-11ec-90c6-525400b871df.lock 2022-01-24 11:49:00,546 7f5c47e0f740 DEBUG Lock 140034293061040 acquired on /run/cephadm/9ee363bc-7d0b-11ec-90c6-525400b871df.lock 2022-01-24 11:49:00,546 7f5c47e0f740 INFO Verifying IP 192.168.122.51 port 3300 ... 2022-01-24 11:49:00,547 7f5c47e0f740 ERROR ERROR: [Errno 99] Cannot assign requested address
#5 Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from New to Closed
Closing as the issue doesn't occur in the latest ceph version (v16.2)
[root@ceph-node-00 ~]# cephadm --image quay.ceph.io/ceph-ci/ceph:v16.2 bootstrap --mon-ip 192.168.122.51 --initial-dashboard-password password --allow-fqdn-hostname --dashboard-password-noupdate 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... podman (/usr/bin/podman) version 3.4.2 is present systemctl is present lvcreate is present Unit chronyd.service is enabled and running Host looks OK Cluster fsid: e7587c04-7d15-11ec-b095-5254003df7d3 Verifying IP 192.168.122.51 port 3300 ... ERROR: [Errno 99] Cannot assign requested address