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

Some VOs are not found #180

Closed
4 tasks done
sebastian-luna-valero opened this issue Apr 12, 2023 · 5 comments
Closed
4 tasks done

Some VOs are not found #180

sebastian-luna-valero opened this issue Apr 12, 2023 · 5 comments

Comments

@sebastian-luna-valero
Copy link
Collaborator

Initial checklist

Affected packages and versions

1.3.1

Link to runnable example

No response

Steps to reproduce

fedcloud endpoint vos -a

Expected behavior

All VOs should be displayed.

Actual behavior

Some VOs in the output below (first column) are empty.

VO                       id                                Project name             enabled    site
-----------------------  --------------------------------  -----------------------  ---------  ----------------

As a consequence, when I try to execute the below:

fedcloud openstack --vo <vo> --site <site> token issue -c id -f value

I get:

Site: <site>, VO: <vo>, command: token issue -c id -f value
Error code:  11
Error message:  VO <vo> not found on site <site>

Currently, as a workaround, I am currently doing:

eval $(fedcloud endpoint env --site <site> --project-id <project-id>)
openstack token issue -c id -f value

Am I the only one having this issue?

Affected runtime and version

fedcloudclient@1.3.1

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

No response

@tdviet
Copy link
Owner

tdviet commented Apr 12, 2023

Hi,

if the VO is not in the site configuration, fedcloud cannot find it.

Please check the site configuration in fedcloud catchall, and if the VO is there, update site configuration and test it again:

$ fedclloud site save-config

@tdviet
Copy link
Owner

tdviet commented Apr 12, 2023

Auto discovery of VO mapping via project properties will be used in future version for removing dependencies on site configuration files from fedcloud-catchall-operations, see #181

@sebastian-luna-valero
Copy link
Collaborator Author

sebastian-luna-valero commented Apr 12, 2023

Thanks!

The VO is correctly configured in https://github.com/EGI-Federation/fedcloud-catchall-operations/

After running fedcloud site save-config all VOs are correctly displayed with fedcloud endpoint vos -a

Sorry, I don't understand. If the VO was correctly configured in https://github.com/EGI-Federation/fedcloud-catchall-operations/ in the first place, why did I have to run fedcloud site save-config to solve the issue?

@tdviet
Copy link
Owner

tdviet commented Apr 12, 2023

Sorry, I don't understand. If the VO was correctly configured in https://github.com/EGI-Federation/fedcloud-catchall-operations/ in the first place, why did I have to run fedcloud site save-config to solve the issue?

If there are no local site config files, the online site configs from github fedcloud-catchall-operations repository will be used (slow). Users can download the configs via fedcloud site save-config, store them locally (in ~/.config/fedcloud/site-configs), and customize them if needed.

The local site configs on users' machine are not updated automatically, they are downloaded/updated only when the users execute fedcloud site save-config. Therefore, if you have outdated local config files, the VOs are not found.

Auto-updates were planned but not implemented #15. However, a better solution via auto-discovery emerges #181.

@sebastian-luna-valero
Copy link
Collaborator Author

I see, thanks.

I didn't have a local site config file, that's why I expected the tool to get the latest information from the GitHub repository.

Strange that I just deleted the local site config file again, but now all VOs are correctly displayed anyway.

I guess we are good to close this issue?

Many thanks for your help!

@tdviet tdviet closed this as completed Apr 12, 2023
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

No branches or pull requests

2 participants