-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ceph] add iSCSI gateway #3099
[ceph] add iSCSI gateway #3099
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
As not knowing
Thanks anybody from @jcastill , @asm0deuz, @nkshirsagar for such review. |
sos/report/plugins/ceph_iscsi.py
Outdated
self.add_copy_spec( | ||
[ | ||
"/etc/tcmu/tcmu.conf", | ||
"/var/log/ceph/ceph-client.iscsi.log", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In updating some of the other ceph plugins, I've found that the /var/log
locations have changed in newer versions (16+) of ceph. Most include the fsid, e.g. /var/log/ceph/
to /var/log/ceph/fsid/
.
Can we double check to make sure we're able to collect this log file from both newer and older versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dug into this but I'm not sure I'm following. Indeed, there is a particular path conversion with fsid in bind mount with cephadm
, but from a process point of view the path is just /var/log/ceph
, e.g. /var/log/ceph/ceph-osd.0.log
. So not sure if that's the case for non-cephadm deployments.
docker inspect ceph-894b217c-8b2c-11ed-829c-930768227c30-iscsi-iscsi-cephadm-onylll | jq '.[].Mounts | .[] | select(.Destination=="/var/log")'
{
"Type": "bind",
"Source": "/var/log/ceph/894b217c-8b2c-11ed-829c-930768227c30",
"Destination": "/var/log",
"Mode": "z",
"RW": true,
"Propagation": "rprivate"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the collections needs to happen in a container, then you need to specify the container in the add_copy_spec()
/add_cmd_output()
calls with the container
parameter (either the container name or the ID).
Having the containers listed in the containers
tuple just enables the plugin to run. As written, these collections would still happen directly on the host - so to copy them from the host you would need to use /var/log/ceph/*/ceph-client.iscsi.log
or similar.
According to the manual installation guide for RHEL/CentOS, the package name and the two service names are common between Ubuntu and RHEL.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
Merge pending confirmation on if the collections are meant to be from the container or the host. If the host location is volume-mounted into the container, slight preference from me to copy from the host but it is not a required pattern.
The intention was to detect containers and collect logs on the host instead of from inside a container. I wasn't aware #3092 was coming so assumed that the existing code base didn't expect So this PR can be merged for package based and ceph-ansible based deployments. For accommodating both existing deployments and cephadm, I'd like to wait for a conclusion in #3100 so Ceph iSCSI plugin can be updated as well later. |
Per the discussion in #3100 - let's update this to use |
sos/report/plugins/ceph_iscsi.py
Outdated
def setup(self): | ||
self.add_copy_spec([ | ||
"/etc/tcmu/tcmu.conf", | ||
"/var/log/ceph/ceph-client.iscsi.log", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cycling back around on this. I think we just need this to be /var/log/ceph/**/ceph-client.iscsi.log
and this one will be good to merge.
Along with existing Ceph plugins, Ceph iSCSI gateway use case requires additional config and log files to be analyzed. https://docs.ceph.com/en/latest/rbd/iscsi-overview/ Closes: sosreport#3098 Related-Bug: https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/2000672 Signed-off-by: Nobuto Murata <nobuto.murata@canonical.com>
Along with existing Ceph plugins, Ceph iSCSI gateway use case requires additional config and log files to be analyzed.
https://docs.ceph.com/en/latest/rbd/iscsi-overview/
Closes: #3098
Related-Bug: https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/2000672
Signed-off-by: Nobuto Murata nobuto.murata@canonical.com
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines