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
cephfs: implement getMetadataPool() with go-ceph #1578
Conversation
e34c60d
to
055c75b
Compare
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
055c75b
to
219c37d
Compare
/retest ci/centos/upgrade-tests-cephfs |
219c37d
to
e012394
Compare
/retest ci/centos/upgrade-tests-cephfs |
|
if err != nil { | ||
util.ErrorLog(ctx, "could not list filesystems, can not fetch metadata pool for %s:", vo.FsName, err) | ||
return "", err |
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.
@nixpanic dont we have to defer fsa
here?
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.
no, there is no destructor for FSAdmin
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.
oh..ok .. its good to have.. We dont have to leave the connection behind.
e012394
to
2d00777
Compare
/retest ci/centos/mini-e2e-helm/k8s-1.19.2 |
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Fixes: ceph#1554 Signed-off-by: Niels de Vos <ndevos@redhat.com>
golang-ci suddenly complains about the following issue internal/cephfs/util.go:41:1: directive `// nolint:unparam // todo:program values has to be revisited later` is unused for linter unparam (nolintlint) // nolint:unparam // todo:program values has to be revisited later ^ Dropping the comment completely seems to fix it. Ideally execCommandJSON() will get removed once the migration to go-ceph is complete. Signed-off-by: Niels de Vos <ndevos@redhat.com>
2d00777
to
9a7e4c7
Compare
/retest ci/centos/mini-e2e-helm/k8s-1.18.9 |
/retest ci/centos/upgrade-tests-rbd |
Reduce the number of
ceph fs
command executions, and use go-ceph with a cached/shared connection.Fixes: #1554
Do-Not-Merge: depends on #1545, #1581 and #1577, which need to get merged first