Add dotted progress bar to Cloudmin command outputs

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

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.

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.

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.

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.

Wait, are you doing all this via the UI, or the CLI? Because we don't print progress dots ever for CLI operations..

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.

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?

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.

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.