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

135 add stack account self service features #150

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

c0untingNumbers
Copy link
Contributor

Things to update locally once this is merged:

  • Add the new config key and values to the config

@c0untingNumbers c0untingNumbers requested a review from a team as a code owner November 10, 2024 02:13
@c0untingNumbers c0untingNumbers linked an issue Nov 10, 2024 that may be closed by this pull request
Copy link
Collaborator

@bootsie123 bootsie123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, solid PR and I've very excited for the feature!

However, I think we should have a discussion on the best approach to use when interacting with the Openstack API (launching an external script versus REST API calls directly or through a GO package).

For now, I'm going to put Request changes on this, but great job so far!

OS_INTERFACE string = config.GetString("openstack.ENV.OS_INTERFACE")
OS_IDENTITY_API_VERSION string = config.GetString("openstack.ENV.OS_IDENTITY_API_VERSION")

// Paths for scripts to automate openstack user management
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is there a reason why you went with executing a script versus using an Openstack GO SDK? I'm wondering if that might be a better approach when it comes to error handling and dependencies (now you would need to ensure the Openstack CLI is setup on the running machine)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also just noticed that the scripts are not checked into the repo. Thoughts on including those?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is there a reason why you went with executing a script versus using an Openstack GO SDK?

Not gonna lie, I did not think about a GO package for interacting with Openstack API. I should have checked if there is one out of there. I will look into it and see if I can implement it.

I also just noticed that the scripts are not checked into the repo. Thoughts on including those?

Sure, no problem.

}

// Initialize the environment variables for Openstack CLI
SetOpenstackRC()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these variables are initially stored in the OBIII config file, I'd probably move this to the main.go file as it can be seen as redundant to keep setting these on every Openstack command. However, I do see the argument where the host's environment variables could get overwritten after OBIII's initial startup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on gophercloud's implementation, I may or may not need it but in case if I do, I will move it to main.go.

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

Successfully merging this pull request may close these issues.

Add Stack Account Self-Service Features
2 participants