-
Notifications
You must be signed in to change notification settings - Fork 897
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
Extend InventoryCollectionDefault::NetworkManager with network_groups #16136
Conversation
With this commit we implement a class function that is needed when implementing graph inventory refresh for NetworkManager that supports NetworkGroup inventory object. The new network_groups function provides hash of common properties that are needed by persister. Signed-off-by: Miha Pleško <[email protected]>
Checked commit miha-plesko@254c9d7 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
Looks good. 👍
For the NetworkGroup itself, I am still not sure whether it gets things clearer or not. It acts the same as CloudNetwork now. So maybe we should keep using CloudNetwork model, until the behavior will become different?
@miq-bot assign @blomquisg |
I'm not sure what the rationale to use NetworkGroup was either, but I think Nuage guys are using miq in production already (not 100% sure about this). I don't think I have balls to go change this without consulting them first 😄 My plan would be to implement graph inventory refresh that works exactly like their current legacy refresher and then drop the legacy refresher completely. Then, having only one fansy refresher, I'd go into changing models if requested. Sounds good? |
@blomquisg I think Ladas and myself converged to the point where only merge button needs to be pressed. Naturally, if you have any comments, I'd be glad to hear them. |
Punting over to @agrare because I think he's been following more of the general networking discussions than I have. |
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 for parity with current refresh
If we want to merge NetworkGroup
and CloudNetwork
that will need a migration to move existing data. If this is something you want to do we should do it soon before schema freeze (a few weeks).
Extend InventoryCollectionDefault::NetworkManager with network_groups
With this commit we implement a class function that is needed when implementing graph inventory refresh for NetworkManager that support NetworkGroup inventory object. The new
network_groups
function provides hash of common properties that are needed by persister.@Ladas I've assigned you since I remember you being in charge of introducing graph refresh. Please let me know if someone else should be assigned instead.
@miq-bot add_label enhancement
@miq-bot assign @Ladas
/cc @gberginc