Fix plugin and examples for using openstacksdk
These appear to have been missed in: https://review.openstack.org/572829 Change-Id: I5c008c369b3789c3ae79ce89726194ab715767a9
This commit is contained in:
parent
4dc1bff6ee
commit
bade82d446
@ -67,7 +67,6 @@
|
|||||||
required-projects:
|
required-projects:
|
||||||
- openstack-infra/glean
|
- openstack-infra/glean
|
||||||
- openstack-infra/nodepool
|
- openstack-infra/nodepool
|
||||||
- openstack-infra/shade
|
|
||||||
- openstack/diskimage-builder
|
- openstack/diskimage-builder
|
||||||
- openstack/openstacksdk
|
- openstack/openstacksdk
|
||||||
|
|
||||||
|
@ -20,24 +20,6 @@ NODEPOOL_PUBKEY=$HOME/.ssh/id_nodepool.pub
|
|||||||
NODEPOOL_INSTALL=$HOME/nodepool-venv
|
NODEPOOL_INSTALL=$HOME/nodepool-venv
|
||||||
NODEPOOL_CACHE_GET_PIP=/opt/stack/cache/files/get-pip.py
|
NODEPOOL_CACHE_GET_PIP=/opt/stack/cache/files/get-pip.py
|
||||||
|
|
||||||
# Install shade from git if requested. If not requested
|
|
||||||
# nodepool install will pull it in.
|
|
||||||
function install_shade {
|
|
||||||
if use_library_from_git "shade"; then
|
|
||||||
GITREPO["shade"]=$SHADE_REPO_URL
|
|
||||||
GITDIR["shade"]=$DEST/shade
|
|
||||||
GITBRANCH["shade"]=$SHADE_REPO_REF
|
|
||||||
git_clone_by_name "shade"
|
|
||||||
# Install shade globally, because the job config has LIBS_FROM_GIT
|
|
||||||
# and if we don't install it globally, all hell breaks loose
|
|
||||||
setup_dev_lib "shade"
|
|
||||||
# BUT - install shade into a virtualenv so that we don't have issues
|
|
||||||
# with OpenStack constraints affecting the shade dependency install.
|
|
||||||
# This particularly shows up with os-client-config
|
|
||||||
$NODEPOOL_INSTALL/bin/pip install $DEST/shade
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_diskimage_builder {
|
function install_diskimage_builder {
|
||||||
if use_library_from_git "diskimage-builder"; then
|
if use_library_from_git "diskimage-builder"; then
|
||||||
GITREPO["diskimage-builder"]=$DISKIMAGE_BUILDER_REPO_URL
|
GITREPO["diskimage-builder"]=$DISKIMAGE_BUILDER_REPO_URL
|
||||||
@ -65,7 +47,6 @@ function install_glean {
|
|||||||
function install_nodepool {
|
function install_nodepool {
|
||||||
VENV="virtualenv -p python3"
|
VENV="virtualenv -p python3"
|
||||||
$VENV $NODEPOOL_INSTALL
|
$VENV $NODEPOOL_INSTALL
|
||||||
install_shade
|
|
||||||
install_diskimage_builder
|
install_diskimage_builder
|
||||||
install_glean
|
install_glean
|
||||||
|
|
||||||
@ -127,7 +108,7 @@ function nodepool_write_config {
|
|||||||
keys=simple
|
keys=simple
|
||||||
|
|
||||||
[loggers]
|
[loggers]
|
||||||
keys=root,nodepool,shade,kazoo,keystoneauth,novaclient
|
keys=root,nodepool,openstack,kazoo,keystoneauth,novaclient
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys=console
|
keys=console
|
||||||
@ -142,10 +123,10 @@ handlers=console
|
|||||||
qualname=nodepool
|
qualname=nodepool
|
||||||
propagate=0
|
propagate=0
|
||||||
|
|
||||||
[logger_shade]
|
[logger_openstack]
|
||||||
level=DEBUG
|
level=DEBUG
|
||||||
handlers=console
|
handlers=console
|
||||||
qualname=shade
|
qualname=openstack
|
||||||
propagate=0
|
propagate=0
|
||||||
|
|
||||||
[logger_keystoneauth]
|
[logger_keystoneauth]
|
||||||
|
@ -17,9 +17,6 @@ NODEPOOL_PAUSE_OPENSUSE_150_DIB=${NODEPOOL_PAUSE_OPENSUSE_150_DIB:-true}
|
|||||||
NODEPOOL_PAUSE_OPENSUSE_TUMBLEWEED_DIB=${NODEPOOL_PAUSE_OPENSUSE_TUMBLEWEED_DIB:-true}
|
NODEPOOL_PAUSE_OPENSUSE_TUMBLEWEED_DIB=${NODEPOOL_PAUSE_OPENSUSE_TUMBLEWEED_DIB:-true}
|
||||||
NODEPOOL_PAUSE_GENTOO_17_0_SYSTEMD_DIB=${NODEPOOL_PAUSE_GENTOO_17_0_SYSTEMD_DIB:-true}
|
NODEPOOL_PAUSE_GENTOO_17_0_SYSTEMD_DIB=${NODEPOOL_PAUSE_GENTOO_17_0_SYSTEMD_DIB:-true}
|
||||||
|
|
||||||
SHADE_REPO_URL=${SHADE_REPO_URL:-https://git.openstack.org/openstack-infra/shade}
|
|
||||||
SHADE_REPO_REF=${SHADE_REPO_REF:-master}
|
|
||||||
|
|
||||||
DISKIMAGE_BUILDER_REPO_URL=${DISKIMAGE_BUILDER_REPO_URL:-https://git.openstack.org/openstack/diskimage-builder}
|
DISKIMAGE_BUILDER_REPO_URL=${DISKIMAGE_BUILDER_REPO_URL:-https://git.openstack.org/openstack/diskimage-builder}
|
||||||
DISKIMAGE_BUILDER_REPO_REF=${DISKIMAGE_BUILDER_REPO_REF:-master}
|
DISKIMAGE_BUILDER_REPO_REF=${DISKIMAGE_BUILDER_REPO_REF:-master}
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ class OpenStackProvider(Provider):
|
|||||||
# - v2 w/task waiting is very strange and complex - but we have to
|
# - v2 w/task waiting is very strange and complex - but we have to
|
||||||
# block for our v1 clouds anyway, so we might as well
|
# block for our v1 clouds anyway, so we might as well
|
||||||
# have the interface be the same and treat faking-out
|
# have the interface be the same and treat faking-out
|
||||||
# a shade-level fake-async interface later
|
# a openstacksdk-level fake-async interface later
|
||||||
if not meta:
|
if not meta:
|
||||||
meta = {}
|
meta = {}
|
||||||
if image_type:
|
if image_type:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
keys=simple
|
keys=simple
|
||||||
|
|
||||||
[loggers]
|
[loggers]
|
||||||
keys=root,nodepool,shade
|
keys=root,nodepool,openstack
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys=console
|
keys=console
|
||||||
@ -17,10 +17,10 @@ handlers=console
|
|||||||
qualname=nodepool
|
qualname=nodepool
|
||||||
propagate=0
|
propagate=0
|
||||||
|
|
||||||
[logger_shade]
|
[logger_openstack]
|
||||||
level=DEBUG
|
level=DEBUG
|
||||||
handlers=console
|
handlers=console
|
||||||
qualname=shade
|
qualname=openstack
|
||||||
propagate=0
|
propagate=0
|
||||||
|
|
||||||
[handler_console]
|
[handler_console]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[loggers]
|
[loggers]
|
||||||
keys=root,nodepool,requests,shade
|
keys=root,nodepool,requests,openstack
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys=console,normal
|
keys=console,normal
|
||||||
@ -16,10 +16,10 @@ level=WARNING
|
|||||||
handlers=normal
|
handlers=normal
|
||||||
qualname=requests
|
qualname=requests
|
||||||
|
|
||||||
[logger_shade]
|
[logger_openstack]
|
||||||
level=WARNING
|
level=WARNING
|
||||||
handlers=normal
|
handlers=normal
|
||||||
qualname=shade
|
qualname=openstack
|
||||||
|
|
||||||
[logger_gear]
|
[logger_gear]
|
||||||
level=DEBUG
|
level=DEBUG
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[loggers]
|
[loggers]
|
||||||
keys=root,nodepool,requests,shade
|
keys=root,nodepool,requests,openstack
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys=console,normal
|
keys=console,normal
|
||||||
@ -16,10 +16,10 @@ level=WARNING
|
|||||||
handlers=normal
|
handlers=normal
|
||||||
qualname=requests
|
qualname=requests
|
||||||
|
|
||||||
[logger_shade]
|
[logger_openstack]
|
||||||
level=WARNING
|
level=WARNING
|
||||||
handlers=normal
|
handlers=normal
|
||||||
qualname=shade
|
qualname=openstack
|
||||||
|
|
||||||
[logger_gear]
|
[logger_gear]
|
||||||
level=DEBUG
|
level=DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user