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

Do not raise exception if can't get PV free space #755

Merged

Conversation

vojtechtrefny
Copy link
Member

Also use the cached PV info instead of running pvinfo again.

Related: rhbz#1676718


The main reason for this change is to fix anaconda crash on systems with a cluster VG. pvs on these systems won't show information about the "cluster" PV, but we still know it is a PV from udev (because it has lvmpv signature) and we are trying to get additional information about. I think it should be safe to just set free to 0 (the PV is not really usable) and log error.

Also use the cached PV info instead of running pvinfo again.

Related: rhbz#1676718
Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@vojtechtrefny vojtechtrefny merged commit a410512 into storaged-project:3.1-devel Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants