Submitted by yngens on Tue, 09/16/2014 - 17:39
Sometimes starting up or shutting down guest systems take little bit long time depending on networks, hardware, etc. Even longer takes expanding hard drives with "cloudmin" CLI command. And unfortunately, it only shows (in this example) only two dots after the first line output and then waits till the process finished and suddenly spits out all the rest part:
Shutting down KVM system 000.host.net ..
.. shutdown successfull
Refreshing status of 000.host.net ..
.. new status is : down (Down)
I suggest to make this as Virtualmin process (some time ago you accepted my request for adding more dots while waiting) to make it like progress bar:
Shutting down KVM system 000.host.net .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. .............. ..............
.. shutdown successfull
Refreshing status of 000.host.net ..
.. new status is : down (Down)
By the way there is a typo in "successfull", it should be with one "l" in the end.
Thanks!
Status:
Active
Comments
Submitted by JamieCameron on Tue, 09/16/2014 - 23:45 Comment #1
Actually, long-running commands in Cloudmin already do print status dots. Shutting down a VM should be pretty fast .. if not, that seems like a separate problem.
Submitted by yngens on Wed, 09/17/2014 - 02:14 Comment #2
I see that, my bad I used shutting down command as an example. In our setup starting up takes longer time. But if not difficult to implement would be nice to see progressing dots on any operation of any length. If it is then nevermind, this request has no effect on efficiency, just about aestethics maybe.
Submitted by JamieCameron on Wed, 09/17/2014 - 11:52 Comment #3
This should already be the case - operations that are known to be slow (like resizing a disk or creating a VM) should have dots printed during the operation.
Submitted by yngens on Wed, 09/17/2014 - 21:34 Comment #4
Ok then, I have another idea. Is it possible to make the outputs little bit more verbose and add the time length that took for each step to finish. I understand that in the beginning of the process we never know, but when it has been just finished, then we could easily add information about how long it took.
Submitted by JamieCameron on Wed, 09/17/2014 - 23:33 Comment #5
Wait, are you doing all this via the UI, or the CLI? Because we don't print progress dots ever for CLI operations..
Submitted by yngens on Thu, 09/18/2014 - 10:06 Comment #6
Both, but even UI only shows:
Shutting down host.domain.tld ..
.. system has been successfully shut down.
and believe me even on the powerful machine it takes little bit of while to shutdown the system, so would be really nice to simulate dot progress like in Virtualmin.
Submitted by yngens on Thu, 09/18/2014 - 19:32 Comment #7
Jamie,
Could you please comment on:
Ok then, I have another idea. Is it possible to make the outputs little bit more verbose and add the time length that took for each step to finish. I understand that in the beginning of the process we never know, but when it has been just finished, then we could easily add information about how long it took.
or should I file a separate request issue for this, because I do believe this would be really cool feature. It would be even cooler if Cloudmin users could customize progress outputs, probably through translation files. Wait, maybe this is already possible - is it possible to replace strings like
Shutting down KVM system [] ..
.. shutdown successfull
Refreshing status of [] ..
.. new status is : down (Down)
in translation files?
Submitted by JamieCameron on Thu, 09/18/2014 - 11:35 Comment #8
Adding the time per step isn't something we are likely to add, as there are so many operations in the Cloudmin code.
As for translations, you can already override all text that appears in the UI by creating an
/etc/webmin/server-manager/custom-lang
file. This has to be in the same format as/usr/libexec/webmin/server-manager/lang/en
, but only needs to contain the lines you want to override.Submitted by JamieCameron on Thu, 09/18/2014 - 14:57 Comment #9
Adding the time per step isn't something we are likely to add, as there are so many operations in the Cloudmin code.
As for translations, you can already override all text that appears in the UI by creating an
/etc/webmin/server-manager/custom-lang
file. This has to be in the same format as/usr/libexec/webmin/server-manager/lang/en
, but only needs to contain the lines you want to override.