Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayobe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kayobe
Commits
3037361c
Commit
3037361c
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Test nova server (VM) boot in overcloud job"
parents
f7320aa5
0ec7edff
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dev/functions
+21
-0
21 additions, 0 deletions
dev/functions
dev/overcloud-test.sh
+16
-0
16 additions, 0 deletions
dev/overcloud-test.sh
playbooks/kayobe-overcloud-base/run.yml
+5
-0
5 additions, 0 deletions
playbooks/kayobe-overcloud-base/run.yml
with
42 additions
and
0 deletions
dev/functions
+
21
−
0
View file @
3037361c
...
@@ -215,3 +215,24 @@ function overcloud_deploy {
...
@@ -215,3 +215,24 @@ function overcloud_deploy {
echo
"Control plane deployment complete"
echo
"Control plane deployment complete"
}
}
function
overcloud_test
{
# Perform a simple smoke test against the cloud.
echo
"Performing a simple smoke test"
environment_setup
pip
install
python-openstackclient
echo
"Running kolla-ansible init-runonce"
source
"
${
KOLLA_CONFIG_PATH
:-
/etc/kolla
}
/admin-openrc.sh"
${
KOLLA_VENV_PATH
:-
$HOME
/kolla-venv
}
/share/kolla-ansible/init-runonce
echo
"Creating a VM"
openstack server create
--wait
--image
cirros
--flavor
m1.tiny
--key-name
mykey
--network
demo-net demo1
openstack server show demo1
# TODO(mgoddard): Test SSH connectivity to the VM.
echo
"Deleting the VM"
openstack server delete
--wait
demo1
}
This diff is collapsed.
Click to expand it.
dev/overcloud-test.sh
0 → 100755
+
16
−
0
View file @
3037361c
#!/bin/bash
set
-eu
set
-o
pipefail
PARENT
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
source
"
${
PARENT
}
/functions"
function
main
{
config_init
overcloud_test
}
main
This diff is collapsed.
Click to expand it.
playbooks/kayobe-overcloud-base/run.yml
+
5
−
0
View file @
3037361c
...
@@ -8,3 +8,8 @@
...
@@ -8,3 +8,8 @@
shell
:
shell
:
cmd
:
dev/overcloud-deploy.sh > {{ logs_dir }}/ansible/overcloud-deploy
cmd
:
dev/overcloud-deploy.sh > {{ logs_dir }}/ansible/overcloud-deploy
chdir
:
"
{{
kayobe_src_dir
}}"
chdir
:
"
{{
kayobe_src_dir
}}"
-
name
:
Perform testing of the overcloud
shell
:
cmd
:
dev/overcloud-test.sh > {{ logs_dir }}/ansible/overcloud-test
chdir
:
"
{{
kayobe_src_dir
}}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment