Skip to content
Cockpit plugin to simplify Ceph installations
JavaScript Python CSS Shell Makefile HTML
Branch: master
Clone or download
pcuzner OSD count rendering fix within the review page
On some browsers the osd count was being seen
as a char field, so instead of adding the values
were concatenated a string...instead of 9 you got
333. This patch ensures the calculations on look
at osd hosts, and uses parseInt to force the value

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
Latest commit 0b85aa7 Nov 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist OSD count rendering fix within the review page Nov 7, 2019
mockdata Mockdata updated Jun 13, 2019
po Refresh dist packages May 10, 2019
screenshots Add animated gif for the README May 2, 2019
src OSD count rendering fix within the review page Nov 7, 2019
test Run tests with Python 3 Jul 2, 2018
utils Accomodate 4k sectors when calculating capacity Nov 4, 2019
.babelrc Build config changes May 1, 2019
.eslintignore Add more sample content to subscriptions page Jul 26, 2017
.eslintrc.json Build config changes May 1, 2019
.gitignore First code drop Nov 6, 2018
.travis.yml Add .travis.yml (#15) Oct 19, 2017
DEV-README.md Fix link May 8, 2019
DEVGUIDE.md Minor doc update Jun 13, 2019
KNOWN-ISSUES Doc update Sep 16, 2019
LICENSE Initial commit with a LICENSE and README Jun 14, 2017
Makefile Fix package name error during make dist-gzip Aug 20, 2019
README.md Version bump to 0.9-6 Nov 6, 2019
Vagrantfile vagrant: Use rsync backend for file sharing Jun 25, 2018
cockpit-ceph-installer.spec Version bump to 0.9-6 Nov 6, 2019
cockpit-starter-kit.spec.in Drop Python3 build requirement Aug 28, 2018
cockpituous-release cockpituous-release: Show how to do Fedora uploads Aug 28, 2018
org.cockpit-project.cockpit-ceph-installer.metainfo.xml Fixes to the rpm spec and setup script Jul 17, 2019
org.cockpit-project.starter-kit.metainfo.xml Consistently name everything [cockpit-]starter-kit (#14) Oct 19, 2017
package.json Updated package metadata May 1, 2019
webpack.config.js Use full React instead of react-lite Aug 28, 2018

README.md

cockpit-ceph-installer

This project aims to provide a simple means to deploy a Ceph cluster by 'teaming up' with the ansible-runner and ansible-runner-service projects. It uses the cockpit UI to validate the intended hosts are suitable for Ceph, and drive the complete ansible installation using ceph-ansible.

Project Status

The plugin currently

  • supports different Ceph versions, bluestore and filestore, encrypted/non-encrypted
  • for a Nautilus target, a separate metrics hosts is required. This host provides full prometheus/grafana integration for the Ceph UI (dashboard)
  • probes and validates candidate hosts against their intended Ceph role(s)
  • presents available networks for the public, cluster, S3 and iSCSI networks
  • provides a review of the selections made
  • configuration options selected are committed to standard yml format ansible files (host & group vars)
  • initiates the ceph-ansible playbook and monitors progress
  • any deployment errors are shown in the UI
  • following a Nautilus based deployment, the user may click a link to go straight to Ceph's web management console
  • allows environment defaults to be overridden from /var/lib/cockpit/ceph-installer/defaults.json
  • supported roles: mons (inc mgrs), mds, osds, rgws and iscsi gateways, metrics
  • support All-in-One installs for POC (aka kick-the-tyres)
  • creates log of all the settings detected and requested at ~/cockpit-ceph-installer.log

Known Issues

  1. An ISO based deployment may not install the ceph-grafana-dashboards rpm
  2. On slow links the podman/docker pull could hit the default timeout of 300s, resulting in a failed deployment. If this occurs, consider downloading the required containers manually and click 'Retry'

Curious, take a look...

demo

Take it for a testdrive

In this example we'll assume that you have a test VM ready to act as an ansible controller, and a set of VMs that you want to install Ceph to. Remember to ensure that the machines can each resolve here names (/etc/hosts will be fine!) All the commands need system privileges, so you'll need root or a sudo enabled account (I'm assuming root in these example steps).

1. Configure the pre-requisites

Fedora 28/29/30

1.1 As root run the following commands to install pre-requisite packages

# dnf install docker cockpit-ws cockpit-bridge git 

RHEL7

  • Install pre-requisite packages
# yum install -y docker cockpit-ws cockpit-bridge git 

CentOS 7

  • As root run the following commands to install pre-requisite packages
# yum install -y docker cockpit git 

1.2 Enable and start docker daemon (unless your using podman!)

# systemctl enable docker.service
# systemctl start docker.service

1.3 If your installation target(s) use names, ensure name resolution is working either through DNS or /etc/hosts

2. Install ceph-ansible from the Ceph project

2.1 Install python-notario (required by ceph-ansible)
2.2 Pull ceph-ansible from github (you'll need the latest stable-4.0 branch, or master)

# cd /usr/share
# git clone https://github.com/ceph/ceph-ansible.git

2.3 Make the installation playbooks available to the runner-service

# cd ceph-ansible
# cp site.yml.sample site.yml
# cp site-container.yml.sample site-container.yml

3. Install the cockpit plugin

3.1 Get the cockpit plugin src

# cd ~
# sudo git clone https://github.com/pcuzner/cockpit-ceph-installer.git
# cd cockpit-ceph-installer

3.2. Add a symlink to the dist folder of your cockpit-ceph-installer directory

# ln -snf dist /usr/share/cockpit/cockpit-ceph-installer
# systemctl restart cockpit.socket

3.3 From the root of the cockpit-ceph-installer directory, copy the checkrole components over to ceph-ansible's working directory

# cp utils/ansible/checkrole.yml /usr/share/ceph-ansible
# cp utils/ansible/library/ceph_check_role.py /usr/share/ceph-ansible/library/.

4. Start the ansible API (ansible-runner-service)

Although the ansible-runner-service runs as a container, it's configuration and playbooks come from the host filesystem.

4.1 As the root user, switch to the projects utils folder.

# cd utils
# ./ansible-runner-service.sh -s -v

NB. This script wil create and configure missing directories, set up default (self-signed) SSL identities, and download the runner-service container.

4.2 Once the runner-service is running you'll be presented with a URL to use to connect to GUI installer. Login as the root user.


Hack on it

To hack on the UI plugin, you'll need a nodejs install for ReactJS and a cockpit environment. Take a look at the dev guide for instructions covering how to set things up.

For background, take a look at the great starter kit docs that the cockpit devs have produced.

You can’t perform that action at this time.