Fix the tools directory files
For some reason .venv wouldn't install the pip packages. Fixed installation. Change-Id: I5a80c42976c9534290f278561dc2e23edd5a04a9
This commit is contained in:
parent
09c99dc02d
commit
83a3c784af
53
.gitignore
vendored
Normal file
53
.gitignore
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
*.py[cod]
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
*.egg
|
||||||
|
*.egg-info
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
eggs
|
||||||
|
parts
|
||||||
|
var
|
||||||
|
sdist
|
||||||
|
develop-eggs
|
||||||
|
.installed.cfg
|
||||||
|
lib
|
||||||
|
lib64
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
.coverage
|
||||||
|
.tox
|
||||||
|
nosetests.xml
|
||||||
|
.testrepository
|
||||||
|
.venv
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
|
||||||
|
# Mr Developer
|
||||||
|
.mr.developer.cfg
|
||||||
|
.project
|
||||||
|
.pydevproject
|
||||||
|
|
||||||
|
# Complexity
|
||||||
|
output/*.html
|
||||||
|
output/*/index.html
|
||||||
|
|
||||||
|
# Sphinx
|
||||||
|
doc/build
|
||||||
|
|
||||||
|
# pbr generates these
|
||||||
|
AUTHORS
|
||||||
|
ChangeLog
|
||||||
|
|
||||||
|
# Editors
|
||||||
|
*~
|
||||||
|
.*.swp
|
||||||
|
.*sw?
|
||||||
|
|
@ -9,4 +9,3 @@ namespace = oslo.db
|
|||||||
namespace = oslo.log
|
namespace = oslo.log
|
||||||
namespace = oslo.messaging
|
namespace = oslo.messaging
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
|
|
||||||
|
1
tools/gen-config
Normal file → Executable file
1
tools/gen-config
Normal file → Executable file
@ -1,4 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
oslo-config-generator --config-file=tools/config-generator.conf
|
oslo-config-generator --config-file=tools/config-generator.conf
|
||||||
|
|
||||||
|
@ -12,11 +12,10 @@
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import install_venv_common as install_venv
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import install_venv_common as install_venv
|
|
||||||
|
|
||||||
|
|
||||||
def print_help(venv, root):
|
def print_help(venv, root):
|
||||||
help = """
|
help = """
|
||||||
@ -25,7 +24,7 @@ def print_help(venv, root):
|
|||||||
Kingbird development uses virtualenv to track and manage Python
|
Kingbird development uses virtualenv to track and manage Python
|
||||||
dependencies while in development and testing.
|
dependencies while in development and testing.
|
||||||
|
|
||||||
To activate the Nova virtualenv for the extent of your current shell
|
To activate the Kingbird virtualenv for the extent of your current shell
|
||||||
session you can run:
|
session you can run:
|
||||||
|
|
||||||
$ source %s/bin/activate
|
$ source %s/bin/activate
|
||||||
@ -62,5 +61,6 @@ def main(argv):
|
|||||||
install.install_dependencies()
|
install.install_dependencies()
|
||||||
print_help(venv, root)
|
print_help(venv, root)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
7
tools/setup-service
Normal file → Executable file
7
tools/setup-service
Normal file → Executable file
@ -5,7 +5,7 @@ if [ $# -ne 2 ]; then
|
|||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PORT=8778
|
PORT=8118
|
||||||
HOST=$1 # Put your host IP here
|
HOST=$1 # Put your host IP here
|
||||||
SVC_PASSWD=$2
|
SVC_PASSWD=$2
|
||||||
|
|
||||||
@ -13,9 +13,9 @@ SERVICE_ID=$(openstack service show kingbird -f value -cid 2>/dev/null)
|
|||||||
if [[ -z $SERVICE_ID ]]; then
|
if [[ -z $SERVICE_ID ]]; then
|
||||||
SERVICE_ID=$(openstack service create \
|
SERVICE_ID=$(openstack service create \
|
||||||
--name kingbird \
|
--name kingbird \
|
||||||
--description 'Kingbird Service V1' \
|
--description 'Kingbird Service V1.0' \
|
||||||
-f value -cid \
|
-f value -cid \
|
||||||
synchronisation)
|
multisite)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $SERVICE_ID ]]; then
|
if [[ -z $SERVICE_ID ]]; then
|
||||||
@ -44,4 +44,3 @@ openstack role add \
|
|||||||
service \
|
service \
|
||||||
--user kingbird \
|
--user kingbird \
|
||||||
--project demo
|
--project demo
|
||||||
|
|
||||||
|
0
tools/with-env.sh → tools/with_venv.sh
Normal file → Executable file
0
tools/with-env.sh → tools/with_venv.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user