feat: Add support for fetching cephfs mirroring status and lists to replication framework#601
Conversation
b664a39 to
ae53214
Compare
6731721 to
cb556db
Compare
cb556db to
2fa806d
Compare
Signed-off-by: utkarsh bhatt <utkarsh.bhatt@canonical.com>
2fa806d to
14e0ed9
Compare
Signed-off-by: utkarsh bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
70788e7 to
60d24de
Compare
sabaini
left a comment
There was a problem hiding this comment.
Hey hey, first run through with some comments / requests -- thanks @UtkarshBhatthere
Before we can merge we'd also need unit tests for this
| } | ||
|
|
||
| full_sock_path := filepath.Join(run_path, socket.Name()) | ||
| err = CheckFsMirrorHelperCommands(full_sock_path) |
There was a problem hiding this comment.
Hm, probing the admin sockets feels brittle -- upstream could change cmd output eg. Also it's relatively heavy in terms of resource usage. Would relying on the socket name pattern ceph-client.cephfs-mirror.{hostname}.asok work? I feel that's a relatively stable convention
There was a problem hiding this comment.
So there is an inconsistency there that cephfs-mirror daemon creates random named socket files each time, it is also not cleaned so they keep on growing....
There was a problem hiding this comment.
There was a problem hiding this comment.
i will modify this to find the most recently created socket.
There was a problem hiding this comment.
so apparently the most recent one is not a sure shot solution. We still end up iterating over a bunch of them.
There was a problem hiding this comment.
Ack, if we end up needing to do the probe dance let's go with that for now lacking a better solution. Aiui upstream does plan to provide support for cli commands what don't need the admin socket access is that right? If so would be good to leave a TODO comment so we can revisit this once this support lands.
There was a problem hiding this comment.
ack, will add a todo for the same.
There was a problem hiding this comment.
Hm, did you add that TODO comment?
cf8a64a to
72e6bcf
Compare
sabaini
left a comment
There was a problem hiding this comment.
Hey @UtkarshBhatthere lgtm in general, only thing missing is that TODO comment :-)
| } | ||
|
|
||
| full_sock_path := filepath.Join(run_path, socket.Name()) | ||
| err = CheckFsMirrorHelperCommands(full_sock_path) |
There was a problem hiding this comment.
Hm, did you add that TODO comment?
5457ad2 to
01a94a1
Compare
This patch is merged in squid and expected to land in the 19.2.4 point release. Thus it is being added a temporary patch to microceph repo. Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Added todo for future migration to ceph cli against the local admin sock available from cephfs-mirror daemon. Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
01a94a1 to
0dec2e2
Compare
Uh oh!
There was an error while loading. Please reload this page.