nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.3k stars 132 forks source link

Feat suggestion: Show progress in ops image create #1602

Open 0xdoggo opened 7 months ago

0xdoggo commented 7 months ago

I have problem create new image with DO, it often hangs even I see the new image has been created on DO spaces, and images being shown as pending.

Update: It's not hang, it works just fine after looking at the code I understand what it does. I think we should output progress to terminal.

Suggestions: I think we can have simple progress bar showing if it's uploading and changing to finish. For now it's empty.

0xdoggo commented 7 months ago

I use nightly version and it seems to be much faster.

eyberg commented 7 months ago

DO can be slow if you are uploading a large image/volume,

right now looks like a fairly naive poll here: https://github.com/nanovms/ops/blob/master/provider/digitalocean/digital_ocean_image.go#L67-L73 - if DO's api has changed since this has been written we might be able to change how this works

0xdoggo commented 7 months ago

I have my node working, very interesting piece of software. Btw, what is the place to do random discussion? I would like to ask, that 2 in a row, my node on DO runs for about 9 hours, and it's just dead. What is the flow to troubleshoot and fix this kind of problem? Can we download the dead image and check what's going on? Thanks

eyberg commented 7 months ago

you can discuss non-feature/non-bug stuff on the discussions tab or we do have https://forums.nanovms.com/ as well which I think we'd prefer

as for your particular issue with the '9 hours and its dead' - we're going to need some more information on what you're running into; is the instance still up? if so you can drop into the serial console and take a screenshot or copy/paste what you see there and if it's a kernel issue you'd probably see something; if the instance actually powered off then yes you can download the image and run it locally - if it crashed there might be a crash log inside of it that we can look at too; regardless of whether you have stuff from serial or not we're going to need something that can reproduce what you're seeing but first I'd check there

0xdoggo commented 7 months ago

https://forums.nanovms.com/t/troubleshoot-dead-instance-on-do/43 let's continue here