Project

General

Profile

Bug #24425

create iscsi gateway stop with "The first gateway defined must be the local machine"

Added by Benjamin Lu almost 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[root@node0018-isci-gateway ~]# gwcli
/iscsi-target...-igw/gateways> ls
o- gateways ...................................................................................... [Up: 0/0, Portals: 0]
/iscsi-target...-igw/gateways> create ceph-gw-1 192.168.57.16 skipchecks=true
The first gateway defined must be the local machine
/iscsi-target...-igw/gateways> cd ..
/iscsi-target...-gw:iscsi-igw> cd ..
/iscsi-target> cd ..
/> ls
o- / ............................................................................................................. [...]
o- clusters ............................................................................................ [Clusters: 1] | o- ceph ................................................................................................ [HEALTH_OK] | o- pools .............................................................................................. [Pools: 1] | | o- rbd ................................................................. [(x3), Commit: 0b/82G (0%), Used: 292b] | o- topology .................................................................................... [OSDs: 9,MONs: 3]
o- disks .............................................................................................. [0b, Disks: 0]
o- iscsi-target ......................................................................................... [Targets: 1]
o- iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw ......................................................... [Gateways: 0]
o- gateways ................................................................................ [Up: 0/0, Portals: 0]
o- host-groups ...................................................................................... [Groups : 0]
o- hosts .............................................................................................. [Hosts: 0]
/> cd iscsi-target/iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw/gateways
/iscsi-target...-igw/gateways> create ceph-gw-1 192.168.57.16
The first gateway defined must be the local machine
/iscsi-target...-igw/gateways> create ceph-gw-1 192.168.57.16 skipchecks=true
The first gateway defined must be the local machine

History

#1 Updated by Benjamin Lu almost 6 years ago

Changed the "ceph-gw-1" to the localhostname "node0018" make it work!

/iscsi-target...-igw/gateways> create node0018 192.168.57.16
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
Failed : node0018 failed package validation checks - OS is unsupported
/iscsi-target...-igw/gateways> create node0018 192.168.57.16 skipchecks=true
OS version/package checks have been bypassed
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
ok

#2 Updated by Benjamin Lu almost 6 years ago

next to add 2nd gateway failed:

/iscsi-target...-igw/gateways> create node0019 192.168.57.17 skipchecks=true
OS version/package checks have been bypassed
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
Failed : Gateway creation failed, gateway(s) unavailable:192.168.57.17(UNKNOWN state)
/iscsi-target...-igw/gateways> ls
o- gateways ...................................................................................... [Up: 1/1, Portals: 1]
o- node0018 ..................................................................................... [192.168.57.16 (UP)]
/iscsi-target...-igw/gateways>

#3 Updated by Benjamin Lu almost 6 years ago

Add 2nd gateway on the host itself works!

#4 Updated by Patrick Donnelly over 5 years ago

  • Project changed from Ceph to rbd
  • Category deleted (build)
  • Target version changed from v13.2.0 to v14.0.0

#5 Updated by Jason Dillaman over 5 years ago

  • Status changed from New to Need More Info

@Benjamin Lu: have you properly configured your "trusted_ip_list" setting [1]? Your second error sounds like the 2nd gateway was denied access to ping the 1st gateway since it wasn't on the trusted list.

[1] https://github.com/ceph/ceph-iscsi-config/blob/e016c6f0777bb59f00db13c88ba55e15ec9ac57e/iscsi-gateway.cfg_sample#L27

#6 Updated by Jason Dillaman almost 5 years ago

  • Status changed from Need More Info to Closed

Closing due to a lack of activity

Also available in: Atom PDF