Skip to content

Instantly share code, notes, and snippets.

View fmount's full-sized avatar

Francesco Pantano fmount

View GitHub Profile
spec:
extraMounts:
- name: v1
region: r1
extraVol:
- propagation:
- CinderVolume
- CinderBackup
- GlanceAPI
- ManilaShare
@fmount
fmount / kcs7025985.sh
Last active January 25, 2024 21:30
workaround provided by kcs 7025985
#!/bin/bash
TIME=5
STORAGE_NETWORK=${STORAGE_NETWORK:-"172.17.3.0/24"}
cat <<EOF>rgw_spec
---
service_type: rgw
service_id: rgw
service_name: rgw.rgw
@fmount
fmount / rook_minikube.md
Last active November 14, 2023 00:03
Expose Rook Ceph cluster and connect OpenStack

Pt.1: Let's prepare minikube first!

minikube start --force --memory="4096" --cpus="2" -b kubeadm --kubernetes-version="v1.19.2" --driver="kvm2" --feature-gates="BlockVolume=true,CSIBlockVolume=true,VolumeSnapshotDataSource=true,ExpandCSIVolumes=true"

Where rook put all the cluster info?

minikube ssh "sudo mkdir -p /mnt/vda1/var/lib/rook;sudo ln -s /mnt/vda1/var/lib/rook /var/lib/rook"
@fmount
fmount / depends_on.sh
Last active October 18, 2023 15:45
depends-on
#!/bin/bash
set -x
REF_REPO="glance-operator"
PR_NUMBER="329"
DEPENDS_ON=$(curl -s -X GET -H \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
@fmount
fmount / standalone_destroy.sh
Last active August 18, 2023 03:52
Destroy a cephadm deployed Ceph cluster
#!/bin/bash
set -x
fsid="$1"
cephadm rm-cluster --fsid $fsid --force
source /etc/os-release
sudo systemctl stop tripleo_\*
sudo systemctl stop ceph\*
sudo pcs cluster destroy
if [ $VERSION_ID == "7" ]; then
sudo docker ps -a -q | xargs docker rm -f
@fmount
fmount / Vagrantfile
Last active May 8, 2023 13:52
Standalone OSP and Ceph
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
$tripleo_standalone = <<-'SCRIPT'
set -euxo pipefail
@fmount
fmount / local.conf
Last active April 22, 2023 11:30
devstack ceph(adm) only deployment
[[local|localrc]]
ADMIN_PASSWORD=secret
########
# CEPH #
########
CEPH_GIT_URL=https://review.opendev.org/openstack/devstack-plugin-ceph
enable_plugin devstack-plugin-ceph $CEPH_GIT_URL
@fmount
fmount / manila-operator-olm.md
Last active March 7, 2023 17:00
Manila operator OLM pattern

OLM PATTERN

Prereq:

  • Login to quay.io
  • Export USER and IMG

e.g.

@fmount
fmount / manila-operator-olm
Created February 27, 2023 16:43
Manila operator OLM pattern
## OLM PATTERN
Prereq:
* Login to quay.io
* Export USER and IMG
e.g.
> env | grep USE
@fmount
fmount / rook_crc_multus.md
Last active January 4, 2023 11:03
Notes: Rook / Multus on crc

Bootstrap crc and setup oc tools

wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
sudo tar -xJvf crc-linux-amd64.tar.xz
sudo mv crc-linux-1.22.0-amd64/crc /usr/local/bin/
sudo tar zxf openshift-client-linux.tar.gz -C /usr/local/bin/