Not able to set Configure Logging Levels for Spring Boot apps for VMware Tanzu Application Services for VMs
search cancel

Not able to set Configure Logging Levels for Spring Boot apps for VMware Tanzu Application Services for VMs

book

Article ID: 298031

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Custom Logging Levels option for config-server service instance app is greyed out.
Looking at the App Logs:

2020-04-10T13:20:08.14+0200 [APP/PROC/WEB/0] OUT 2020-04-10 11:20:08.143 DEBUG 25 --- [nio-8080-exec-3] o.s.web.client.RestTemplate              : HTTP GET https://api.run-06.haas-59.###.#######.io/v2/apps/64bd3d83-4e8b-416c-8c24-12f896b67382/permissions

 

Cause

The Space containing the App doesn't have the logged in user role set to Space Developer or Manager. The above example is for a config-server app. However, it applies to any Spring Boot app.



Environment

Product Version: 2.7

Resolution

Add the user logged into Apps Manager as "Space Developer" or "Space Manager" role to the containing Space.

This example below provides the resolution for user01 as Space Developer to view the "Configure Logging Levels" for the config-server service app with GUID 90c5590a-f5be-45b2-8545-1b5380ee8b50:
# cf space-users p-spring-cloud-services 90c5590a-f5be-45b2-8545-1b5380ee8b50
Getting users in org p-spring-cloud-services / space 90c5590a-f5be-45b2-8545-1b5380ee8b50 as user01
SPACE MANAGER
  No SPACE MANAGER found
SPACE DEVELOPER
  scs-service-broker (client)
  user01
SPACE AUDITOR
  No SPACE AUDITOR found