From 53e54af4512f19125c7bde452e3e291bb5be5b33 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 27 Aug 2018 11:38:46 -0700 Subject: [PATCH] Use python3 and modern ansible for launch node Update the launch node readme and script to use python3 on the new bridge node. There is no python2. Also update ansible to pull in python3 support. The version we had been using wasn't python3 happy. Change-Id: I6122160eb70eb6b5f299a8adb6478a9046ff1725 --- launch/README | 4 ++-- launch/launch-node.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/launch/README b/launch/README index 572daea128..fcdd46801f 100644 --- a/launch/README +++ b/launch/README @@ -16,9 +16,9 @@ Launching a node currently requires a different version of ansible than what is generally used on the puppetmaster. Set up a virtualenv:: - virtualenv -p python2 ~/launch-env/ + python3 /usr/lib/python3/dist-packages/virtualenv.py --python=python3 ~/launch-env . ~/launch-env/bin/activate - pip install ansible==2.1.1.0 shade + pip install ansible shade To launch a node in the OpenStack CI account (production servers):: diff --git a/launch/launch-node.py b/launch/launch-node.py index e6cbcc1a4c..c5b29ca0ac 100755 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Launch a new OpenStack project infrastructure node.