-
Notifications
You must be signed in to change notification settings - Fork 929
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
Optionally create entities for cephfs
storage pool
#12538
Conversation
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
548e384
to
5ad0de8
Compare
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.
A few minor code style changes and improvements to error handling.
@tomponline I'll put a pause on this until I've sorted out your comments which apply to the |
@masnax any news on progress for this one? |
There's a lot of usages of |
yes please |
a193c00
to
e6e3df6
Compare
Adds a helper to find osd pools, and updates the fs lookup helper to differentiate between exit codes from ceph. Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
e6e3df6
to
3431f6c
Compare
@tomponline OK this has now been updated with the following:
|
0647572
to
58cf5c6
Compare
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.
LGTM thanks!
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.
Tests failing
lxc storage delete cephfs2
+ set +x
+ timeout --foreground 120 /home/runner/go/bin/lxc storage delete cephfs2 --verbose
Storage pool cephfs2 deleted
+ ceph fs fail cephfs
Error ENOENT: Filesystem not found: 'cephfs'
+ cleanup
+ set +ex
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
58cf5c6
to
f80d9d8
Compare
f80d9d8
to
6f1f858
Compare
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
6f1f858
to
9e0e0af
Compare
Adds the config keys:
cephfs.create_missing
cephfs.osd_pg_num
create_missing
. If unset, will default to 32.cephfs.meta_pool
cephfs.data_pool
create_missing
. If these OSD pools already exist, then they will be re-used, otherwise they will be created.If any of the above keys are set but the
fs
already exists, then the creation will error out.