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
nautilus: ceph-volume: report correct rejected reason in inventory if device type is invalid #36453
Conversation
jenkins test ceph-volume tox |
1 similar comment
jenkins test ceph-volume tox |
The following failure in unit tests is persistent -
|
I could successfully reproduce these test failures locally too. |
Simplify the logic and fix a typo. Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com> (cherry picked from commit 0169b72)
… is not acceptable If device type is not acceptable in `c-v inventory`, its rejected reason becomes "Insufficient space (<5GB)" by mistake. It's because sys_api is empty due to skipping devices that are neither `disk` nor `device`. We should report the target device is not acceptable in this case. Fixes: https://tracker.ceph.com/issues/46102 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com> (cherry picked from commit 3e5d91d)
4d00374
to
210ad89
Compare
jenkins test ceph-volume tox |
jenkins test make check |
The failing tests where doe to tests we no longer carry after nautilus. So they never got fixed in master. They are CephDisk related and not needed because of this. Fix was easy however and tests pass now. @rishabh-d-dave @guits care to review? |
jenkins test make check |
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.
Looks good
backport tracker: https://tracker.ceph.com/issues/46113
backport of #35190
parent tracker: https://tracker.ceph.com/issues/46102
this backport was staged using ceph-backport.sh version 15.1.1.389
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh