Skip to content

Instantly share code, notes, and snippets.

View fmount's full-sized avatar

Francesco Pantano fmount

View GitHub Profile

Building custom OpenStack images

This document outlines the hotfix process for an OpenStack service deployed on OpenShift. The procedure assumes the following:

  • Internal Registry Usage: Use the OpenShift internal container image registry instead of a third-party registry. To enable access from EDPM nodes, expose the registry via an OpenShift Route.

Managing OpenStack Service Version Incompatibilities

OpenStack services can exhibit incompatibilities between versions that require careful handling during updates to prevent services from entering a CrashLoopBackOff state. An example is Glance, which changed its default deployment model from httpd+ProxyPass to httpd+WSGI between feature releases. In brownfield environments, this creates a challenge: transitioning Glance from one deployment model to another without breaking the existing ControlPlane's ability to reach a Ready state.

Topology and Affinity notes

oc label nodes master-0 node=node0 zone=zoneA --overwrite
oc label nodes master-1 node=node1 zone=zoneB --overwrite
oc label nodes master-2 node=node2 zone=zoneC --overwrite
+--------+      +--------+      +--------+

External Ceph - ROOK / CRC

This guide outlines how to set up an external Ceph cluster using the ROOK operator in a CRC (CodeReady Containers) or SNO (Single Node OpenShift) environment. The instructions assume you're using the install_yamls project and openstack-ceph scripts for development tools.

The setup involves 2 nodes:

  • a crc environment that can be replaced by a SNO
spec:
extraMounts:
- name: v1
region: r1
extraVol:
- propagation:
- CinderVolume
- CinderBackup
- GlanceAPI
- ManilaShare
@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 / 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 / local.conf
Last active May 15, 2025 08:18
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