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
31cb4ff3
Commit
31cb4ff3
authored
5 years ago
by
Zuul
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Improve diagnostics for seed jobs"
parents
0707e2c5
70556c8e
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
roles/kayobe-diagnostics/files/get_logs.sh
+17
-0
17 additions, 0 deletions
roles/kayobe-diagnostics/files/get_logs.sh
with
17 additions
and
0 deletions
roles/kayobe-diagnostics/files/get_logs.sh
+
17
−
0
View file @
31cb4ff3
...
...
@@ -72,6 +72,23 @@ copy_logs() {
docker logs
--tail
all
${
container
}
>
${
LOG_DIR
}
/docker_logs/
${
container
}
.txt
done
# Bifrost: grab config files and logs from the container.
if
[[
$(
docker ps
-q
-f
name
=
bifrost_deploy
)
]]
;
then
for
service
in
dnsmasq ironic-api ironic-conductor ironic-inspector mariadb nginx rabbitmq-server
;
do
mkdir
-p
${
LOG_DIR
}
/kolla/
$service
docker
exec
bifrost_deploy
\
systemctl status
$service
-l
-n
10000
>
${
LOG_DIR
}
/kolla/
$service
/
${
service
}
-systemd-status
.txt
docker
exec
bifrost_deploy
\
journalctl
-u
$service
--no-pager
>
${
LOG_DIR
}
/kolla/
$service
/
${
service
}
-journal
.txt
done
docker
exec
-it
bifrost_deploy
\
journalctl
--no-pager
>
${
LOG_DIR
}
/kolla/bifrost-journal.log
for
d
in
dnsmasq.conf ironic ironic-inspector nginx/nginx.conf
;
do
docker
cp
bifrost_deploy:/etc/
$d
${
LOG_DIR
}
/kolla_node_configs/bifrost/
done
docker
cp
bifrost_deploy:/var/log/mariadb/mariadb.log
${
LOG_DIR
}
/kolla/mariadb/
fi
# Rename files to .txt; this is so that when displayed via
# logs.openstack.org clicking results in the browser shows the
# files, rather than trying to send it to another app or make you
...
...
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