Comments (5)
For the initial issue it looks like the cluster_client_name or cephconf is not setup correctly. Did you modify those values in /etc/ceph/iscsi-gateway.cfg?
After we hit that, then we hit a bug in the ceph-iscsi code where we assume cluster is always set.
from ceph-iscsi.
Yes, the values are set (Default Cluster Name, running on same Node, Nautilus 12.2.2):
server03 ~ # cat /etc/ceph/iscsi-gateway.cfg
[config]
# name of the *.conf file. A suitable conf file allowing access to the ceph
# cluster from the gateway node is required.
cluster_name = ceph
# Pool name where internal `gateway.conf` object is stored
pool = config_iscsi
# CephX client name
cluster_client_name = ceph.client.admin.keyring
# API settings.
# The api supports a number of options that allow you to tailor it to your
# local environment. If you want to run the api under https, you will need to
# create crt/key files that are compatible for each gateway node (i.e. not
# locked to a specific node). SSL crt and key files *must* be called
# iscsi-gateway.crt and iscsi-gateway.key and placed in /etc/ceph on *each*
# gateway node. With the SSL files in place, you can use api_secure = true
# to switch to https mode.
# To support the api, the bear minimum settings are;
api_secure = false
# Additional API configuration options are as follows (defaults shown);
api_user = admin
api_password = admin
api_port = 5000
trusted_ip_list = 127.0.0.1
# Refer to the ceph-iscsi-config/settings module for more options
server03 ~ # cat /etc/ceph/ceph.conf
[global]
fsid = 34f09a6f-7aa4-4645-beaa-87cfcce6ad08
mon_initial_members = server03
mon_host = 172.16.0.202
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
osd pool default size = 2
crush chooseleaf type = 0
osd pool default pg num = 64
osd pool default pgp num = 64
[client]
rbd cache = true
rbd cache policy = writeback
rbd cache size = 24Gb
rbd cache max dirty = 20Gb
rbd cache target dirty = 16Gb
When i change the keyring to something different, the connection fails:
server03 ~ # cat /var/log/rbd-target-api/rbd-target-api.log
...
2019-10-10 07:56:38,082 ERROR [rbd-target-api:2918:<module>()] - Unable to connect to the cluster (keyring missing?) - [errno 2] error connecting to the cluster
2019-10-10 07:56:38,084 CRITICAL [rbd-target-api:2736:halt()] - Unable to open/read the configuration object
But when i change the cluster_name to something different, the error remains the same.
from ceph-iscsi.
You have a file
/etc/ceph/ceph.client.admin.keyring
right?
If so, leave cluster_client_name unset in iscsi-gateway.conf or set it to client.admin (this is the default).
from ceph-iscsi.
Yay, after unsetting cluster_client_name it's working as expected,thanks :)
But now in Ceph Dashboard:
Unsupported ceph-iscsi
config version. Expected 9 but found 11.
Which ceph-iscsi Release is providing a Version 9 Config? Ceph Release is Nautilus 14.2.2:
ceph version 14.2.2 (4f8fa0a0024755aae7d95567c63f11d6862d55be) nautilus (stable)
Sadly there is corrently no newer apt source fpr Ubuntu Eoan.
from ceph-iscsi.
The PR that adds support for ceph-iscsi config v11 in Nautilus Ceph Dashboard is still open ceph/ceph#30545 so I'm afraid you have to wait for Ceph Nautilus 14.2.5
to be released.
from ceph-iscsi.
Related Issues (20)
- rbd-target-api / Unable to decode password for iqn.1998-01.com ,,, HOT 19
- Help! The rbd-target-api service of iSCSI gw cannot be started HOT 2
- ceph-iscsi / tcmu-runner bad pefromance with vmware esxi HOT 1
- I can't get return from method _add_dev_to_lio_user_rbd in ARM environment, it seems to be hang HOT 1
- Unable to remove / disassociate a disk from initiator HOT 1
- rbd-target-api will not start on Ubuntu Impish and later
- Failed to deploy iscsi service HOT 1
- Is ceph iscsi still being maintained?Or has it been abandoned? HOT 5
- gwcli error: REST API failure, code: 500
- rbd-target-api: concurrent requests are not supported HOT 6
- About using cephadm to deploy iSCSI Gateway
- Cannot remove a non-existent gatway by confirm=true HOT 1
- rbd-target-api fails to start : error : Failed to run ceph osd blocklist ls HOT 1
- rbd-target-api stuck, tcmu-runner crash / iSCSI Login negotiation failed
- HELP:Failed : disk create/update failed on ceph-2. Unhandled exception: __init__() got an unexpected keyword argument 'control'
- HELP: Failed : disk create/update failed on ceph-2. LUN allocation failure
- rbd-target-api: Disk limit 256 HOT 4
- rtslib_fb: `db_root: cannot be changed because it's in use`
- PSA: Purging ceph-iscsi on Debian rendered system borked
- rbd-target-api bug in centos9 with default python 3.9.18 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-iscsi.