Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Kolla Ansible
Commits
968534cf
Commit
968534cf
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "[CI] Drop the workaround in Masakari client calls"
parents
9a326951
c0ba63ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-masakari.sh
+3
-8
3 additions, 8 deletions
tests/test-masakari.sh
with
3 additions
and
8 deletions
tests/test-masakari.sh
+
3
−
8
View file @
968534cf
...
@@ -8,17 +8,12 @@ set -o pipefail
...
@@ -8,17 +8,12 @@ set -o pipefail
export
PYTHONUNBUFFERED
=
1
export
PYTHONUNBUFFERED
=
1
function
test_masakari_logged
{
function
test_masakari_logged
{
# Source OpenStack credentials
# Source OpenStack credentials
.
/etc/kolla/admin-openrc.sh
.
/etc/kolla/admin-openrc.sh
# Activate virtualenv to access Masakari client
# Activate virtualenv to access Masakari client
.
~/openstackclient-venv/bin/activate
.
~/openstackclient-venv/bin/activate
# NOTE:(gtrellu) Masakari client/API has a bug which generate a mismatch
# between what the client send and what the API should received.
CLIENT_OPTS
=
"--os-ha-api-version 1.0"
# Get the first Nova compute
# Get the first Nova compute
if
!
HYPERVISOR
=
$(
openstack hypervisor list
-f
value
-c
'Hypervisor Hostname'
|
head
-n1
)
;
then
if
!
HYPERVISOR
=
$(
openstack hypervisor list
-f
value
-c
'Hypervisor Hostname'
|
head
-n1
)
;
then
echo
"Unable to get Nova hypervisor list"
echo
"Unable to get Nova hypervisor list"
...
@@ -26,19 +21,19 @@ function test_masakari_logged {
...
@@ -26,19 +21,19 @@ function test_masakari_logged {
fi
fi
# Create Masakari segment
# Create Masakari segment
if
!
openstack
$CLIENT_OPTS
segment create test_segment auto COMPUTE
;
then
if
!
openstack segment create test_segment auto COMPUTE
;
then
echo
"Unable to create Masakari segment"
echo
"Unable to create Masakari segment"
return
1
return
1
fi
fi
# Add Nova compute to Masakari segment
# Add Nova compute to Masakari segment
if
!
openstack
$CLIENT_OPTS
segment host create
$HYPERVISOR
COMPUTE SSH test_segment
;
then
if
!
openstack segment host create
$HYPERVISOR
COMPUTE SSH test_segment
;
then
echo
"Unable to add Nova hypervisor to Masakari segment"
echo
"Unable to add Nova hypervisor to Masakari segment"
return
1
return
1
fi
fi
# Delete Masakari segment
# Delete Masakari segment
if
!
openstack
$CLIENT_OPTS
segment delete test_segment
;
then
if
!
openstack segment delete test_segment
;
then
echo
"Unable to delete Masakari segment"
echo
"Unable to delete Masakari segment"
return
1
return
1
fi
fi
...
...
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