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

Adding configuration file #86

Open
tdviet opened this issue Sep 12, 2021 · 4 comments
Open

Adding configuration file #86

tdviet opened this issue Sep 12, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed important Important issues, should be solved with higher priority

Comments

@tdviet
Copy link
Owner

tdviet commented Sep 12, 2021

The fedcloudclient becomes more complex, there are many default values in the codes and environment variables. A configuration file ~/.config/fedcloud/fedcloud.ini could add some flexibility and simplify initial setting.

The configuration file could be useful for:

  • overwriting default values of some constants in the codes: e.g. timeout, site configurations, ...
  • being alternative of environment variables, e.g. default site and VO
  • storing time of last update of site configurations
  • and preparation for future features, e.g. location of SSH private keys for openstack ssh command

Example of use cases:

  • users of some VOs/RIs may prefer to have a customized list of only sites supporting the VOs/RIs in fedcloudclient site configurations, not all sites registered in GOCDB. That can speedup all-sites operations.
  • NGIs can have their own lists of sites

In both cases, simply change URL of site configuration in the fedcloud.ini file to the location of the customized site list is sufficient.

@tdviet tdviet added the enhancement New feature or request label Sep 12, 2021
@tdviet tdviet added the important Important issues, should be solved with higher priority label Apr 13, 2022
This was referenced Apr 13, 2022
@tdviet
Copy link
Owner Author

tdviet commented Jun 17, 2022

The new fedcloud.config should read the config file and also environment variables, then set global variables including default site and VO according. That can work around the bug of requirement checking in the click-option-group lib mentioned in #150

@tdviet
Copy link
Owner Author

tdviet commented Jul 4, 2022

Configuration file is critical also for other issues:

@tdviet
Copy link
Owner Author

tdviet commented Sep 9, 2022

Adding configuration file and related issues will need revisions of all components and may break some compatibilities. Therefore, a major version 2.0 will be released with all the changes together.

@tdviet
Copy link
Owner Author

tdviet commented Sep 18, 2022

First draft of config.py in branch 2.0-alpha: https://github.com/tdviet/fedcloudclient/blob/2.0-alpha/fedcloudclient/config.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed important Important issues, should be solved with higher priority
Projects
None yet
Development

No branches or pull requests

1 participant