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
3d7f15fa
Commit
3d7f15fa
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "CI: display VM console log on ping or SSH failure"
parents
a7c3a9d6
25ae0be2
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
dev/functions
+3
-1
3 additions, 1 deletion
dev/functions
with
3 additions
and
1 deletion
dev/functions
+
3
−
1
View file @
3d7f15fa
...
@@ -517,12 +517,14 @@ function overcloud_test {
...
@@ -517,12 +517,14 @@ function overcloud_test {
openstack server add floating ip
${
name
}
${
ip
}
openstack server add floating ip
${
name
}
${
ip
}
fi
fi
echo
"
$name
: Waiting for ping and SSH access via
${
ip
}
"
echo
"
$name
: Waiting for ping and SSH access via
${
ip
}
"
attempts
=
6
attempts
=
12
for
i
in
$(
seq
1
$attempts
)
;
do
for
i
in
$(
seq
1
$attempts
)
;
do
if
ping
-c1
-W1
$ip
&&
ssh
-v
-o
StrictHostKeyChecking
=
no
-o
BatchMode
=
yes
cirros@
$ip
hostname
;
then
if
ping
-c1
-W1
$ip
&&
ssh
-v
-o
StrictHostKeyChecking
=
no
-o
BatchMode
=
yes
cirros@
$ip
hostname
;
then
break
break
elif
[[
$i
-eq
$attempts
]]
;
then
elif
[[
$i
-eq
$attempts
]]
;
then
echo
"Failed to access server
$name
via SSH after
$attempts
attempts"
echo
"Failed to access server
$name
via SSH after
$attempts
attempts"
echo
"Console log:"
openstack console log show
${
name
}
return
1
return
1
else
else
echo
"Cannot access server
$name
- retrying"
echo
"Cannot access server
$name
- retrying"
...
...
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