Code Monkey home page Code Monkey logo

Comments (5)

mikechristie avatar mikechristie commented on August 17, 2024

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.

ChristophGoth avatar ChristophGoth commented on August 17, 2024

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.

mikechristie avatar mikechristie commented on August 17, 2024

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.

ChristophGoth avatar ChristophGoth commented on August 17, 2024

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.

ricardoasmarques avatar ricardoasmarques commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.