-
Notifications
You must be signed in to change notification settings - Fork 357
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 Redfish provider creation dialog #3912
Conversation
Marking WIP as it depends on the provider actually being migrated to ManageIQ. @miq-bot add_label wip |
@miq-bot remove_label wip |
Related bugzilla entry: https://bugzilla.redhat.com/show_bug.cgi?id=1574808 |
Is there any backend / provider PR that this PR depends on? |
@mzazrivec Sorry, forgot to add this info. Relevant core pull request is ManageIQ/manageiq#17392, so this will need to wait for that pull request to get merged. @miq-bot add_label wip |
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.
Please check my comment regarding the security protocols.
@@ -33,7 +34,7 @@ | |||
"selectpicker-for-select-tag" => "", | |||
"prefix" => prefix.to_s, | |||
"reset-validation-status" => "#{prefix}_auth_status") | |||
.col-md-8{"ng-if" => "emsCommonModel.emstype == 'nuage_network'"} | |||
.col-md-8{"ng-if" => "emsCommonModel.emstype == 'nuage_network' || emsCommonModel.emstype == 'redfish_ph_infra'"} |
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.
I would separate this now. Even if the set of security options is compatible for Nuage and Redfish, the latter does not support AMQP for the eventing (the next row checks whether the security protocols are displayed for AMQP tab or for the main tab; or at least, this is my understanding).
Thus, I suggest we create a new block specifically for the Redfish provider. Once events are going to be supported, we will add the security options for that as well (if necessary).
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 was a remnant from "I just want something to show on UI" times that I forgot to clean up properly. I will fix this by creating new Redfish-only block that will use dedicated security protocol list.
@@ -491,6 +491,7 @@ | |||
%div{"ng-if" => "#{ng_model}.emstype == 'gce' || " + | | |||
"#{ng_model}.emstype == 'scvmm' || " + | | |||
"#{ng_model}.emstype == 'lenovo_ph_infra' || " + | | |||
"#{ng_model}.emstype == 'redfish_ph_infra' || " + | |
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.
I suppose this is correct place to put it?
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.
It is correct in the sense that the following code hides all the tabs that we do not need. I considered adding a separate block for Redfish provider, but I decided against it when I saw that other providers are already reusing the configuration block. Besides, we can always create a new block if/when we actually need to made some customizations.
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.
Thanks @tadeboro.
Please remove wip and assign this PR to @mzazrivec if dependencies are now satisfied.
@miq-bot remove_label wip |
@epwinchell Could you please look at the graphics part of this PR? Thanks. |
ping @terezanovotna |
waiting to get an MIQ environment where I can see these edits. Currently getting server error. |
@epwinchell I never noticed all those symlinks. I replaced the |
@tadeboro Thank you |
@miq-bot add_reviewer @epwinchell |
The dialog is being consistent with the current provider form, so @miq-bot remove_labels ux/review (as a side note, the provider form itself has some issues, but that's a different topic) |
@miq-bot remove_label ux/review |
LGTM, do we have any servers to test this with? |
@himdel Any server that supports Redfish will do. But since those are not the easiest things to come by, I will prepare a sanitized recording of a live server that can be replayed by the mock server. I will post the relevant links here as soon as I have something ready. |
Perfect, thanks @tadeboro :) |
As promised, I prepared a static recording of the Redfsh-capable system and the mock server that is capable of replaying those responses. All of this is available in redfish-recordings repo. Repository also contains short instructions on how to get the server running. This server has enough functionality implemented to be able to serve as a substitute for the real thing when developing Redfish provider for MIQ. At the moment, authorization support is only partialy implemented in mock server (any username/password is accepted), so credentials entered in new provider form can be arbitrary. |
This pull request is not mergeable. Please rebase and repush. |
4107bf7
to
c138af1
Compare
This commit introduces minimal changes that are needed in order to be able to add Redfish provider to ManageIQ.
Checked commit xlab-si@b3cbf19 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 **
|
The provider creation dialog seems to be working all right. I noticed few other things though:
Given the title of this PR says "provider creation dialog" I can merge this PR as long as the other issues will be fixed in later PRs. Is that OK with you @tadeboro ? |
Thanks @mzazrivec for your comments and help with display name. The error that you are seeing when navigating to server summary page: this is a know "bug" and is caused by the missing inventory. This will correct itself once we add hardware collection to the inventory refresh to the Redfish provider. As for the topology, I notice that icons do not show up at first, but if I interact a bit with the UI, they do eventually show. That being said, I would be overwhelmed it this PR could be merged. |
This pull requests contains UI modifications that are needed in order to be able to create new Redfish provider from the MIQ web UI.
/cc @gberginc @gtanzillo @Fryguy