Skip to main content

Rookify

DISCLAIMER: Rookify is in early development state and is not feature-complete. Don't use it in production environments until it is production-ready and tested!

Overview

Rookify is designed to facilitate a smooth and efficient transition for existing Ceph clusters to a Rook-managed Ceph cluster environment. This tool targets clusters deployed via traditional methods and those set up using the standards of Sovereign Cloud Stack and reference implementation OSISM. By automating the conversion process, this tool aims to minimize downtime and ensure a seamless migration experience.

Features

  • Automated Conversion: Simplifies the migration process from a traditional Ceph deployment to a Rook-managed Ceph environment.
  • Minimal Downtime: Designed to perform migrations with the least possible impact on availability.
  • Preflight Check: Analyzes existing Ceph clusters and checks if migrations are possible.

Prerequisites

  • A functioning Ceph cluster deployed via traditional methods.
    • TODO: List supported methods
  • Access to a Kubernetes cluster with sufficient resources to host the migrated Ceph cluster.
    • Kubernetes nodes should be rolled out at least on the monitor nodes
  • Rook operator version 1.13 or higher installed in the Kubernetes cluster.
  • local development enivornment requires radoslib version 2.0.0 installed

Installation

  1. Clone the repository:
git clone https://github.com/SovereignCloudStack/rookify
  1. Navigate to the tool directory:
cd rookify
  1. Check if your host has the correct "radoslib" library installed (if not: then install radoslib version 2.0.0):
make check-radoslib
  1. To install the local development environment (Note: This will install pre-commit in your local user context):
make setup
  1. To install the container-based environment
make build-container

Usage

NOTE: for testing purposes the OSISM Testbed is used. The Makefile and example configuration (config.example.osism.yaml) have built in helper functions and examples for this test setup.

Copy and adapt configuration files

Choose one of the configuration-examples found in the root of the working directory and copy it to config.yml:

ls config.example.*
# there is a specific example config for the OSISM testbed: config.example.osism.yaml
cp config.example.yml config.yaml

Adapt the config.yml to your need: especially enter the correct paths for ssh-keys, kubernetes configuration and ceph configuration (all these configuration files need to be provided!).

Provide needed configuration files from target servers

Copy the needed configuration-files from the servers that need to be migrated from ceph to rook.

Provide needed configuration files as written in the config.yml. At least required are:

  • ./ceph/ceph.conf (typically found in /etc/ceph/ on a testbednode)
  • ./ceph/ceph.admin.keyring (typically found in /etc/ceph/ on a testbednode)
  • kubernetes config of user (e.g. found in ~/.kube/config)
  • ssh key of the server (found at ./terraform/.id.rsa in the testbed directory)

Note:

  • for the testbed there is a helper script to download the configs from the testbed. These helperscripts need correct .ssh/config entries to work (take a look at scripts/osism/get_configs_from_testbed for an example).
  • the helper scripts are merely there to help for testing with the OSISM testbed and might not suit your purposes.

Run Rookify

Now decide on how to run rookify. Either run it from within a container or locally:

run-local-rookify
# or
run-rookify

Then sit back and wait. Check the troubleshooting and support sections if any issues occur.

For other options you can also check the makefile: Type make to get a list of available commands.

Check status of migration

Use rookify --show-states argument to let each module check for its state in the migration

.venv/bin/rookify --show-states
ceph mon dump: Not analyzed yet
ceph osd dump: Not analyzed yet
OSD devices: Not analyzed yet

Troubleshooting

missing Ceph systemd targets:

  • please consult your distribution's documentation in case documented Ceph systemd unit services or targets are missing
  • cephadm install ceph-common ceph-base ceph-mon ceph-mgr ceph-mds radosgw may help if supported

frozen state:

  • if the rookify process freezes, check your connections. In the OSISM testbed especially check the vpn-connection (in testbed repository try make vpn-*)

ssh-issues:

  • make sure the id-rsa keys are "clean" and do not contain unexpected strings like "<<EOF". E.g. call ssh-keygen -p -N "" -f ssh.key to convert and reformat the keyfile to the expected format.
  • allow direnv (direnv allow) to use .envrc or copy and execute the command from the file: this switches off the ssh-agent, which sometimes has too many keys loaded

Support

For issues, questions, or contributions, please open an issue or pull request in the GitHub repository. We welcome community feedback and contributions to enhance rookify.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Metadata

Release files for Rookify 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Rookify 1.1.0
File Size Uploaded
rookify-1.1.0.tar.gz 52.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Rookify 1.1.0
File Interpreter ABI Platform
Rookify-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 121.7 kB

Release files / rookify-1.1.0.tar.gz

Download URL rookify-1.1.0.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fa82bb5096a1897089a87014c1c0497b820af2b467b2f5f9f199741343633c63
BLAKE2b-256 checksum
How to use checksums
150a40f665bbf77f87b62a7c70ce6599453b1ae45ed73a2c314b256e148d3aae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2024.

Transparency log

Release files / Rookify-1.1.0-py3-none-any.whl

Download URL Rookify-1.1.0-py3-none-any.whl
Size 69.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6c3b6bebd9d78566da7673d6fbc42cf761cfd8c9c46b47d55adac9c332a3fad
BLAKE2b-256 checksum
How to use checksums
8b34407488803f7d0e342b93abd1869749a15d3fabe87431eca4e7aac7e72594
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page