Giter Site home page Giter Site logo

rhcs-export's Introduction

RHCS Configuration Exporter

The goal of this tool is to extract key elements of the Ceph configuration to a file. The file may then be used as metadata to import the cluster into rook-ceph enabling Kubernetes applications to consume storage from an external ceph cluster.

Installation

This is a simple python script, so could be installed directly by copying the file or installing with the rpm.

How to Use it

The ceph export command should be installed in a mgr or mon node. Once installed the command provides the following options;

[root@ceph-mgr ~]$ python ceph-export.py -h                    
usage: ceph-export.py [-h] [-o OUTPUT] [-c CONFDIR] [-u USER] [-f {yaml}]

Export RHCS configuration information

optional arguments:
  -h, --help            show this help message and exit                  
  -o OUTPUT, --output OUTPUT
                        output file for the export (default: ~/rhcs-config-export.yaml)
  -c CONFDIR, --confdir CONFDIR
                        ceph configuration directory (default: /etc/ceph)
  -u USER, --user USER  Ceph user to use for the keyring (default: admin)
  -f {yaml}, --format {yaml}
                        output file format (default: yaml)

Example output

Here's an example of the file the tool creates

---
dashboard: http://rhcs4-2.storage.lab:8443/
fsid: 6d210768-d391-409b-b585-56d54554da8c
mgr: 10.90.90.161
mons: [10.90.90.153, 10.90.90.160, 10.90.90.161]                                             
rgws: ['10.90.90.153:8080']
secret: AQCrGYBdRH3XLRAA+LojQqElDRXHL6FIb5QvXg==                                             
version: 14.2.2

TODO

  • support yaml/bash output formats (yaml only currently)
  • complete packaging
  • Add standby managers
  • block if prometheus is not enabled

rhcs-export's People

Contributors

pcuzner avatar

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.