Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

--verbose mode forriff function create #623

Closed
ericbottard opened this issue Jul 25, 2018 · 4 comments
Closed

--verbose mode forriff function create #623

ericbottard opened this issue Jul 25, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@ericbottard
Copy link
Contributor

ericbottard commented Jul 25, 2018

From @jldec on July 23, 2018 14:6

Users should have observability during function builds, and error notification for riff function create.

I have already bumped up against this for two different situations

  1. misconfigured push secret (probably the most common gotcha making our quickstart not quick and not start)

  2. when network is not great kaniko will take 5 minutes or longer to upack the node invoker image layers - it does not use cached images.

proposed solution.

  • if --verbose is set, block return from riff function create...
  • lookup the init containers in the build pod
  • while each is busy, stream the logs for that container on stdout
  • bail out if one of the containers exits with error code
  • or finish with with happy success message.

I have been doing the above manually mostly for the build-and-push container which is where both the above issues will bite. E.g.

kubectl logs -f square-00001-hl5k4 -c build-step-build-and-push
@trisberg
Copy link
Member

unfortunately it takes for ever to pull the build creds-init and git-init images (they are ~2.4 GB) and therefore there could be no visual feedback for several minutes, should we add a loop adding dots to a waiting for image pull ... message while we are waiting for the actual build to start ...

@scothis
Copy link
Member

scothis commented Jul 30, 2018

The build image size is being tracked at knative/build#179. The image pull delay is annoying in GKE, it's intolerable in minikube.

@glyn glyn self-assigned this Aug 7, 2018
@jldec jldec added this to the 2 milestone Aug 7, 2018
@glyn
Copy link
Contributor

glyn commented Aug 8, 2018

Implementation notes

  • See kubectl's logging code
  • See slack discussion
  • Note that the build may be "off cluster" in which case we won't be able to tail the build logs.
  • Unless knctl moves to knative, proceed independently.
  • Currently prototyping reusing public internals (thanks Go!) of kail.

@glyn glyn added the riff-cli label Aug 8, 2018
@jldec jldec mentioned this issue Aug 9, 2018
9 tasks
@glyn
Copy link
Contributor

glyn commented Aug 10, 2018

Feedback from @jldec:

i was expecting just build container logs - not sure if including autoscaler and other sidecars is quite right

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants