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
Remove v3 api form SSA #98
Conversation
@roliveri is this ok? |
Remove the usage of the ovirt gem and version 3 api from the SSA Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1535782
d8dd308
to
b0b5c73
Compare
Checked commit borod108@b0b5c73 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 lib/MiqVm/MiqVm.rb
|
@borod108 Cannot apply the following label because they are not recognized: ivanchuk/yes |
I'm not sure this was looked at with regard to other interactions inside the SSA gem. For instance, rhevmVm.disks was removed but it is used in the VmConfig code. |
@borod108, |
@jerryk55 can you suggest how I will find all those places? Currently with this code smartstate analysis works, how should I find all the places to change? |
@borod108 could you maintain the same interface but use the v3 api instead? That should fix the issue of having to find every caller |
@agrare I could, we talked about it with Martin - it just does not seem to be a good solution. Also - if we fix it properly then the knowledge of how this thing actually works will spread to us as well and we will be able to fix things in the future and not keep putting bandages on this. |
@jerryk55 Can you provide a pointer to where it's used in the |
Yeah let me look it up again. Hopefully I'm not mistaken. Or maybe its better if I am. More to come.... |
I believe I was mistaken. There is a reference to rhevmVm.disks in VMconfig - not rhevmVm.attributes[:disks] - I misread the code. So I remove my objection to this. |
@borod108 Will release a new version of the manageiq-smartstate GEM and let you know the version. |
@borod108 released version 0.3.0 of the manageiq-smartstate GEM. |
Remove the usage of the ovirt gem and version 3 api from the SSA
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1535782
Depends on: ManageIQ/manageiq-providers-ovirt#394