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

ERROR: Project doesn't exist in a list of available tenant projects [] when creating a new project in an org #2992

Closed
andriihomiak opened this issue May 30, 2023 · 0 comments · Fixed by #2994
Labels
bug Something isn't working CLIents orgs Organizations-related issues

Comments

@andriihomiak
Copy link
Contributor

Description:

When adding a new project to the org, an error message appears and the project is not available for the CLI session until the log-out + log-in. The local config is not properly updated, as can be seen by inspecting the local config db.

Example:

Steps to reproduce the behavior:

$ neuro config switch-org lin-kuei
$ sqlite3 -nullvalue null ~/.neuro/db "SELECT projects FROM main;" | jq .
[
  {
    "name": "test",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  },
  {
    "name": "test-project-visibility",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  }
]
$ n admin add-project default sektor --org lin-kuei
Added project sektor to cluster default to org lin-kuei. Info:
 Name                sektor 
 Default role        writer 
 Is default project  False  
ERROR: Project sektor doesn't exist in a list of available tenant projects []. 
Full logs are available under /home/andrii/.neuro/logs/neuro-run-2023-05-30_09-02-55.txt
$ sqlite3 -nullvalue null ~/.neuro/db "SELECT projects FROM main;" | jq .
[
  {
    "name": "test",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  },
  {
    "name": "test-project-visibility",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  }
]

After logout and login:

$ sqlite3 -nullvalue null ~/.neuro/db "SELECT projects FROM main;" | jq .
[
  {
    "name": "test",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  },
  {
    "name": "test-project-visibility",
    "cluster_name": "default",
    "org_name": null,
    "role": "admin"
  },
  {
    "name": "sektor",
    "cluster_name": "default",
    "org_name": "lin-kuei",
    "role": "admin"
  }
]
@andriihomiak andriihomiak added bug Something isn't working CLIents orgs Organizations-related issues labels May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLIents orgs Organizations-related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant