cloudfoundry / cf-for-k8s

The open source deployment manifest for Cloud Foundry on Kubernetes
Apache License 2.0
300 stars 115 forks source link

Log output from run-task are not printed in cf app logs #424

Open Syerram opened 4 years ago

Syerram commented 4 years ago

Describe the bug

Currently, log output from cf run-task are not printed in cf logs APP_NAME

To Reproduce*

Steps to reproduce the behavior:

  1. Push an app
  2. Run cf run-task APP_NAME --command "echo "LISTING" && pwd" --name test-run
  3. Run cf tasks APP_NAME and wait till it is finished
  4. Run `cf logs APP_NAME --recent | grep "LISTING"
  5. None found

Expected behavior

cf logs should print LISTING in its output.

Additional context

The logging team created a corresponding issue in logging repo.

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/174714409

The labels on this github issue will be updated when the story is started.

jamespollard8 commented 4 years ago

I believe this is captured by the logging team's issue here: https://github.com/cloudfoundry/cf-k8s-logging/issues/35