Add KMIP Experiment Check to Barbican

Barbican currently supports a plugin architecture for secret stores.
One such secret store implementation is the KMIP secret store. There
are no checks in place at the moment to test the functionality of
Barbican with this plugin.

This patch creates a new Jenkins job to test Barbican with the KMIP
secret store plugin. The end effect will be running all of Barbican's
functional tests using a KMIP secret store plugin. This change enables
the PyKMIP server to run as part of the devstack setup.

The tests can only be run on the latest code. The older stable
branches for kilo, liberty, and mitaka are not supported because the
necessary devstack plugin code is not backported to those branches.
The KMIP secret store job is experimental for now until tests verify
the correct operation.

Change-Id: I3fc6abe6f34bcb31c9ea01bfd7c7ccfd22b28bcc
Depends-On: Ib804fa97545f14ed866bfd73bb251e85923a2e4e
This commit is contained in:
Nathan Reller
2016-04-19 09:25:54 -04:00
parent 739565ba85
commit 5e96f15c42
3 changed files with 31 additions and 52 deletions

View File

@@ -78,9 +78,9 @@
- devstack-logs
- console-log
- job:
name: gate-barbican-devstack-dsvm
node: ubuntu-trusty
- job-template:
name: 'gate-barbican-{plugin}-devstack-dsvm'
node: '{node}'
wrappers:
- build-timeout:
@@ -94,59 +94,20 @@
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export ENABLED_SERVICES=tempest,keystone
export ENABLED_SERVICES='{services}'
export PROJECTS="openstack/barbican $PROJECTS"
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
function gate_hook {
function gate_hook {{
$BASE/new/barbican/devstack/gate_hook.sh
}
}}
export -f gate_hook
function post_test_hook {
function post_test_hook {{
cd /opt/stack/new/barbican/functionaltests
./post_test_hook.sh
}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job:
name: gate-barbican-dogtag-devstack-dsvm-f23
node: 'fedora-23'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export ENABLED_SERVICES=barbican-dogtag,tempest,keystone
export PROJECTS="openstack/barbican $PROJECTS"
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
function gate_hook {
$BASE/new/barbican/devstack/gate_hook.sh
}
export -f gate_hook
function post_test_hook {
cd /opt/stack/new/barbican/functionaltests
./post_test_hook.sh
}
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh

View File

@@ -284,6 +284,18 @@
- translation-jobs
- openstack-publish-jobs
- openstack-releasenotes-jobs
- 'gate-barbican-{plugin}-devstack-dsvm':
plugin: simple-crypto
node: ubuntu-trusty
services: tempest,keystone
- 'gate-barbican-{plugin}-devstack-dsvm':
plugin: dogtag
node: fedora-23
services: barbican-dogtag,tempest,keystone
- 'gate-barbican-{plugin}-devstack-dsvm':
plugin: kmip
node: ubuntu-trusty
services: barbican-pykmip,pykmip-server,tempest,keystone
- api-guide-jobs:
service: key-manager

View File

@@ -1927,13 +1927,13 @@ jobs:
- name: gate-barbican-python34
branch: ^(?!stable/kilo).*$
- name: gate-barbican-devstack-dsvm
- name: gate-barbican-simple-crypto-devstack-dsvm
branch: ^(?!stable/kilo).*$
- name: gate-barbican-devstack-dsvm-oldstable
branch: ^stable/kilo$
- name: gate-barbican-dogtag-devstack-dsvm-f23
- name: gate-barbican-dogtag-devstack-dsvm
voting: false
branch: ^(?!stable/kilo).*$
@@ -1941,6 +1941,10 @@ jobs:
voting: false
branch: ^stable/kilo$
- name: gate-barbican-kmip-devstack-dsvm
voting: false
branch: ^(?!stable/(?:kilo|liberty|mitaka)).*$
- name: gate-designate-python34-db
branch: ^(?!stable/(?:kilo|liberty)).*$
@@ -4667,13 +4671,15 @@ projects:
- name: check-requirements
- name: api-guide-jobs
check:
- gate-barbican-devstack-dsvm
- gate-barbican-simple-crypto-devstack-dsvm
- gate-barbican-devstack-dsvm-oldstable
- barbican-coverage
- gate-barbican-dogtag-devstack-dsvm-f23
- gate-barbican-dogtag-devstack-dsvm
- gate-barbican-dogtag-devstack-dsvm-f23-oldstable
experimental:
- gate-barbican-kmip-devstack-dsvm
gate:
- gate-barbican-devstack-dsvm
- gate-barbican-simple-crypto-devstack-dsvm
- gate-barbican-devstack-dsvm-oldstable
- name: openstack/barbican-specs