Giter VIP home page Giter VIP logo

Comments (4)

siboulet avatar siboulet commented on July 29, 2024

That ceph.conf configuration look pretty simple. How are you connecting (code) and what error are you getting? Did you try the ceph command line tool, are you having problems with these too?

from node-rados.

wcchh avatar wcchh commented on July 29, 2024
  1. How ~ connecting:
    The cluster (docker/ceph) is built on 192.168.23.130, and my node-rados is running on another machine. (My node-rados can connect to other normal way built ceph cluster on other IP successfully with their "ceph.conf" file)
    I use the connecting method of sample code :
    var err = cluster.connect();
    And only got the return code (err) with value 2.
  2. What error I got is error code : 2
  3. Ceph command line tool : I don't know how to connect ceph cluster remotely in my case. I can do this (ceph command line tool) in that target 192.168.23.130, and "chep -s" show its health is ok. I can add pool and put object correctlly.

The IP "192.168.23.130" is public for my intranet, and using docker run with "--net=host" then bind it to ceph mon, so I can ping to it and there's no port relative issue.

from node-rados.

ksperis avatar ksperis commented on July 29, 2024

Hi,
The error code 2 should be a "no such file".
Could you verify that you have the rights to read the file /etc/ceph/ceph.client.admin.keyring ?

from node-rados.

wcchh avatar wcchh commented on July 29, 2024

It works! Thank you very mush!
So we need two files to build the connection: "ceph.conf" and "ceph.client.admin.keyring".

from node-rados.

Related Issues (12)

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.