Pivotal Knowledge Base

Follow

Pivotal Cloud Foundry® org-users and space-users does not show any output

Environment

  • Pivotal Cloud Foundry® 1.4.x

Symptom

After a space role for a user is set via 'cf set-org-role' command, the 'cf space-users'  does not display the users designated to that space.

Looking at the logs via 'cf cli', we see the following errors:

-> jdoe-home:~ jdoe$ cf create-user jdoe-test jdoe-test
Creating user jdoe-test as admin...
OK

TIP: Assign roles with 'cf set-org-role' and 'cf set-space-role'

jdoe-home:~ jdoe$
jdoe-home:~ jdoe$ cf set-org-role jdoe-test app OrgManager
Assigning role OrgManager to user jdoe-test in org app as admin...
OK
jdoe-home:~ jdoe$ cf org-users app
Getting users in org app as admin...

ORG MANAGER

BILLING MANAGER

ORG AUDITOR

jdoe-home:~ jdoe$ cf set-space-role jdoe-test app development SpaceManager
Assigning role SpaceManager to user jdoe-test in org app / space development as admin...
OK
jdoe-home:~ jdoe$
jdoe-home:~ jdoe$ cf space-users app development
Getting users in org app / space development as admin

SPACE MANAGER

SPACE DEVELOPER

SPACE AUDITOR

Cause
This issue is due to incompatibility with specific 'cf cli' and 'cf api' versions.

To get the api version run the following command from 'cf cli' :

cf curl /v2/info

Snippet from the above output:

{
   "name": "vcap",
   "build": "2222",
   "support": "http://support.cloudfoundry.com",
   "version": 2,
   "description": "Cloud Foundry sponsored by Pivotal",
   "authorization_endpoint": "https://login.10.10.34.11.xip.io",
   "token_endpoint": "https://uaa.10.10.34.11.xip.io",
   "min_cli_version": null,
   "min_recommended_cli_version": null,
   "api_version": "2.23.0",
   "logging_endpoint": "wss://loggregator.10.10.34.11.xip.io:443",
   "user": "cf5c26b8-f648-473c-8015-cc431fa45911"
}

The above issues occur with cf api version 2.23.0 and cf cli versions v6.10.x, v6.11.x and v6.12.0. The Apps Manager WebGUI ("console") reports the correct members for a particular space.

Resolution

In order to resolve this issue, there are a couple of options:

  1. Downgrade 'cf cli' version to version 6.9.0 when using Pivotal Cloud Foundry version 1.4.x
  2. Upgrade to Pivotal Cloud Foundry version 1.5

Notes 

This issue is discussed here in detail. 

Comments

Powered by Zendesk