Add magnum image upload CI

This commit extends CI for magnum role by adding
image upload as well as template creation. While these variables are
optional it is still good to cover them with CI.

Needed-by: https://review.opendev.org/708097
Change-Id: Id7725e053e3fdb13ba587d783ae4a447d30907bc
This commit is contained in:
Dmitriy Rabotyagov
2020-02-17 13:13:40 +02:00
committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 8f1f3731f6
commit 932baa2cf4
2 changed files with 55 additions and 0 deletions

View File

@@ -176,6 +176,9 @@
- src: user_variables_barbican.yml.j2
dest: user_variables_barbican.yml
condition: "{{ 'barbican' in bootstrap_host_scenarios_expanded }}"
- src: user_variables_magnum.yml.j2
dest: user_variables_magnum.yml
condition: "{{ 'magnum' in bootstrap_host_scenarios_expanded }}"
- src: user_variables_manila.yml.j2
dest: user_variables_manila.yml
condition: "{{ 'manila' in bootstrap_host_scenarios_expanded }}"

View File

@@ -0,0 +1,52 @@
---
# Copyright 2020, VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
magnum_glance_images:
- name: fedora-atomic-latest
disk_format: qcow2
image_format: bare
public: true
file: https://dl.fedoraproject.org/pub/alt/atomic/stable/Fedora-29-updates-20191126.0/AtomicHost/x86_64/images/Fedora-AtomicHost-29-20191126.0.x86_64.qcow2
distro: fedora-atomic
checksum: "sha1:7c1a88749d31a3828ac6a6b02e82d64f4c5823a5"
magnum_cluster_templates:
- name: k8s
cloud: default
coe: kubernetes
docker_volume_size: 5
flavor_id: s1.magnum
master_flavor_id: m1.magnum
network_driver: flannel
volume_driver: cinder
image_id: fedora-atomic-latest
labels:
kube_tag: v1.16.0
etcd_tag: 3.3.17
kube_version: v1.16.0
boot_volume_size: 5
cloud_provider_tag: v1.15.0
magnum_flavors:
- name: s1.magnum
cloud: default
ram: 256
vcpus: 1
disk: 5
- name: m1.magnum
cloud: default
ram: 512
vcpus: 1
disk: 5