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-volume allow filtering by uuid
, do not require osd id
#17606
Conversation
uuid
, do not require osd id
jenkins test ceph-volume tox |
jenkins test ceph-volume centos7-create |
jenkins test ceph-volume xenial-create |
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.
Just the small note about the unneeded comment, everything else looks good.
vg_tags = "ceph.group=dmcache,ceph.disk_type=ssd" | ||
osd = api.VolumeGroup(vg_name='volume1', vg_path='/dev/vg/lv', vg_tags=vg_tags) | ||
volume_groups.append(osd) | ||
# note the different osd_id! |
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 don't think this comment is needed here.
jenkins test ceph-volume xenial-create |
jenkins test ceph-volume centos7-create |
jenkins test ceph-volume xenial-create |
jenkins test ceph-volume centos7-create |
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
0877c2e
to
ace3018
Compare
jenkins test ceph-volume xenial-create |
jenkins test ceph-volume centos7-create |
1 similar comment
jenkins test ceph-volume centos7-create |
jenkins test ceph-volume xenial-create |
c2224fd
to
ecd5af8
Compare
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
…just one Signed-off-by: Alfredo Deza <adeza@redhat.com>
This updates our Vagrantfile to match the changes in ceph-ansible introduced by ceph/ceph-ansible@298a63c43 Signed-off-by: Andrew Schoen <aschoen@redhat.com>
When the osd ID existed in the UUID in the same format (e.g. '1-') the parsing would break returning a bogus UUID that is impossible to find Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Alfredo Deza <adeza@redhat.com>
When creating an OSD, it should suffice using/requiring the OSD fsid (uuid), these changes will enable that ability.
While implementing that and writing new tests, it was clear that all the
.filter()
calls with lvm tags where matching on any one tag, vs. matching all the tags that were passed on.This would cause (internally) filtering volumes by
ceph.type=journal, ceph.osd_id=1
would return more than one volume ifjournal
was matched (regardless of the id).Fixes for that issue meant fixing them for Volume Group and Physical Volume APIs too. Tests where added for those.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1478598