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

feat: Workflow to synchronize Nautobot Device to Ironic Node #27

Merged
merged 13 commits into from
Apr 8, 2024

Conversation

skrobul
Copy link
Collaborator

@skrobul skrobul commented Apr 2, 2024

This PR brings an Argo Workflow and sensor that reacts to an 'Interface Updated' event produced by Nautobot's Event Source. Once activated, it updates (or creates) the Node representation in Ironic.

Closes PUC-212

Copy link
Contributor

@cardoe cardoe left a comment

Choose a reason for hiding this comment

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

We don't need the custom token for the registry.

.github/workflows/build-container-images.yaml Outdated Show resolved Hide resolved
@skrobul skrobul force-pushed the workflow-create-node branch 10 times, most recently from e3a734a to 920bb46 Compare April 3, 2024 12:36
@skrobul skrobul requested a review from cardoe April 3, 2024 12:39
@skrobul skrobul force-pushed the workflow-create-node branch 2 times, most recently from b163ae2 to 27388cc Compare April 3, 2024 13:58
Copy link
Contributor

@mfencik mfencik left a comment

Choose a reason for hiding this comment

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

Just one small change needed, otherwise looking good

@skrobul skrobul requested a review from mfencik April 4, 2024 11:20
@skrobul skrobul force-pushed the workflow-create-node branch from 20115d8 to da39ad3 Compare April 4, 2024 11:23
skrobul added 13 commits April 8, 2024 16:30
This is mostly just to document how the typical feature folder structure
should look like.
This image provides preinstalled python-ironic client.
Instead of waiting for an explicit button press, we setup Nautobot to
send webhooks to Argo Events any time the Interface is changed. When
particular conditions are met (device is a server, has the DRAC IP and
the Interface is named 'iLO'), we trigger the workflow to synchronize
information to Ironic.
This is to avoid accidentally overwriting the credentials and other
redfish driver settings which this workflow does not have awareness of.
@skrobul skrobul force-pushed the workflow-create-node branch from da39ad3 to c0bcd72 Compare April 8, 2024 15:30
@cardoe cardoe merged commit 34eee16 into rackerlabs:main Apr 8, 2024
3 of 4 checks passed
@skrobul skrobul deleted the workflow-create-node branch April 8, 2024 15:33
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.

3 participants