-
Notifications
You must be signed in to change notification settings - Fork 138
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
intended internal disk update fails #1623
Comments
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
@MFlyer I take it the two commits associated with this issue are in error? |
@phillxnet yup! |
@MFlyer No worries. I was just surprised to see them |
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
Thanks to @FroggyFlox for re-highlighting this issue's potential relevance in our pool mount state update slackness, ie 2 Web-UI updates required to display Pool status changes. I.e. bottom up pool info informed by disk state (pool wise) that is not first updated. Need further research as we move towards simplifying our pool update strategy such as is approached in currently pending pr: "pool resize disk removal unknown internal error and no UI counterpart. Fixes #1722" #2010 |
Now we have the previously referenced pr merged:
We can again look to addressing this usability bug. It may be we can make progress via auspicious use of: Model.refresh_from_db (introduced in Django version 1.8). Taking care that we don't undo the performance enhancements that we have gained from #1722 |
The user consequence here is that a refresh of the disk page is required after some disk/pool operations to ensure the information displayed is correct:
the code in question stopped working as intended as from the following commit:
89d018b
which was part of the reviewed pr:
#1436
however that commit / pr does simplify our objects and addressed the stated issues and may help to divide concerns and removed a large inheritance for a single method call: so I suspect the fix is not to simply add back this inheritance.
But a viable mechanism to enact a disk status update is required to take the place of that call.
I have added a TODO: in the following commit to highlight this current bug:
b025e21
So the requirement is:
"How do we best call / trigger DiskMixin._update_disk_state() from within pool.py given the new lack of inheritance therein."
The text was updated successfully, but these errors were encountered: