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

Figure out how to refresh OpenShift API token automatically #615

Open
tzumainn opened this issue Sep 11, 2024 · 0 comments
Open

Figure out how to refresh OpenShift API token automatically #615

tzumainn opened this issue Sep 11, 2024 · 0 comments
Assignees

Comments

@tzumainn
Copy link
Contributor

tzumainn commented Sep 11, 2024

We have a way of installing OpenShift programatically through the Assisted Installer API, as document at https://esi.readthedocs.io/en/latest/usage/openshift.html#using-the-python-esiclient-cli. However, the process involves a token that expires every 10 minutes. The documentation explains this and details how to continue the installation; however, it would be better if we could either have a longer-lasting token or if there was a way to refresh it automatically.

You can see examples of the API commands we issue in https://github.com/CCI-MOC/python-esiclient/blob/master/esiclient/v1/cluster/openshift.py. Working on this issue will presumably require taking some of that code to run API commands; however, you should not need to run the OpenStack/Ironic commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants