Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP DNM Add adoption scenarion uni02beta #2649

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions scenarios/adoption/uni02beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
# By default, the OSP VMs will run using a default image.
# In upstream, it's usually latest centos-stream-9
# For downstream, it's usually rhel-9.4 image, depending on
# the job configuration.
#
# Since OSP infra must use an older RHEL image, you can override it
# by setting "osp_base_img_url" to point to the downstream QCOW2 image,
# and "osp_base_img_sha256" holding the SHA256SUM of the image.
#
# We can't automatically discover the image, the role/module sets the
# value globally, and it would clash with the needs for RHOSO images.

# Use anchor to avoid repetitions. This block is common to all of OSP nodes.
_osp_img_data: &osp_base_conf
image_local_dir: "{{ cifmw_basedir }}/images/"
disk_file_name: osp-base.qcow2
image_url: "{{ osp_base_img_url | default(cifmw_discovered_image_url) }}"
sha256_image_name: >-
{{ osp_base_img_sha256 | default(cifmw_discovered_hash) }}


libvirt_manager_patch_layout:
vms:
# Let's remove the default computes, since we want to adopt the
# OSP ones
compute:
amount: 0
osp-undercloud:
<<: *osp_base_conf
amount: 1
memory: 16
cpus: 8
disksize: 80
nets:
- ocpbm
- osp_trunk
osp-controller:
<<: *osp_base_conf
amount: 3
memory: 16
cpus: 8
disksize: 80
nets:
- ocpbm
- osp_trunk
osp-compute:
<<: *osp_base_conf
amount: 3
memory: 4
cpus: 4
disksize: 20
extra_disks_num: 3
extra_disks_size: 30G
nets:
- ocpbm
- osp_trunk

networking_mapper_definition_patch:
networks:
external:
network: "10.0.0.0/24"
vlan: 44
mtu: 1496
group-templates:
computes:
network-template:
# ensure this range does not collide with osp-computes one, even if we
# don't create any vms for the compute group (the computes for
# greenfield jobs) we need to make sure their ip ranges do not overlap
range:
start: 200
length: 1
osp-controllers:
network-template:
range:
start: 103
length: 3
networks: &osp_nets
ctlplane: {}
external:
trunk-parent: ctlplane
internalapi:
trunk-parent: ctlplane
tenant:
trunk-parent: ctlplane
storage:
trunk-parent: ctlplane
storagemgmt:
trunk-parent: ctlplane
osp-computes:
network-template:
range:
start: 106
length: 3
networks: *osp_nets
osp-underclouds:
network-template:
range:
start: 100
length: 1
networks: *osp_nets
Loading