Fix issue with failed OOO upgrade

The reason of issue is in the structure of variables in plugins.spec. Since
infrared converts varibles from plugin.spec to dict, there is some limitations
and following example won't work.

For example:
  example-key: value
  example-key-foo: value1
  example-key-bar: value2

Change-Id: I50ca550d225e52ba44b76a70b1db1c34088b77d9
This commit is contained in:
Ruslan Usichenko 2018-08-01 12:07:24 +03:00
parent 0228961c2a
commit aa2e40eb25
2 changed files with 6 additions and 6 deletions

View File

@ -30,15 +30,15 @@
- name: Set upgrade workload disk size
set_fact:
workload_disk: "{{ install.upgrade.workload.disk }}"
workload_disk: "{{ install.upgrade.workloaddisk }}"
- name: Set upgrade workload vcpus
set_fact:
workload_vcpu: "{{ install.upgrade.workload.vcpu }}"
workload_vcpu: "{{ install.upgrade.workloadvcpu }}"
- name: Set upgrade workload swap
set_fact:
workload_swap: "{{ install.upgrade.workload.swap }}"
workload_swap: "{{ install.upgrade.workloadswap }}"
- name: Set upgrade workload post_composable_upgrade launch
set_fact:

View File

@ -60,17 +60,17 @@ subparsers:
help: |
User used for conecting to workload instance via SSH
default: cirros
upgrade-workload-disk:
upgrade-workloaddisk:
type: Value
help: |
Disk size assigned to the instance spawned before upgrade
default: 5
upgrade-workload-vcpu:
upgrade-workloadvcpu:
type: Value
help: |
Amount of vcpus assigned to the instance spawned before upgrade
default: 1
upgrade-workload-swap:
upgrade-workloadswap:
type: Value
help: |
Swap size assigned to the instance spawned before upgrade