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

Consider splitting pkg/provisioner/* into golang plugins. #1752

Open
s3rj1k opened this issue May 29, 2024 · 12 comments
Open

Consider splitting pkg/provisioner/* into golang plugins. #1752

s3rj1k opened this issue May 29, 2024 · 12 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue is ready to be actively worked on.

Comments

@s3rj1k
Copy link
Member

s3rj1k commented May 29, 2024

User Story

It would be nice to have plugin support for BYO provisioner by using golang plugins approach.

Detailed Description

Moving pkg/provisioner/* into golang plugins would require making go mod init on them, updating build process, adding code that will load plugins on start.

Anything else you would like to add:

Moving out stock provisioner code would also help with making statemachine part be properly isolated from provisioners.

/kind feature

@metal3-io-bot metal3-io-bot added kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue lacks a `triage/foo` label and requires one. labels May 29, 2024
@dtantsur
Copy link
Member

It's not a bad idea, although

  1. at this point BMO makes so many Ironic-specific assumptions that developing an alternative provisioner is hardly possible,
  2. the Provisioner interface keeps evolving and won't be stable for now.

@dtantsur
Copy link
Member

As an aside, I'd really like to extract a reusable Ironic-centric library out of pkg/provisioner/ironic and move it to a separate reusable module.

@Rozzii
Copy link
Member

Rozzii commented May 29, 2024

/triage accepted
/help
@s3rj1k could you please describe a bit more your custom provisioner use case ? Is it an opensource provisioner, is the provisioner already compatible with the BMO state machine (which is derived from the Ironic state machine) ?

@metal3-io-bot
Copy link
Contributor

@Rozzii:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/triage accepted
/help
@s3rj1k could you please describe a bit more your custom provisioner use case ? Is it an opensource provisioner, is the provisioner already compatible with the BMO state machine (which is derived from the Ironic state machine) ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@metal3-io-bot metal3-io-bot added triage/accepted Indicates an issue is ready to be actively worked on. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed needs-triage Indicates an issue lacks a `triage/foo` label and requires one. labels May 29, 2024
@s3rj1k
Copy link
Member Author

s3rj1k commented May 29, 2024

could you please describe a bit more your custom provisioner use case

One that I used before is basically very patched Ironic provisioner and by having this plugin system I would hope to see more hard separation between logic so that any kind off-stream patched could be applied exclusively to the plugin code itself.

But really any kind of other BM provisioners could be done if plugin system would reduce the scope of implementation.

@s3rj1k
Copy link
Member Author

s3rj1k commented May 29, 2024

As an aside, I'd really like to extract a reusable Ironic-centric library out of pkg/provisioner/ironic and move it to a separate reusable module.

This would be a first step, yes, this will somewhat ensure that provisioner could be more isolated, it always feels like BMO is missing this part of isolation of implementations.

@s3rj1k
Copy link
Member Author

s3rj1k commented May 29, 2024

Ironic-specific assumptions

IMO, state machine can be reused, some states can be just No-Op in case of other than Ironic provisioner is used.

@s3rj1k
Copy link
Member Author

s3rj1k commented May 29, 2024

I would like to have the ability to use any kind of cloud provider API (meaning BM offerings, not VMs that they offer) with proven to work state-machine and have all of this interchangeable, openstack <-> somethingother just by switching plugin.

So that ironic-specific things in this case can be of use.

@metal3-io-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues will close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@metal3-io-bot metal3-io-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 27, 2024
@Rozzii
Copy link
Member

Rozzii commented Aug 28, 2024

/remove-lifecycle stale
/lifecycle-frozen

@metal3-io-bot metal3-io-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 28, 2024
@Rozzii
Copy link
Member

Rozzii commented Aug 28, 2024

/lifecycle-frozen

@Rozzii
Copy link
Member

Rozzii commented Aug 28, 2024

/lifecycle frozen

@metal3-io-bot metal3-io-bot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue is ready to be actively worked on.
Projects
Status: Backlog
Development

No branches or pull requests

4 participants