Project

General

Profile

Actions

Bug #61885

closed

Using [] around an ipv6 address while adding a host fails

Added by Teoman ONAY 10 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
orchestrator
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
reef, quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

TASK [manage nodes with cephadm - ipv6] ****************************************                                    
task path: /home/xxx/sources/test/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml:368                                          
Thursday 29 June 2023  16:07:52 +0200 (0:00:00.577)       0:02:26.353 *********                                               
fatal: [iscsi-gw0 -> mon0]: FAILED! => changed=false                                                                                                                                                                                                                                                                                                                                                                                        
  cmd:                                                                                                                                                                       
  - podman                                                                                                        
  - run                                                                                                                   
  - --rm                                                                                                                                                                                                                                                                                                                                                                                                                                    
  - --net=host                                                                                                                                                               
  - -v                                                                                                                                                
  - /etc/ceph:/etc/ceph:z                                                                                                                                                                                                                                                                                                                                                                                                                   
  - -v                                                                                                                                                                       
  - /var/lib/ceph:/var/lib/ceph:ro                                                                                        
  - -v                                                                                                             
  - /var/run/ceph:/var/run/ceph:z                                                                                                                                                                                                                                                                                                                                                                                                          
  - --entrypoint=ceph                                                                            
  - quay.io/ceph/daemon-base:latest-main                                                                                                                                                                                                                                                                                                                                                                                                    
  - --cluster                                                                                                                                                                
  - ceph                                                                                                  
  - orch                                                                                           
  - host                                                                                                                                                                                                                                                                                                                                                                                                                                    
  - add                                                                                                                                                                      
  - iscsi-gw0                                                                                                             
  - '[fdec:f1fb:29cd:6940:5054:ff:fe6a:3309]'                                                                                                                                                                                                                                                                                                                                                                                               
  - iscsigws                                                                                                                                                                 
  delta: '0:00:06.080698'                                                                       
  end: '2023-06-29 14:08:04.956523'
  msg: non-zero return code
  rc: 22
  start: '2023-06-29 14:07:58.875825'
  stderr: |-
    Error EINVAL: Cannot resolve ip for host [fdec:f1fb:29cd:6940:5054:ff:fe6a:3309]: [Errno -2] Name or service not known
    You may need to supply an address for [fdec:f1fb:29cd:6940:5054:ff:fe6a:3309]

    Please make sure that the host is reachable and accepts connections using the cephadm SSH key
    To add the cephadm SSH key to the host:
    > ceph cephadm get-pub-key > ~/ceph.pub
    > ssh-copy-id -f -i ~/ceph.pub root@[fdec:f1fb:29cd:6940:5054:ff:fe6a:3309]

    To check that the host is reachable open a new shell with the --no-hosts flag:
    > cephadm shell --no-hosts

    Then run the following:
    > ceph cephadm get-ssh-config > ssh_config
    > ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
    > chmod 0600 ~/cephadm_private_key
    > ssh -F ssh_config -i ~/cephadm_private_key root@[fdec:f1fb:29cd:6940:5054:ff:fe6a:3309]
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>


Related issues 3 (0 open3 closed)

Copied to Orchestrator - Backport #63114: reef: Using [] around an ipv6 address while adding a host failsResolvedAdam KingActions
Copied to Orchestrator - Backport #63115: pacific: Using [] around an ipv6 address while adding a host failsResolvedAdam KingActions
Copied to Orchestrator - Backport #63116: quincy: Using [] around an ipv6 address while adding a host failsResolvedAdam KingActions
Actions #1

Updated by Teoman ONAY 10 months ago

  • Category changed from cephadm to orchestrator
Actions #2

Updated by Teoman ONAY 10 months ago

  • Pull request ID set to 52296
Actions #3

Updated by Teoman ONAY 10 months ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Adam King 9 months ago

  • Backport set to reef, quincy, pacific
Actions #5

Updated by Adam King 7 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Backport Bot 7 months ago

  • Copied to Backport #63114: reef: Using [] around an ipv6 address while adding a host fails added
Actions #7

Updated by Backport Bot 7 months ago

  • Copied to Backport #63115: pacific: Using [] around an ipv6 address while adding a host fails added
Actions #8

Updated by Backport Bot 7 months ago

  • Copied to Backport #63116: quincy: Using [] around an ipv6 address while adding a host fails added
Actions #9

Updated by Backport Bot 7 months ago

  • Tags set to backport_processed
Actions #10

Updated by Adam King about 1 month ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF