Skip to content

Commit

Permalink
WIP: Extracted baremetal job
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisdenny committed Feb 22, 2024
1 parent 8f77c48 commit 600103e
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 67 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/require-checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Require Checklist

on: # noqa: yaml[truthy]
pull_request:
types: [opened, edited, synchronize]
types: [opened, edited, synchronize, ready_for_review]

jobs:
check-main-comment:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: mheap/require-checklist-action@v2
with:
Expand Down
37 changes: 37 additions & 0 deletions ci/playbooks/edpm_baremetal_deployment/run_extracted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
- name: "Run ci/playbooks/edpm_baremetal_deployment/run_extracted.yml"
hosts: "{{ cifmw_zuul_target_host | default('all') }}"
gather_facts: true
vars:
crc_parameters: "--memory 32000 --disk-size 240 --cpus 12"
tasks:
- name: Filter out host if needed
when:
- cifmw_zuul_target_host is defined
- cifmw_zuul_target_host != 'all'
- inventory_hostname != cifmw_zuul_target_host
ansible.builtin.meta: end_host

- name: Check for edpm-ansible.yml file
ansible.builtin.stat:
path: "{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml"
register: edpm_file

- name: Perform Podified and EDPM deployment on compute nodes with virtual baremetal
ansible.builtin.command:
chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework"
cmd: >-
ansible-playbook deploy-edpm.yml
-i "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml"
-e @scenarios/centos-9/base.yml
-e @scenarios/centos-9/edpm_ci.yml
-e @scenarios/centos-9/edpm_baremetal_deployment_ci_extracted.yml
{%- if edpm_file.stat.exists %}
-e @{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml
{%- endif %}
{%- if cifmw_extras is defined %}
{%- for extra_var in cifmw_extras %}
-e "{{ extra_var }}"
{%- endfor %}
{%- endif %}
-e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml"
14 changes: 14 additions & 0 deletions scenarios/centos-9/edpm_baremetal_deployment_ci_extracted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
cifmw_install_yamls_vars:
DEPLOY_DIR: "{{ cifmw_basedir }}/artifacts/edpm_compute" # used during Baremetal deployment
INFRA_REPO: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/infra-operator"
BMAAS_INSTANCE_MEMORY: 8192
BMAAS_INSTANCE_VCPUS: 6
BMAAS_INSTANCE_DISK_SIZE: 40
DATAPLANE_GROWVOLS_ARGS: "/=8GB /tmp=1GB /home=1GB /var=8GB"

# edpm_deploy role vars
cifmw_edpm_deploy_baremetal: true

# openshift_login role vars
#cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
13 changes: 12 additions & 1 deletion zuul.d/edpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@
name: cifmw-crc-podified-edpm-baremetal
nodeset: centos-9-crc-6xlarge
parent: cifmw-base-crc-openstack
run: ci/playbooks/edpm_baremetal_deployment/run.yml
run: ci/playbooks/edpm_baremetal_deployment/run_extracted.yml
vars:
crc_parameters: "--memory 32000 --disk-size 240 --cpus 12"
cifmw_manage_secrets_pullsecret_content: '{}'

# Extracted baremetal job
- job:
name: podified-multinode-edpm-deployment-crc-baremetal
parent: cifmw-podified-multinode-edpm-base-crc
vars:
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
run:
- ci/playbooks/edpm_baremetal_deployment/run_extracted.yml


# Podified galera job
- job:
name: cifmw-crc-podified-galera-deployment
Expand Down
66 changes: 1 addition & 65 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
@@ -1,69 +1,5 @@
- project:
github-check:
jobs:
- noop
- cifmw-baremetal-nested-crc
- cifmw-content-provider-build-images
- cifmw-edpm-build-images
- cifmw-multinode-kuttl
- cifmw-tcib
- cifmw-molecule-artifacts
- cifmw-molecule-build_containers
- cifmw-molecule-build_openstack_packages
- cifmw-molecule-cert_manager
- cifmw-molecule-ci_gen_kustomize_values
- cifmw-molecule-ci_local_storage
- cifmw-molecule-ci_metallb
- cifmw-molecule-ci_multus
- cifmw-molecule-ci_netconfig
- cifmw-molecule-ci_network
- cifmw-molecule-ci_nmstate
- cifmw-molecule-ci_setup
- cifmw-molecule-cifmw_block_device
- cifmw-molecule-cifmw_ceph_client
- cifmw-molecule-cifmw_ceph_spec
- cifmw-molecule-cifmw_cephadm
- cifmw-molecule-cifmw_create_admin
- cifmw-molecule-cifmw_test_role
- cifmw-molecule-copy_container
- cifmw-molecule-devscripts
- cifmw-molecule-discover_latest_image
- cifmw-molecule-dlrn_promote
- cifmw-molecule-dlrn_report
- cifmw-molecule-edpm_build_images
- cifmw-molecule-edpm_deploy
- cifmw-molecule-edpm_deploy_baremetal
- cifmw-molecule-edpm_kustomize
- cifmw-molecule-edpm_prepare
- cifmw-molecule-env_op_images
- cifmw-molecule-hci_prepare
- cifmw-molecule-hive
- cifmw-molecule-idrac_configuration
- cifmw-molecule-install_ca
- cifmw-molecule-install_yamls
- cifmw-molecule-kustomize_deploy
- cifmw-molecule-libvirt_manager
- cifmw-molecule-manage_secrets
- cifmw-molecule-networking_mapper
- cifmw-molecule-openshift_login
- cifmw-molecule-openshift_provisioner_node
- cifmw-molecule-openshift_setup
- cifmw-molecule-operator_build
- cifmw-molecule-operator_deploy
- cifmw-molecule-os_must_gather
- cifmw-molecule-pkg_build
- cifmw-molecule-registry_deploy
- cifmw-molecule-repo_setup
- cifmw-molecule-reproducer
- cifmw-molecule-rhol_crc
- cifmw-molecule-run_hook
- cifmw-molecule-set_openstack_containers
- cifmw-molecule-tempest
- cifmw-molecule-test_deps
- cifmw-molecule-test_operator
- cifmw-molecule-tobiko
- cifmw-molecule-tofu
- podified-multinode-edpm-deployment-crc-baremetal
name: openstack-k8s-operators/ci-framework
templates:
- podified-multinode-edpm-pipeline
- data-plane-adoption-pipeline

0 comments on commit 600103e

Please sign in to comment.