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
4ada6219
Commit
4ada6219
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add some additional debug to gate"
parents
8c4a2ee7
8c5cd011
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/setup_gate.sh
+21
-0
21 additions, 0 deletions
tests/setup_gate.sh
with
21 additions
and
0 deletions
tests/setup_gate.sh
+
21
−
0
View file @
4ada6219
...
@@ -8,6 +8,25 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then
...
@@ -8,6 +8,25 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then
echo
"jenkins ALL=(:docker) NOPASSWD: ALL"
|
sudo tee
/etc/sudoers.d/jenkins
echo
"jenkins ALL=(:docker) NOPASSWD: ALL"
|
sudo tee
/etc/sudoers.d/jenkins
fi
fi
function
dump_node_info
{
# NOTE(SamYaple): function for debugging gate
set
+o errexit
local
OLD_PATH
=
"
${
PATH
}
"
PATH
=
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
sudo
parted
-l
sudo
mount
df
-h
uname
-a
cat
/etc/
*
release
*
PATH
=
"
${
OLD_PATH
}
"
set
-o
errexit
}
function
detect_disk
{
function
detect_disk
{
# TODO(SamYaple): This check could be much better, but should work for now
# TODO(SamYaple): This check could be much better, but should work for now
if
[[
$(
hostname
|
grep
rax
)
]]
;
then
if
[[
$(
hostname
|
grep
rax
)
]]
;
then
...
@@ -96,7 +115,9 @@ function setup_logging {
...
@@ -96,7 +115,9 @@ function setup_logging {
}
}
setup_logging
setup_logging
(
dump_node_info 2>&1
)
>
/tmp/logs/node_info_first
setup_ssh
setup_ssh
setup_ansible
setup_ansible
setup_node
setup_node
setup_config
setup_config
(
dump_node_info 2>&1
)
>
/tmp/logs/node_info_last
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