ceph-iscsi-cli
ceph-iscsi-cli copied to clipboard
" KeyError: 'targets' " when adding second gateway on ceph-iscsi on ubuntu - BUG
Hi, I have installed ceph-iscsi on ubuntu 20 manully (Because I couldn't install via ceph-ansible, I have os compatibility error) But when I want to add second gateway it will show me error:
OS: Ubuntu 20 LTS ceph version : octopus I install cluster with ceph-ansible but I install ceph-iscsi manually via following link: https://docs.ceph.com/en/latest/rbd/iscsi-target-cli/ (instead of 'yum install ceph-iscsi' I commit 'apt install ceph-iscsi') gwcli - 2.7
/iscsi-target...-igw/gateways> create ceph-gw-2 192.168.200.30
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
KeyError: 'targets'
and it will jump out of gwcli! this is my gwcli log:
root@dev12:~# cat gwcli.log
2020-11-23 13:15:07,655 DEBUG [ceph.py:32:__init__()] Adding ceph cluster 'ceph' to the UI
2020-11-23 13:15:08,339 DEBUG [ceph.py:241:populate()] Fetching ceph osd information
2020-11-23 13:15:08,383 DEBUG [ceph.py:150:update_state()] Querying ceph for state information
2020-11-23 13:15:08,438 DEBUG [storage.py:105:refresh()] Refreshing disk information from the config object
2020-11-23 13:15:08,439 DEBUG [storage.py:108:refresh()] - Scanning will use 8 scan threads
2020-11-23 13:15:08,497 DEBUG [storage.py:135:refresh()] - rbd image scan complete: 0s
2020-11-23 13:15:08,497 DEBUG [gateway.py:378:refresh()] Refreshing gateway & client information
2020-11-23 13:15:08,646 DEBUG [gateway.py:934:refresh()] - checking iSCSI/API ports on dev12
2020-11-23 13:15:08,669 DEBUG [ceph.py:150:update_state()] Querying ceph for state information
2020-11-23 13:15:08,713 DEBUG [ceph.py:260:refresh()] Gathering pool stats for cluster 'ceph'
2020-11-23 13:15:26,268 DEBUG [gateway.py:793:ui_command_create()] CMD: ../gateways/ create ceph-gw-52 ['192.168.200.52'] nosync=False skipchecks=true
2020-11-23 13:15:26,282 WARNING [gateway.py:834:ui_command_create()] OS version/package checks have been bypassed
2020-11-23 13:15:26,282 INFO [gateway.py:836:ui_command_create()] Adding gateway, sync'ing 0 disk(s) and 0 client(s)
2020-11-23 13:15:26,738 DEBUG [gateway.py:854:ui_command_create()] Gateway creation successful
2020-11-23 13:15:26,738 DEBUG [gateway.py:855:ui_command_create()] Adding gw to UI
root@dev11:~# gwcli export copy
{
"created": "2020/11/21 10:43:03",
"discovery_auth": {
"mutual_password": "",
"mutual_password_encryption_enabled": false,
"mutual_username": "",
"password": "",
"password_encryption_enabled": false,
"username": ""
},
"disks": {},
"epoch": 2,
"gateways": {
"dev11": {
"active_luns": 0,
"created": "2020/11/21 11:25:23",
"updated": "2020/11/21 11:25:23"
}
},
"targets": {
"iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw": {
"acl_enabled": true,
"auth": {
"mutual_password": "",
"mutual_password_encryption_enabled": false,
"mutual_username": "",
"password": "",
"password_encryption_enabled": false,
"username": ""
},
"clients": {},
"controls": {},
"created": "2020/11/21 11:21:34",
"disks": {},
"groups": {},
"ip_list": [
"192.168.200.21"
],
"portals": {
"dev11": {
"gateway_ip_list": [
"192.168.200.21"
],
"inactive_portal_ips": [],
"portal_ip_addresses": [
"192.168.200.21"
],
"tpgs": 1
}
},
"updated": "2020/11/21 11:25:23"
}
},
"updated": "2020/11/21 11:25:23",
"version": 11
}
What should I do for this problem?