Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for stratos buildpack verbose logging #4039

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Add support for stratos buildpack verbose logging #4039

merged 1 commit into from
Dec 4, 2019

Conversation

gberche-orange
Copy link
Contributor

@gberche-orange gberche-orange commented Dec 3, 2019

Description

Add support for stratos buildpack verbose logging in manifest to troubleshoot failed staging (e.g. network proxy errors)

Depends on cloudfoundry/stratos-buildpack#4

Motivation and Context

Missing traces during staging

   Stratos Buildpack
	
   -----> Stack cflinuxfs3
   -----> Download go 1.12.4
   Failed to compile droplet: Failed to compile droplet: exit status 56
   Exit status 223

with traces

   ++ echo '-----> Download go 1.12.4'
   ++ curl -s -L --retry 15 --retry-delay 2 https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz -o /tmp/cache/final/Downloads/go1.12.4.tar.gz
   Failed to compile droplet: Failed to compile droplet: exit status 56

How Has This Been Tested?

Manually tested

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Docs update
  • New feature (non-breaking change which adds functionality during CF-based deployment)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have followed the guidelines in CONTRIBUTING.md, including the required formatting of the commit message

@codecov-io
Copy link

Codecov Report

Merging #4039 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4039   +/-   ##
=======================================
  Coverage   52.21%   52.21%           
=======================================
  Files         868      868           
  Lines       29250    29250           
  Branches     4297     4297           
=======================================
  Hits        15272    15272           
  Misses      13978    13978

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nwmac nwmac merged commit bf3f4c5 into cloudfoundry:master Dec 4, 2019
nwmac pushed a commit that referenced this pull request Dec 4, 2019
* Follow redirect - needed for repo move

* Update metric used for cells (#4009)

- `firehose_value_metric_rep_unhealthy_cell` deprecated, now use `firehose_value_metric_rep_garden_health_check_failed`
- Try new metric first and fall back on old

* Fix incorrect SSO behaviour following 2.4.0 --> 2.6.0 upgrade (#4015)

- affects db migration of console config table to new config table
- fixes #4013

* 2.6.1 Release preparation

* Ingress fix (#4024)

* Fixes ingress and kube 1.16 version issue

* Update Changelog

* More test

* Fix ingress tests

* Mention STRATOS_BP_DEBUG to troubleshoot staging (#4039)

* Fix following merge
nwmac added a commit that referenced this pull request Jan 6, 2020
* Follow redirect - needed for repo move

* Update metric used for cells (#4009)

- `firehose_value_metric_rep_unhealthy_cell` deprecated, now use `firehose_value_metric_rep_garden_health_check_failed`
- Try new metric first and fall back on old

* Fix incorrect SSO behaviour following 2.4.0 --> 2.6.0 upgrade (#4015)

- affects db migration of console config table to new config table
- fixes #4013

* 2.6.1 Release preparation

* Ingress fix (#4024)

* Fixes ingress and kube 1.16 version issue

* Update Changelog

* More test

* Fix ingress tests

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Mention STRATOS_BP_DEBUG to troubleshoot staging (#4039)

* Backend changs to support long-running requests

* Fix create service instance from service instance page

* Fix unit tests

* Ensure service plans are sorted by display name
- sometimes these are fetched inline which aren't sorted

* Fix helm chart issue with semver (#4046)

* Handle Long Running Service Instance Operations
- Some brokers take a long time to execute create, update and delete service instance operations
- This time exceeded the amount allowed by browser/jetstream
- We now provide a custom response to the front end when this happens
- Front end then handles this and also shows a custom error message

* Fixes post merge

* Changes and tidy up post review
- Use a common way to get a service name, service link, broker name
- Split out cf specific long running functionality
- Show service as a link in app service instance card
- Show service plan and broker in app service instance card
- Update the service instance entity on Update as well as Delete
  (will show a better 'last operation' value)

* Fixes post merge

* Fix failing unit tests

* Improvements to error/notification process
- Show mini error message, as per create, when updating service instance
- Handle all 5XX status codes as errors
- Update messages to reflect varience of error states
- Show single popover message on error dismiss all button
- Correct error page selector

* Treat calls to multiple endpoints as `global`
- calls where we generate the endpoint lists (app wall, etc) were handled badly by jetstreamErrorHandler
- this was due to the internal event storing endpoint id as `` instead of one per endpoint
- this happened due to the list of generated endpoints being applied directly to request object in lower function
- treat these as global for the moment

* More fixes

* Fix failing e2e test

* Show last operation and service broker info for service instances (#4038)

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Fix create service instance from service instance page

* Fix unit tests

* Fix failing e2e test

* Fix bad merge

* Fix failing tests

Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Guillaume Berche <guillaume.berche@orange.com>
nwmac added a commit that referenced this pull request Jan 7, 2020
* Follow redirect - needed for repo move

* Update metric used for cells (#4009)

- `firehose_value_metric_rep_unhealthy_cell` deprecated, now use `firehose_value_metric_rep_garden_health_check_failed`
- Try new metric first and fall back on old

* Fix incorrect SSO behaviour following 2.4.0 --> 2.6.0 upgrade (#4015)

- affects db migration of console config table to new config table
- fixes #4013

* 2.6.1 Release preparation

* Ingress fix (#4024)

* Fixes ingress and kube 1.16 version issue

* Update Changelog

* More test

* Fix ingress tests

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Mention STRATOS_BP_DEBUG to troubleshoot staging (#4039)

* Backend changs to support long-running requests

* Fix create service instance from service instance page

* Fix unit tests

* Ensure service plans are sorted by display name
- sometimes these are fetched inline which aren't sorted

* Fix helm chart issue with semver (#4046)

* Handle Long Running Service Instance Operations
- Some brokers take a long time to execute create, update and delete service instance operations
- This time exceeded the amount allowed by browser/jetstream
- We now provide a custom response to the front end when this happens
- Front end then handles this and also shows a custom error message

* Fixes post merge

* Changes and tidy up post review
- Use a common way to get a service name, service link, broker name
- Split out cf specific long running functionality
- Show service as a link in app service instance card
- Show service plan and broker in app service instance card
- Update the service instance entity on Update as well as Delete
  (will show a better 'last operation' value)

* Fixes post merge

* Fix failing unit tests

* Improvements to error/notification process
- Show mini error message, as per create, when updating service instance
- Handle all 5XX status codes as errors
- Update messages to reflect varience of error states
- Show single popover message on error dismiss all button
- Correct error page selector

* Treat calls to multiple endpoints as `global`
- calls where we generate the endpoint lists (app wall, etc) were handled badly by jetstreamErrorHandler
- this was due to the internal event storing endpoint id as `` instead of one per endpoint
- this happened due to the list of generated endpoints being applied directly to request object in lower function
- treat these as global for the moment

* More fixes

* Fix failing e2e test

* Add table view to marketplace service table

* Show last operation and service broker info for service instances (#4038)

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Fix create service instance from service instance page

* Fix unit tests

* Fix failing e2e test

* Fix unit tests

* Fix bad merge

* Fix unit tests

* Fix e2e tests

* Fix removal of `cf` column when there's only one connected cf

Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Guillaume Berche <guillaume.berche@orange.com>
nwmac added a commit that referenced this pull request Jan 24, 2020
* Follow redirect - needed for repo move

* Update metric used for cells (#4009)

- `firehose_value_metric_rep_unhealthy_cell` deprecated, now use `firehose_value_metric_rep_garden_health_check_failed`
- Try new metric first and fall back on old

* Fix incorrect SSO behaviour following 2.4.0 --> 2.6.0 upgrade (#4015)

- affects db migration of console config table to new config table
- fixes #4013

* 2.6.1 Release preparation

* Ingress fix (#4024)

* Fixes ingress and kube 1.16 version issue

* Update Changelog

* More test

* Fix ingress tests

* Mention STRATOS_BP_DEBUG to troubleshoot staging (#4039)

* Backend changs to support long-running requests

* Fix helm chart issue with semver (#4046)

* Show last operation and service broker info for service instances (#4038)

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Fix create service instance from service instance page

* Fix unit tests

* Fix failing e2e test

* Fix chrome driver version (#4078)

* Fix long running service actions (#4049)

* Show more service instance last operation details

* Show service instance service broker

* Handle last operation & broker in table view

* Show the service broker name in the service list service card

* Fix create service instance from service instance page

* Fix unit tests

* Ensure service plans are sorted by display name
- sometimes these are fetched inline which aren't sorted

* Handle Long Running Service Instance Operations
- Some brokers take a long time to execute create, update and delete service instance operations
- This time exceeded the amount allowed by browser/jetstream
- We now provide a custom response to the front end when this happens
- Front end then handles this and also shows a custom error message

* Changes and tidy up post review
- Use a common way to get a service name, service link, broker name
- Split out cf specific long running functionality
- Show service as a link in app service instance card
- Show service plan and broker in app service instance card
- Update the service instance entity on Update as well as Delete
  (will show a better 'last operation' value)

* Fix failing unit tests

* Fix failing e2e test

* Fix bad merge

* Fixes following merge

* Fix table cell active/bindable icons

* Remove incorrectly merged file

* Fix message for long running delete service instance

* Fix service market place list bug where user provided services didn't show

* Remove dupe file

Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Guillaume Berche <guillaume.berche@orange.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants