We're preparing the upgrade to GitLab 10! Preview the new UI: http://cern.ch/go/8stB

Commit 9df8c4f7 by Jose Castro Leon

fixes on avz and metadata

parent d518c417
......@@ -12,7 +12,8 @@ restore_clone_snapshot:
- date
- clone_name
- flavor: null
- avz_zone: null
- avz_name: null
- meta: null
- pattern: "{0}_snapshot_{1}"
- wait: false
- to_addr_success: null
......@@ -35,9 +36,9 @@ restore_clone_snapshot:
description: 'Checks if there is an availability zone with the name specified as parameter'
action: nova.availability_zones_list detailed=false
publish:
avz_zone: <% task(check_availability_zone).result.where($.zoneName = execution().input.avz_zone).first().zoneName %>
avz_name: <% switch($.avz_name = null => null, $.avz_name != null => $.result.where($.zoneName = execution().input.avz_name).first().zoneName) %>
publish-on-error:
avz_zone: null
avz_name: null
on-success:
check_server
on-error:
......@@ -84,8 +85,8 @@ restore_clone_snapshot:
name: <% $.clone_name %>
image: <% task(get_image_snapshot).published.snapshot.id %>
flavor: <% coalesce($.flavor, task(check_server).published.server.flavor.id) %>
meta: <% task(check_server).published.server.metadata %>
availability_zone: <% coalesce($.avz_zone, task(check_server).published.server.get('OS-EXT-AZ:availability_zone')) %>
meta: <% coalesce($.meta, task(check_server).published.server.metadata).delete('landb-alias') %>
availability_zone: <% coalesce(task(check_availability_zone).published.avz_name, task(check_server).published.server.get('OS-EXT-AZ:availability_zone')) %>
publish:
clone_id: <% task(create_boot_from_image_instance).result.id %>
on-success:
......@@ -146,8 +147,8 @@ restore_clone_snapshot:
name: <% $.clone_name %>
image: null
flavor: <% coalesce($.flavor, task(check_server).published.server.flavor.id) %>
meta: <% task(check_server).published.server.metadata %>
availability_zone: <% coalesce($.avz_zone, task(check_server).published.server.get('OS-EXT-AZ:availability_zone')) %>
meta: <% coalesce($.meta, task(check_server).published.server.metadata).delete('landb-alias') %>
availability_zone: <% coalesce(task(check_availability_zone).published.avz_name, task(check_server).published.server.get('OS-EXT-AZ:availability_zone')) %>
block_device_mapping_v2:
-
boot_index: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment