From 9512f7cabad8cb1d7aaee22efe018c6539148dc2 Mon Sep 17 00:00:00 2001 From: liyin Date: Wed, 11 Jan 2017 19:10:57 +0800 Subject: Bottlenecks stack environment prepare JIRA: BOTTLENECK-124 This code is for Bottlenecks to have a common way to prepare stack environment. those action are divided into three part: fetch os file, source file and adding ext-net to source file. those function also need change other file like fetch_os_creds.sh. And add some config to config file. remove parser file logging function. This code is relying on the patch: Modify utils/ code into PEP8 style Change-Id: I54405776b6dc3f5fb939e511c96963a9c1624938 Signed-off-by: liyin --- utils/infra_setup/heat/manager.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/infra_setup/heat') diff --git a/utils/infra_setup/heat/manager.py b/utils/infra_setup/heat/manager.py index 3a270ac1..5c181ae6 100644 --- a/utils/infra_setup/heat/manager.py +++ b/utils/infra_setup/heat/manager.py @@ -11,6 +11,7 @@ import time import common as op_utils from glanceclient.client import Client as GlanceClient from novaclient.client import Client as NovaClient +from neutronclient.v2_0.client import Client as NeutronClient def _get_glance_client(): @@ -28,6 +29,12 @@ def _get_nova_client(): session=sess) +def _get_neutron_client(): + sess = op_utils.get_session() + neutron_client = NeutronClient(session=sess) + return neutron_client + + def stack_create_images( imagefile=None, image_name="bottlenecks_image"): -- cgit 1.2.3-korg