From d8de623004b6bb3871638d0886ca9d5b1fc1ced1 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Wed, 24 Jul 2024 12:07:44 +0200 Subject: [PATCH] M #-: Remove firecracker from provision (#3165) --- share/oneprovision/ansible/aws.yml | 1 - share/oneprovision/ansible/equinix.yml | 1 - share/oneprovision/ansible/onprem.yml | 1 - .../opennebula-node-firecracker/README.md | 9 --- .../defaults/main.yml | 14 ----- .../tasks/centos.yml | 61 ------------------- .../tasks/debian.yml | 10 --- .../tasks/main.yml | 19 ------ share/oneprovision/ansible/vultr.yml | 1 - share/oneprovision/ansible/vultr_metal.yml | 1 - 10 files changed, 118 deletions(-) delete mode 100644 share/oneprovision/ansible/roles/opennebula-node-firecracker/README.md delete mode 100644 share/oneprovision/ansible/roles/opennebula-node-firecracker/defaults/main.yml delete mode 100644 share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/centos.yml delete mode 100644 share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/debian.yml delete mode 100644 share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/main.yml diff --git a/share/oneprovision/ansible/aws.yml b/share/oneprovision/ansible/aws.yml index 2ae50722e5..283bb3a839 100644 --- a/share/oneprovision/ansible/aws.yml +++ b/share/oneprovision/ansible/aws.yml @@ -4,7 +4,6 @@ - ddc - opennebula-repository - { role: opennebula-node-kvm, when: oneprovision_hypervisor == 'kvm' or oneprovision_hypervisor == 'qemu' } - - { role: opennebula-node-firecracker, when: oneprovision_hypervisor == 'firecracker' } - { role: opennebula-node-lxc, when: oneprovision_hypervisor == 'lxc' } - opennebula-ssh - role: iptables diff --git a/share/oneprovision/ansible/equinix.yml b/share/oneprovision/ansible/equinix.yml index 0406080f69..67bba0f9c9 100644 --- a/share/oneprovision/ansible/equinix.yml +++ b/share/oneprovision/ansible/equinix.yml @@ -4,7 +4,6 @@ - ddc - opennebula-repository - { role: opennebula-node-kvm, when: oneprovision_hypervisor == 'kvm' } - - { role: opennebula-node-firecracker, when: oneprovision_hypervisor == 'firecracker' } - { role: opennebula-node-lxc, when: oneprovision_hypervisor == 'lxc' } - opennebula-ssh - role: iptables diff --git a/share/oneprovision/ansible/onprem.yml b/share/oneprovision/ansible/onprem.yml index 2eef76e476..a7039c73a9 100644 --- a/share/oneprovision/ansible/onprem.yml +++ b/share/oneprovision/ansible/onprem.yml @@ -4,7 +4,6 @@ - ddc - opennebula-repository - { role: opennebula-node-kvm, when: oneprovision_hypervisor == 'kvm' } - - { role: opennebula-node-firecracker, when: oneprovision_hypervisor == 'firecracker' } - { role: opennebula-node-lxc, when: oneprovision_hypervisor == 'lxc' } - opennebula-ssh - role: frr diff --git a/share/oneprovision/ansible/roles/opennebula-node-firecracker/README.md b/share/oneprovision/ansible/roles/opennebula-node-firecracker/README.md deleted file mode 100644 index c6ab0c6c87..0000000000 --- a/share/oneprovision/ansible/roles/opennebula-node-firecracker/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# opennebula-node-firecracker - -## Description - -Install the opennebula-node-firecracker package. - -## Requirements - -OpenNebula repository must be configured before executing this role. diff --git a/share/oneprovision/ansible/roles/opennebula-node-firecracker/defaults/main.yml b/share/oneprovision/ansible/roles/opennebula-node-firecracker/defaults/main.yml deleted file mode 100644 index 660cb8c339..0000000000 --- a/share/oneprovision/ansible/roles/opennebula-node-firecracker/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -############################################################################### -# Valid defaults -############################################################################### - -# Virtual network drivers to be enabled to work with Firecracker -opennebula_node_firecracker_network_drivers: - - elastic - - vxlan - -# Required virtual network types -opennebula_node_firecracker_network_hook_types: - - clean - - pre diff --git a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/centos.yml b/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/centos.yml deleted file mode 100644 index 2c24043232..0000000000 --- a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/centos.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- - -- block: - - name: Update centos-release package - yum: name=centos-release state=latest - register: yum_result - until: yum_result is succeeded - retries: 3 - delay: 10 - - name: Install qemu-ev repository - yum: name=centos-release-qemu-ev state=latest - register: yum_result - until: yum_result is succeeded - retries: 3 - delay: 10 - - name: Install qemu-kvm-ev - yum: name=qemu-kvm-ev state=present - register: yum_result - until: yum_result is succeeded - retries: 3 - delay: 10 - when: - - ansible_distribution == "CentOS" - - ansible_distribution_major_version == "7" - - opennebula_node_kvm_use_ev - -- block: - - name: Enable RHEV repo - command: subscription-manager repos --enable {{ opennebula_node_kvm_rhev_repo }} - register: sm_result - until: sm_result is succeeded - retries: 3 - delay: 10 - - name: Instal RHEV - yum: name=qemu-kvm-rhev state=latest - until: yum_result is succeeded - retries: 3 - delay: 10 - when: - - ansible_distribution == "RedHat" - - ansible_distribution_major_version == "7" - - opennebula_node_kvm_use_ev - -- name: Install libgcrypt - package: - name: libgcrypt - state: latest - register: pkg_result - until: pkg_result is succeeded - retries: 3 - delay: 10 - when: - - ansible_os_family == "RedHat" - - ansible_distribution_major_version == "8" - -- name: Install OpenNebula node Firecracker package - yum: name=opennebula-node-firecracker state=latest - register: yum_result - until: yum_result is succeeded - retries: 3 - delay: 10 diff --git a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/debian.yml b/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/debian.yml deleted file mode 100644 index 8c271b6a40..0000000000 --- a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/debian.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- - -- name: Install OpenNebula node Firecracker package - apt: - name: opennebula-node-firecracker - state: latest - register: apt_result - until: apt_result is success - retries: 3 - delay: 10 diff --git a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/main.yml b/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/main.yml deleted file mode 100644 index b03d6be0f2..0000000000 --- a/share/oneprovision/ansible/roles/opennebula-node-firecracker/tasks/main.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- - -# Workaround for non-unified cgroups v2 not supported by Firecracker yet -# https://github.com/firecracker-microvm/firecracker/issues/841 ? -- name: Reconfigure cgroups - include_role: - name: cgroups1 - when: | - (ansible_distribution == 'Fedora') or - (ansible_distribution == 'Debian' and ansible_distribution_version is version_compare('11', '>=')) - -- name: Install OpenNebula node Firecracker package - package: - name: opennebula-node-firecracker - state: latest - register: result - until: result is success - retries: 3 - delay: 10 diff --git a/share/oneprovision/ansible/vultr.yml b/share/oneprovision/ansible/vultr.yml index d378ad2898..e539c5b709 100644 --- a/share/oneprovision/ansible/vultr.yml +++ b/share/oneprovision/ansible/vultr.yml @@ -4,7 +4,6 @@ - ddc - opennebula-repository - { role: opennebula-node-kvm, when: oneprovision_hypervisor == 'kvm' or oneprovision_hypervisor == 'qemu' } - - { role: opennebula-node-firecracker, when: oneprovision_hypervisor == 'firecracker' } - { role: opennebula-node-lxc, when: oneprovision_hypervisor == 'lxc' } - opennebula-ssh - role: iptables diff --git a/share/oneprovision/ansible/vultr_metal.yml b/share/oneprovision/ansible/vultr_metal.yml index 0d48a1c6d1..cee787f780 100644 --- a/share/oneprovision/ansible/vultr_metal.yml +++ b/share/oneprovision/ansible/vultr_metal.yml @@ -4,7 +4,6 @@ - ddc - opennebula-repository - { role: opennebula-node-kvm, when: oneprovision_hypervisor == 'kvm' or oneprovision_hypervisor == 'qemu' } - - { role: opennebula-node-firecracker, when: oneprovision_hypervisor == 'firecracker' } - { role: opennebula-node-lxc, when: oneprovision_hypervisor == 'lxc' } - opennebula-ssh - role: iptables