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 Additional Ironic Attributes to Nodes Resource #163

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

ajamias
Copy link
Contributor

@ajamias ajamias commented Jul 12, 2024

Resolves CCI-MOC/esi#571

@larsks larsks requested a review from tzumainn July 13, 2024 04:01
@larsks
Copy link
Member

larsks commented Jul 13, 2024

I like the commit message to contain (a) some explanation about why we're making these changes and (b) a reference of some sort to any associated issues. Something like:

Add target_provision_state and (target_)power_state attributes to nodes

The UI display of nodes currently calls both esi node list and Ironic
node list, merging the information together. The REST API
behind esi node list already grabs Ironic nodes and fetches some of
the needed information.

This commit modifies esi API to return power state information as part
of the node list operation, eliminating the redundant call to the
Ironic API.

Closes #163

Currently, the UI calls both esi node list and Ironic's
node list and merges both information together. The REST
API in esi-leap already calls Ironic's node list and
uses some of the information.

This commit modifies esi-leap's API so that power state
information and target provision state is also added,
eliminating the redundant call to Ironic's node list.

Resolves CCI-MOC/esi#571
@ajamias
Copy link
Contributor Author

ajamias commented Jul 13, 2024

Apologies, I just updated it

Copy link
Contributor

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@tzumainn tzumainn merged commit 4063a4c into CCI-MOC:master Jul 16, 2024
5 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.

Update esi node list to include additional values required by UI
3 participants