-
Notifications
You must be signed in to change notification settings - Fork 141
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
Support physical server provisioning #578
Conversation
With this commit we implement two things: a) expose necessary API calls so React can populate dropdowns for provisioning dialog (when showing popup to user) b) allow React to create Request of type PhysicalServerProvisionRequest via API (when user clicks "Provision" on the popup) To fulfil (a) we basically need following API calls: ``` /api/pxe_servers # offer user to pick PXE server /api/pxe_servers/:id/pxe_images # offer user to pick image on selected server /api/pxe_images/:id/customization_templates # offer user to pick template on selected image ``` And to fulfil (b) we basically need following API call to be accepted: ``` POST /api/requests { "options" : { "request_type" : "provision_physical_server", # maps to PhysicalServerProvisionRequest "src_ids": [1], "pxe_image_id": 1, "configuration_profile_id": 1 } } ``` Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
3a330b3
to
0256d55
Compare
Checked commit xlab-si@0256d55 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@abellotti would you perhaps prefer if I split the PR into three smaller PRs? Currently it's kinda big, but I think those API calls belong together. However you prefer |
Reassigning to Gregg because I'm not sure who else to assign. Related miq-core and miq-automate PRs have been merged. @miq-bot assign @gtanzillo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍 @abellotti, can you give it a quick look?
yep, looks good here too. 👍 |
With this commit we implement two things:
To fulfil (1) we basically need following API calls:
And to fulfil (2) we basically need following API call to be accepted:
@miq-bot add_label enhancement
@miq-bot assign @abellotti