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

Add cluster UUID to orchestrated clusters #62

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

tzumainn
Copy link
Contributor

The cluster UUID allows for easy identification and cleanup of orchestrated clusters.

@tzumainn
Copy link
Contributor Author

@DanNiESh could you take a look at this one? Thanks!

"\n".join(node_info),
"\n".join(extra_info)])

return ["Cluster", "Node", "Associated"], cluster_info
Copy link
Contributor

Choose a reason for hiding this comment

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

The current associated info contains all nodes' info within a cluster. Do we want to list each node and its associated data together?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, the way the node_info and extra_info is joined, it works pretty much as you say: each node's associated resources are printed on the same line

{'path': "/extra/esi_fip_uuid",
'op': 'remove'})
ironic_client.node.update(node.uuid, node_extra_update)
ironic_client.node.set_provision_state(node.uuid, 'deleted')

print("UNDEPLOY COMPLETE")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a message if no cluster_uuid is found, rather than showing users "UNDEPLOY COMPLETE"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea - done!

"cluster_config_file",
metavar="<cluster_config_file>",
help=_("File describing the cluster configuration"))
"cluster_uuid",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is cluster_uuid retrieved by listing clusters? Could you add the instructions in README file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, it's already there in the openstack esi cluster undeploy documentation.

The cluster UUID allows for easy identification and cleanup
of orchestrated clusters.
Copy link
Contributor

@DanNiESh DanNiESh left a comment

Choose a reason for hiding this comment

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

LGTM

@tzumainn tzumainn merged commit b47284f into CCI-MOC:master Jan 16, 2024
6 checks passed
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.

2 participants