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

intended internal disk update fails #1623

Open
phillxnet opened this issue Jan 23, 2017 · 5 comments
Open

intended internal disk update fails #1623

phillxnet opened this issue Jan 23, 2017 · 5 comments
Labels

Comments

@phillxnet
Copy link
Member

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:

Exception while updating disk state: 'PoolDetailView' object has no attribute '_update_disk_state'

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."

MFlyer added a commit to MFlyer/rockstor-core that referenced this issue Jan 29, 2017
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
MFlyer added a commit to MFlyer/rockstor-core that referenced this issue Jan 29, 2017
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
@phillxnet
Copy link
Member Author

phillxnet commented Feb 11, 2017

@MFlyer I take it the two commits associated with this issue are in error?
EDIT:
OK, just worked it out: you have "23" rather than the intended 32

@MFlyer
Copy link
Member

MFlyer commented Feb 11, 2017

@phillxnet yup!

@phillxnet
Copy link
Member Author

@MFlyer No worries. I was just surprised to see them

MFlyer added a commit to MFlyer/rockstor-core that referenced this issue Feb 13, 2017
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
MFlyer added a commit to MFlyer/rockstor-core that referenced this issue Feb 13, 2017
Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
@schakrava schakrava added the bug label Mar 24, 2017
@schakrava schakrava added this to the Point Bonita milestone Mar 24, 2017
@schakrava schakrava modified the milestones: After Six, Point Bonita Aug 28, 2017
@phillxnet
Copy link
Member Author

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
which contains a number of simplifications on disk scanning and consequent pool info propagation mechanisms.

@phillxnet
Copy link
Member Author

Now we have the previously referenced pr merged:

"pool resize disk removal unknown internal error and no UI counterpart. Fixes #1722" #2010

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

@phillxnet phillxnet removed this from the After Six milestone Jan 23, 2021
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

3 participants