Skip to content

Commit

Permalink
Add 5.0 CI and reference hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed Jul 4, 2024
1 parent 15ef327 commit 04f86aa
Show file tree
Hide file tree
Showing 7 changed files with 1,119 additions and 128 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ image for testing Pull Requests built with the open build service. This needs to
| Uyuni Podman | Leap 15.5 | Leap 15.5 | - | Rocky 8 | Ubuntu 22.04 | Leap 15.5 | SLES 15 SP4 | SLES 15 SP4 | Leap 15.5 | Leap Micro 5.5 | Leap Micro 5.5 |
| HEAD | SLES 15 SP4 | SLES 15 SP4 | - | Rocky 8 | Ubuntu 22.04 | SLES 15 SP4 | SLES 15 SP4 | SLES 15 SP4 | Leap 15.5 | SLE Micro 5.5 | SLE Micro 5.5 |
| 4.3 | SLES 15 SP4 | SLES 15 SP4 | SLES 15 SP4 | CentOS 7 | Ubuntu 22.04 | SLES 15 SP4 | SLES 15 SP4 | SLES 15 SP4 | Leap 15.5 | SLES 15 SP4 | SLES 15 SP4 |
| 5.0 | SLES 15 SP4 | SLES 15 SP4 | - | Rocky 8 | Ubuntu 22.04 | SLES 15 SP4 | SLES 15 SP4 | SLES 15 SP4 | Leap 15.5 | SLE Micro 5.5 | SLE Micro 5.5 |
255 changes: 255 additions & 0 deletions terracumber_config/tf_files/SUSEManager-5.0-NUE.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-5.0/job/manager-5.0-dev-acceptance-tests-NUE"
}

// Not really used as this is for --runall parameter, and we run cucumber step by step
variable "CUCUMBER_COMMAND" {
type = string
default = "export PRODUCT='SUSE-Manager' && run-testsuite"
}

variable "CUCUMBER_GITREPO" {
type = string
default = "https://github.com/SUSE/spacewalk.git"
}

variable "CUCUMBER_BRANCH" {
type = string
default = "Manager-5.0"
}

variable "CUCUMBER_RESULTS" {
type = string
default = "/root/spacewalk/testsuite"
}

variable "MAIL_SUBJECT" {
type = string
default = "Results 5.0-NUE $status: $tests scenarios ($failures failed, $errors errors, $skipped skipped, $passed passed)"
}

variable "MAIL_TEMPLATE" {
type = string
default = "../mail_templates/mail-template-jenkins.txt"
}

variable "MAIL_SUBJECT_ENV_FAIL" {
type = string
default = "Results 5.0-NUE: Environment setup failed"
}

variable "MAIL_TEMPLATE_ENV_FAIL" {
type = string
default = "../mail_templates/mail-template-jenkins-env-fail.txt"
}

variable "MAIL_FROM" {
type = string
default = "jenkins@suse.de"
}

variable "MAIL_TO" {
type = string
default = "galaxy-ci@suse.de"
}

// sumaform specific variables
variable "SCC_USER" {
type = string
}

variable "SCC_PASSWORD" {
type = string
}

variable "GIT_USER" {
type = string
default = null // Not needed for master, as it is public
}

variable "GIT_PASSWORD" {
type = string
default = null // Not needed for master, as it is public
}

terraform {
required_version = "1.0.10"
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
}
}
}

provider "libvirt" {
uri = "qemu+tcp://suma-01.mgr.suse.de/system"
}

module "cucumber_testsuite" {
source = "./modules/cucumber_testsuite"

product_version = "5.0-nightly"

// Cucumber repository configuration for the controller
git_username = var.GIT_USER
git_password = var.GIT_PASSWORD
git_repo = var.CUCUMBER_GITREPO
branch = var.CUCUMBER_BRANCH

cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD

images = ["rocky8o", "opensuse155o", "ubuntu2204o", "sles15sp4o", "slemicro55o"]

use_avahi = false
name_prefix = "suma-50-"
domain = "mgr.suse.de"
from_email = "root@suse.de"

no_auth_registry = "registry.mgr.suse.de"
auth_registry = "registry.mgr.suse.de:5000/cucutest"
auth_registry_username = "cucutest"
auth_registry_password = "cucusecret"
git_profiles_repo = "https://github.com/uyuni-project/uyuni.git#:testsuite/features/profiles/internal_nue"

container_server = true
container_proxy = true

mirror = "minima-mirror-ci-bv.mgr.suse.de"
use_mirror_images = true

server_http_proxy = "http-proxy.mgr.suse.de:3128"
custom_download_endpoint = "ftp://minima-mirror-ci-bv.mgr.suse.de:445"

# when changing images, please also keep in mind to adjust the image matrix at the end of the README.
host_settings = {
controller = {
provider_settings = {
mac = "aa:b2:93:01:00:f0"
vcpu = 2
memory = 2048
}
}
server_containerized = {
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:93:01:00:f1"
vcpu = 8
memory = 32768
}
main_disk_size = 500
login_timeout = 28800
runtime = "podman"
container_repository = "registry.suse.de/devel/galaxy/manager/5.0/containerfile/suse/manager/5.0/x86_64"
container_tag = "latest"
}
proxy_containerized = {
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:93:01:00:f2"
vcpu = 2
memory = 2048
}
main_disk_size = 200
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
runtime = "podman"
container_repository = "registry.suse.de/devel/galaxy/manager/5.0/containerfile/suse/manager/5.0/x86_64"
container_tag = "latest"
}
suse-minion = {
image = "sles15sp4o"
name = "min-suse"
provider_settings = {
mac = "aa:b2:93:01:00:f6"
vcpu = 2
memory = 2048
}
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
}
suse-sshminion = {
image = "sles15sp4o"
name = "minssh-suse"
provider_settings = {
mac = "aa:b2:93:01:00:b8"
vcpu = 2
memory = 2048
}
additional_packages = [ "venv-salt-minion", "iptables" ]
install_salt_bundle = true
}
redhat-minion = {
image = "rocky8o"
name = "min-rocky8"
provider_settings = {
mac = "aa:b2:93:01:00:b9"
// Since start of May we have problems with the instance not booting after a restart if there is only a CPU and only 1024Mb for RAM
// Also, openscap cannot run with less than 1.25 GB of RAM
vcpu = 2
memory = 2048
}
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
}
debian-minion = {
image = "ubuntu2204o"
name = "min-ubuntu2204"
provider_settings = {
mac = "aa:b2:93:01:00:bb"
vcpu = 2
memory = 2048
}
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
}
build-host = {
image = "sles15sp4o"
name = "min-build"
provider_settings = {
mac = "aa:b2:93:01:00:bd"
vcpu = 2
memory = 2048
}
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
}
pxeboot-minion = {
image = "sles15sp4o"
}
dhcp-dns = {
name = "dhcp-dns"
image = "opensuse155o"
hypervisor = {
host = "suma-01.mgr.suse.de"
user = "root"
private_key = file("~/.ssh/id_rsa")
}
}
kvm-host = {
image = "sles15sp4o"
name = "min-kvm"
provider_settings = {
mac = "aa:b2:93:01:00:be"
vcpu = 4
memory = 4096
}
additional_packages = [ "venv-salt-minion" ]
install_salt_bundle = true
}
}

provider_settings = {
pool = "ssd"
network_name = null
bridge = "br0"
additional_network = "192.168.50.0/24"
}
}

output "configuration" {
value = module.cucumber_testsuite.configuration
}
Loading

0 comments on commit 04f86aa

Please sign in to comment.