35 Commits
Author SHA1 Message Date
Mohammed Naser 28a442e06f fix(nova,manila): derive SSH public key with a filter (#4485)
The Nova and Manila roles wrote the SSH private key to a temporary file
and ran community.crypto.openssh_keypair on it to get the public key.
That module copies the .pub file with preserved_copy(), which also
copies file attributes and fails with "Operation not supported" when
/tmp is a tmpfs (the default on Ubuntu 26.04).

Add a small ssh_public_key filter that derives the OpenSSH public key
from the private key in memory, and use it in both roles. This removes
the duplicated temporary file tasks and stops leaving a stray .pub file
behind in /tmp.

Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2026-10-29 14:38:21 +00:00
Mohammed NaserandMohammed Naser 20c1e0f65e fix: vendor quota module for older OpenStack SDK releases (#4442)
Signed-off-by: Mohammed Naser <435815+mnaser@users.noreply.github.com>
Co-authored-by: Mohammed Naser <435815+mnaser@users.noreply.github.com>
2026-10-27 15:09:26 -04:00
Yaguang Tang 622acbc136 fix(ceph): skip Rook roles without Ceph storage (#4398)
Signed-off-by: Yaguang Tang <yaguang.tang@vexxhost.com>
2026-10-26 14:54:24 -04:00
Mohammed NaserandMohammed Naser 436ba54b7f feat: publish release manifests and deploy from them (#4420)
Signed-off-by: Mohammed Naser <435815+mnaser@users.noreply.github.com>
Co-authored-by: Mohammed Naser <435815+mnaser@users.noreply.github.com>
2026-10-17 18:23:01 +08:00
c605825793 feat(csi): Add support for HPE nimble cinder driver and kubernetes CSI (#4103)
Signed-off-by: Copilot Autofix <noreply@github.com>
Signed-off-by: adrianreza <adrian.reza@vexxhost.com>
Signed-off-by: Yaguang Tang <yaguang.tang@vexxhost.com>
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: adrianreza <1904931+adrianreza@users.noreply.github.com>
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
2026-06-30 20:33:45 -04:00
Mohammed Naser 0801823d2a fix(storage): allow overriding default rbd backend (#4101)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2026-06-25 23:20:44 -04:00
Mohammed Naser 712b7e9b5c fix(storage): handle Ceph RBD backend edge cases (#4099)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2026-06-25 21:08:36 -04:00
Guilherme Steinmüller 6b2e50bde5 feat(cinder): add crush_rule support for EC metadata pool (#3747)
Signed-off-by: Guilherme Steinmuller <gsteinmuller@vexxhost.com>
2026-05-21 10:23:34 -04:00
cb1e0004e8 feat(cinder): add erasure-coded Ceph pool support (#3443)
Signed-off-by: Guilherme Steinmuller <gsteinmuller@vexxhost.com>
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-02 16:08:11 -05:00
Mohammed NaserandClaude ceb64e1202 Implement A8E-64 Service Account Support (#3348)
Signed-off-by: Claude <noreply@anthropic.com>
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-09 10:37:51 -05:00
Mohammed Naser 8ccabb61cb Bump openstacksdk to >1
This patch also vendors the openstack.cloud.subnet
module due to a problem with `disable_gateway_ip`
not being set for newly created subnets[1].

[1]: https://review.opendev.org/c/openstack/ansible-collections-openstack/+/940927

Change-Id: Ia021a1d7b82823c2e7498fdd66da3e2d5c6a8a79
2025-02-06 21:03:36 -05:00
b0093493f4 feat: Add keycloak (#510)
* feat: Add keycloak

* fix lint error

* Deploy keycloak in default

* Fix role names in deps

* Remove dynamic key in ansible variable dic

* Use custom wait logic because postgresql CRD doesn't have condition status

* Use production mode for keycloak

* Wait until zalando operator ready

* Set admin password explicitly

* Fix ingress config

* Create grafana client in keycloak and enable oauth in grafana

* Use PXC instead of zalando postgres

* Set default value for atmosphere_keycloak_enabled

* Split the mysql queries into multiple parts

* Solve convo

* Use ansible module for keycloak realm

* Concatenate realm arrays

* Tune keycloak config to work with mysql vendor and fix keycloak db user's host config

* Add notes about mysql vendor support in keycloak

* remove default client scope setting

it requires community.general collection upgrade to 4.7.0.
But there are other collections in the deps list which use lower versions.

Need to bump its version at some time surely.

* Tuen grafana oauth config

* Fix keycloak client auth mode

* Use a variable for keycloak database name

* Fix lint error

* Remove unused var from doc

* Manage pxc strict mode in ansible

* revert the changes out of the scope

* ignore changes during realm creation

* Resolve commnents

* Fix default values

* Use official keycloak image instead of bitnami

* Set proxy mode using KC env var

* securely reference oauth secrets in grafana.ini

* Remove implicit octal value in helm values

* Support id token in keycloak clients for rbac and add ingress role

* Update grafana role map attribute

* Use j2 template

https://stackoverflow.com/questions/63961938/ansible-variable-conversion-to-int-is-ignored

* Create client roles

* Fix yaml lint error

* Add keycloak health check in consumer roles

* fix: use correct annotations

* chore: add keystone-keycloak-backend to keystone

* fix: make openstack_helm_endpoints work cleaner

* chore: clean up unecessary docs

* fix: lock down grafana to allow users with roles only

* feat: integrate keystone with keycloak

* chore: added horizon auth via keycloak

* chore: add slo for grafana

* chore: bump to 0.1.5

* Fix yaml lint error

* Fix client role creation

* chore(kube-prometheus-stack): update to latest

* fix: KubeJobFailed should be SEV-3

* chore: refactor softnet alerts

* chore(monitoring): migrate to using jsonnet

* chore: refactor alerts

* chore: major monitoring refactor

* fix: solve alerts

* fix: apiserver selector

* more cleanups

* switch from SEV- to P

* fix: improve port binding alerts

* fix admin state alert for neutron

* map some more alerts

* drop uuid

* Revert "drop uuid"

This reverts commit ad0f05d0e7564759e8259c2cc53c2e2f5c73e1b8.

* fix: drop recording rules

* switch alertmanager to jsonnet

* fix: idempotence for monitoring

* chore: fix linters

* chore: lower ceph osd timeouts to p4

* chore: refactor to using new jsonnet

* chore: use vendor path

* chore: fix mixin for alertmanager

* core: fix selector

* ci: add initial keycloak kind tests

* ci: run keycloak basic scenario

* chore: refactor to using multiple domains

* chore: wip for keycloak multidomain

* adding multi domain support for keycloak as external identity provider (#556)

Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>

* chore: initial impl for multiple domain

* chore: grafan + keycloak wip

* chore: fix missing roles

* chore: remove commented out role

* chore: add ci debug

* chore: use smaller nodes for test

* ci: fix keycloak_user_info

* ci: fix keycloak_user_info

* ci: debug keycloak ci

* chore: fix linters

* ci: retry a few times for keycloak users to appear

* ci: ci fixes

* ci: misc fixes

* ci: fix secret generation

* ci: fix missing secrets

---------

Co-authored-by: okozachenko1203 <okozachenko1203@users.noreply.github.com>
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
Co-authored-by: Jeremy Lee <6729613+legit-ninja@users.noreply.github.com>
2023-09-06 15:43:47 -04:00
Mohammed Naser 545bc43143 chore: move to vexxhost.ceph 2023-04-16 23:01:46 -04:00
Tadas SutkaitisandMohammed Naser c4f0dedab3 feat: switch to binary kubernetes, fluxcd and helm install (#351)
* feat: more binary installs

* feat: install k8s from binaries

* fix: sync with the main branch

* fix(containerd): go back to using ansible_system

* fix(containerd): containerd+crictl cleanups

* chore: refactor k8s role

* ci: fix job name

* ci: do not fail-fast

* ci: disable swap

* ci: disable sudo

* ci: add kubelet logs

* ci: install udev

* ci: fix package names

* ci: fix idempotence

* ci: install deps earlier

* ci: added k8s tests

* ci: fix vars for fedora

* chore: drop unused submodule

* ci: fix typo in kubelet

* ci: start dbus.socket

* ci: fix fedora

* ci: fix paths

* fix: add maxconn to avoid killing system

* ci: print container logs

* ci: fix role test

* ci: move to stdout logs

* ci: fix idempotence

* ci: capture both stdout+stderr

* ci: drop extra default-server

* ci: fix haproxy

* ci: install apparmor-utils

* ci: update apt cache

* ci: remove pyyaml from rocky linux

* ci: add ha tests

* ci: fix flipped scenarios

* ci: use default keepalived iface

* chore: add debug

* chore: start tmate on failure

* chore: use newer containerd

* chore: fix shas

* ci: fix debian

* ci: back to debug

* ci: add containerd test suite

* ci: fix idempotence

* ci: force containerd restart

* ci: drop handler

* ci: load ip_tables module

* ci: add modprobe

* ci: add missing pkgs

* ci: load ip6_tables

* ci: add /lib/modules

* ci: add missing udev

* ci: run unconfined apparmor

* ci: drop debian + fedora support

* ci: fix paths

* chore: refactor to use vexxhost.kubernetes

* chore: refactor to using helm role

* wip

* ci: remove un-needed tests

* chore: refactor to k8s_node_label

* chore: fix k8s deploy

---------

Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
2023-03-29 11:51:19 -04:00
Mohammed Naser 31171f458b chore: refactor to vexxhost.k8s.docker_image 2023-03-19 00:10:46 +00:00
Mohammed Naser 0a13ceeacd feat: add OSA migration toolkit (#324)
* wip: add osa migration toolkit

* wip: added nova config extraction

* wip: added nova atmosphere config gen

* wip: clean-up nova configs

* wip: clean-up heat configs

* wip: add heat migration

* chore: refactor to migrate_db_from_osa

* chore: remove extra task

* chore: add magnum migrate

* chore: added haproxy migrate

* chore: misc fixes for osa_config_diff

* chore: misc fixes for osa_config_diff

* chore: add more services to osa migration

* chore: add pubkey generation to nova

* chore: add nova migration for computes

* chore: add multi-config file migration

* fix: multi-config file

* chore: add neutron migration

* chore: add neutron migration

* chore: add horizon migration

* chore: fix horizon migration

* chore: add cinder migration

* chore: add cinder migration for backends

* fix: enable cinder to do online volume resizes

* chore: turn off cinder services

* fix: allow uppercase backends

* fix: allow storage init with uppercase

* fix: allow for octavia migration from OSA

* move resource generation out

* chore: auto-detect health manager ips

* fix: discover facts for other controllers

* chore(octavia): migrate ca for amphora

* fix: use int for private key size

* chore: add designate migration

* fix: use yaml for designate_pools

* chore: add managed_resource_tenant_id
2023-03-02 11:28:29 +01:00
Mohammed Naser 65850fdf23 fix: use clusterctl for capi 2023-02-22 22:14:52 -05:00
Mohammed Naser 273d3cadfb chore: move monitoring to offline install 2023-01-29 22:28:54 +00:00
okozachenko1203 622ea928ad chore: Migrate ingress-nginx from operator to ansible role
In addition, update docker_image filter to support digest output
2023-01-27 09:06:06 +01:00
Mohammed Naser 35e132ff5c chore: move rmq-cluster-operator to offline-install 2023-01-24 23:41:55 +00:00
60d09f9b02 Fix: Specify the gallaxy collection for the filter. (#270)
* Fix: Specify the gallaxy collection for the filter.

* Fix cillium and ceph_csi_rbd

* fix percona_xtradb_cluster_operator

* fix: move more docker_image refs

* fix: move rabbitmq to right folder

Co-authored-by: Michiel Piscaer <michiel.piscaer@cgm.com>
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
2023-01-20 12:58:55 -05:00
Mohammed Naser bcdd25c47f chore: bump charts 2023-01-18 03:38:47 +00:00
Mohammed Naser 9b2852d307 chore: use openstack_helm_image_tags everywhere 2023-01-18 03:06:45 +00:00
Mohammed Naser dd9bbd1dab chore: bundle tempest chart 2023-01-18 02:53:23 +00:00
Mohammed Naser 427f6aa474 feat: add openstack_helm_image_tags filter 2023-01-18 02:08:18 +00:00
Mohammed Naser fef44b129d feat: move to image_manifest 2023-01-14 03:36:10 -05:00
Mohammed Naser 8b5c30614a fix: use atmosphere_images for an image manifest 2023-01-14 01:47:20 -05:00
Mohammed Naser 21d55818dd feat: added docker_image filter + image_list in ansible 2023-01-13 21:28:47 +00:00
Mohammed Naser 71ebfe8953 feat: allow for custom registry
This patch adds a simple CLI which can mirror all the images needed
as well as allow for simple override for `atmosphere_image_repository`
for all images.
2022-12-28 05:28:16 +00:00
Mohammed Naser 6e557c812a fix(certs): resolve ansible ternary 2022-10-01 22:38:06 -04:00
Mohammed Naser edc9b87bd5 feat: added operator role 2022-09-19 19:29:15 -04:00
Mohammed Naser 05ad921448 ci: add flake8 to pre-commit 2022-09-19 16:47:12 -04:00
Mohammed Naser f3a14a308d chore: add more pre-commit-config 2022-09-19 15:23:04 -04:00
Mohammed Naser 11b3e0c0d2 ceph: add ceph_config
add module that allows to manage ceph configuration

Sem-Ver: feature
Change-Id: Ic188c470758c0a173514b8d3279da0291661fb78
2022-05-28 00:21:17 +02:00
Mohammed Naser b7b97d6c04 Added OpenStack services
Change-Id: I9aadad2919a6a7400d6f11a884317e33e787b416
2022-03-12 21:31:43 -05:00