From 07b8dd7b67b94bc32e74228ae81731b1e5a8cee3 Mon Sep 17 00:00:00 2001 From: Bjoern Teipel Date: Mon, 2 Apr 2018 11:32:20 -0500 Subject: [PATCH] Adding shebang for rpc-o-support scripts Also renaming router.py to neutron_router.py --- playbooks/files/rpc-o-support/fix-backing-image.py | 3 ++- playbooks/files/rpc-o-support/healthcheck.py | 2 ++ playbooks/files/rpc-o-support/image_check.py | 11 ++++++----- playbooks/files/rpc-o-support/maas-cloud-token.py | 2 +- .../rpc-o-support/{router.py => neutron_router.py} | 2 ++ requirements.txt | 1 + 6 files changed, 14 insertions(+), 7 deletions(-) mode change 100644 => 100755 playbooks/files/rpc-o-support/fix-backing-image.py mode change 100644 => 100755 playbooks/files/rpc-o-support/healthcheck.py mode change 100644 => 100755 playbooks/files/rpc-o-support/image_check.py rename playbooks/files/rpc-o-support/{router.py => neutron_router.py} (99%) mode change 100644 => 100755 diff --git a/playbooks/files/rpc-o-support/fix-backing-image.py b/playbooks/files/rpc-o-support/fix-backing-image.py old mode 100644 new mode 100755 index 381dade..34f520c --- a/playbooks/files/rpc-o-support/fix-backing-image.py +++ b/playbooks/files/rpc-o-support/fix-backing-image.py @@ -1,4 +1,5 @@ -#!/bin/env python +#!/usr/bin/env python2 + ''' ============================================================================================ Script used to fix the issue of having running instances whose glance image was deleted. diff --git a/playbooks/files/rpc-o-support/healthcheck.py b/playbooks/files/rpc-o-support/healthcheck.py old mode 100644 new mode 100755 index add2b5a..78a7863 --- a/playbooks/files/rpc-o-support/healthcheck.py +++ b/playbooks/files/rpc-o-support/healthcheck.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 + from __future__ import print_function import os import sys diff --git a/playbooks/files/rpc-o-support/image_check.py b/playbooks/files/rpc-o-support/image_check.py old mode 100644 new mode 100755 index ceb20b7..77651d1 --- a/playbooks/files/rpc-o-support/image_check.py +++ b/playbooks/files/rpc-o-support/image_check.py @@ -1,10 +1,11 @@ -=============================================================== -Used to get the status of all images in an environment. To get all the details try: +#!/usr/bin/env python2 -python image_check.py --verbose --all -=============================================================== +#=============================================================== +#Used to get the status of all images in an environment. To get all the details try: +# +#python image_check.py --verbose --all +#=============================================================== -#!/bin/env python import argparse import MySQLdb import ConfigParser diff --git a/playbooks/files/rpc-o-support/maas-cloud-token.py b/playbooks/files/rpc-o-support/maas-cloud-token.py index c9b72dc..0dc8e3a 100755 --- a/playbooks/files/rpc-o-support/maas-cloud-token.py +++ b/playbooks/files/rpc-o-support/maas-cloud-token.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import getpass import json import requests diff --git a/playbooks/files/rpc-o-support/router.py b/playbooks/files/rpc-o-support/neutron_router.py old mode 100644 new mode 100755 similarity index 99% rename from playbooks/files/rpc-o-support/router.py rename to playbooks/files/rpc-o-support/neutron_router.py index f7fde87..36a3751 --- a/playbooks/files/rpc-o-support/router.py +++ b/playbooks/files/rpc-o-support/neutron_router.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 + from __future__ import print_function import os import sys diff --git a/requirements.txt b/requirements.txt index f211d65..715a97d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ ansible>=1.9.1,<3.0.0 os-client-config #shade Removed until dependencies issues resolve with upstream requirements python-openstackclient +paramiko