From 6bd23dbbbaa3554f5fb0d6a8928c0b01eb4b7c39 Mon Sep 17 00:00:00 2001 From: Tom Patzig Date: Mon, 30 May 2016 21:21:48 +0200 Subject: [PATCH] Fixed syntax in share_networks example comment The comment shows how to use manila_share_networks context in tasks. The syntax in this example for the project-share_network mapping was wrong. This patch fixes the syntax of the share_network mapping example and shows where to be placed inside of 'context'. Change-Id: I6e58be0598790e87f087d20128f764f9efb7efef Closes-Bug: #1587164 --- .../context/manila/manila_share_networks.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rally/plugins/openstack/context/manila/manila_share_networks.py b/rally/plugins/openstack/context/manila/manila_share_networks.py index 71459f41..766961ab 100644 --- a/rally/plugins/openstack/context/manila/manila_share_networks.py +++ b/rally/plugins/openstack/context/manila/manila_share_networks.py @@ -47,11 +47,16 @@ class ManilaShareNetworks(context.Context): # users. # Expected value is dict of lists where tenant Name or ID is key # and list of share_network Names or IDs is value. Example: - # share_networks = [ - # {"tenant_1_name_or_id": ["share_network_1_name_or_id", - # "share_network_2_name_or_id"]}, - # {"tenant_2_name_or_id": ["share_network_3_name_or_id"]} - # ] + # "context": { + # "manila_share_networks": { + # "use_share_networks": true, + # "share_networks": { + # "tenant_1_name_or_id": ["share_network_1_name_or_id", + # "share_network_2_name_or_id"], + # "tenant_2_name_or_id": ["share_network_3_name_or_id"] + # } + # } + # } # Also, make sure that all 'existing users' in appropriate # registered deployment have share networks if its usage is # enabled, else Rally will randomly take users that does not