Skip to content
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

mimic: ceph-volume: make lvm batch idempotent #24588

Merged
merged 23 commits into from
Oct 24, 2018
Merged

Conversation

andrewschoen
Copy link
Contributor

backport of #24404

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 619810c)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 3dae324)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 9d49a37)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 48d10c9)
This will indicate if the command would result in any OSDs being created
or not. Other tooling can use that key for idempotency checks.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 10f1d57)
This will pick a strategy, filter out any devices already been used by
ceph and then pick a strategy again. If the strategy has changed the
call should error, if the strategy is the same proceed. If there are no
unused devices then the command is a noop.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 4529f2d)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 0718d2e)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 6751253)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 3639622)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit a28e653)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 9752d03)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 9dfc00f)
This also fixes some small json reporting issues with the
filestore MixedType strategy

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 1dd1502)
If we fail to load a ceph configureation file when trying to get the
block.db size then just use defaults instead of throwing an error.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit a7ee36c)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit b3cf906)
The mixed type tests will change strategy after the idempotency test so
we need to handle that in test playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 1143482)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 3b6d82a)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 62426db)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 7f6bfaa)
If after filterering of data/block devices there are only
one device left it can not be used if it is an SSD and
has been used previously as a journal or block.db

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit fc9a10e)
Even if all devices are filtered we want to return a 0 exit code and
make sure the json reporting still works.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit aa4fcd6)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 172d4af)
This allows us to easily provide tests for that method.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit df7ef53)
@alfredodeza
Copy link
Contributor

jenkins test ceph-volume lvm

@alfredodeza
Copy link
Contributor

jenkins test ceph-volume batch

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume batch all

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume lvm all

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume tox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants