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
f8e1b8f4
Commit
f8e1b8f4
authored
2 years ago
by
Michal Nasiadka
Browse files
Options
Downloads
Patches
Plain Diff
CI: cephadm: copy cephadm log
Change-Id: I186651e2ad05a76a606444ee673b73e171456312
parent
59002ded
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/get_logs.sh
+8
-5
8 additions, 5 deletions
tests/get_logs.sh
with
8 additions
and
5 deletions
tests/get_logs.sh
+
8
−
5
View file @
f8e1b8f4
...
...
@@ -88,11 +88,14 @@ copy_logs() {
dbus-send
--system
--print-reply
--dest
=
org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames
>
${
LOG_DIR
}
/system_logs/dbus-services.txt
# cephadm related logs
mkdir
-p
${
LOG_DIR
}
/ceph
sudo cp
/etc/ceph/ceph.conf
${
LOG_DIR
}
/ceph
sudo cp
/var/run/ceph/
*
/cluster.yml
${
LOG_DIR
}
/ceph/cluster.yml
sudo
cephadm shell
--
ceph
--connect-timeout
5
-s
>
${
LOG_DIR
}
/ceph/ceph_s.txt
sudo
cephadm shell
--
ceph
--connect-timeout
5 osd tree
>
${
LOG_DIR
}
/ceph/ceph_osd_tree.txt
if
[
`
command
-v
cephadm
`
]
;
then
mkdir
-p
${
LOG_DIR
}
/ceph
sudo cp
/etc/ceph/ceph.conf
${
LOG_DIR
}
/ceph
sudo cp
/var/run/ceph/
*
/cluster.yml
${
LOG_DIR
}
/ceph/cluster.yml
sudo cp
/var/log/ceph/cephadm.log
*
${
LOG_DIR
}
/ceph/
sudo
cephadm shell
--
ceph
--connect-timeout
5
-s
>
${
LOG_DIR
}
/ceph/ceph_s.txt
sudo
cephadm shell
--
ceph
--connect-timeout
5 osd tree
>
${
LOG_DIR
}
/ceph/ceph_osd_tree.txt
fi
# bifrost related logs
if
[[
$(
docker ps
--filter
name
=
bifrost_deploy
--format
"{{.Names}}"
)
]]
;
then
...
...
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