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

stratis: negative value as missing disc space, when tryint to do snapshot of FS. #20357

Open
jscotka opened this issue Apr 23, 2024 · 2 comments
Labels

Comments

@jscotka
Copy link
Contributor

jscotka commented Apr 23, 2024

Explain what happens

I've just randomly tested stratis feature and try to just play with various features and my steps caused that I've seen negative integer in part where I've expect just unsigned int.

  1. created some local loopback devices
  2. created stratis pool with 2 discs
  3. created few random FSs (in my case 4, some of them mounted) and ezhaoust all space of pool
  4. try to create fs snapshot.
  5. it show that you are unabel to do do snapshot. what is expected, but error is that there is negative number of space, what is bad and does not really probably show the problem, at least I've expected positive integer not negative value.

Screenshot from 2024-04-23 15-19-26
Screenshot from 2024-04-23 15-19-35

Version of Cockpit

311.1-1.el9

Where is the problem in Cockpit?

Storage

Server operating system

Red Hat Enterprise Linux

Server operating system version

9.4

What browsers are you using?

Firefox

System log

No response

@jscotka jscotka added the bug label Apr 23, 2024
@jscotka
Copy link
Contributor Author

jscotka commented Apr 23, 2024

just randomly added another disc to pool, and now number there seems more senseful

There is not enough space in the pool to make a snapshot of this filesystem. At least 142 GB are required but only 105 GB are available.

So seems the issue is just in case there is zero space maybe

@jscotka
Copy link
Contributor Author

jscotka commented Apr 23, 2024

as @mvollmer mentioned probably some rounding issue with subtracting 1MIB somewhere in the code. I'll inspect it later on.

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

No branches or pull requests

1 participant