Open sangee2004 opened 1 year ago
Hi @sangee2004 , can you please re-evaluate this? I can't seem to replicate what you're seeing here.
@iwilltry42 This issue seems to specific to this 1 image that has lot of tags. If i leave the command to run long enough, it times out
acorn run -n mytestnew docker.io/sangeetha/myfirstacorn:v#.#.#
✗ ERROR: Timeout: request did not complete within requested timeout - context deadline exceeded
Oh okay, now I understand the problem.
At this point (https://github.com/acorn-io/runtime/blob/7eff4103aae28775565453ee0dd97f19fae8e09d/pkg/cli/run.go#L290) we're ending up with a call to ImageDetails
, which will try to resolve the auto-upgrade pattern and (since the pattern probably includes a lot of tags, we'll evaluate the IARs a lot of times, leading to significant overhead in processing.
I don't know what's the timeout for all of this, since I couldn't find a place where we're explicitly setting this though.
The only solutions for this I can think of right now are:
@ibuildthecloud I know you love this stuff just as much as me - what do you think?
As per Slack, the decision is to use the timeout error to display a nicer error message. This can be considered an "expected issue" when using auto-upgrade with lots of recent "bad tags".
acorn version - v0.8.0-13-gab9787b8+ab9787b8
Steps to reproduce the problem:
acorn install --features image-allow-rules=true
acorn run -n mytestnew docker.io/sangeetha/myfirstacorn:v#.#.#
Command never returns and on force quitting we see the following error message: