-
Notifications
You must be signed in to change notification settings - Fork 70
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 disk relocate spec for eagerlyScrub backing option #413
Conversation
app/models/manageiq/providers/vmware/infra_manager/provision/configuration/disk.rb
Outdated
Show resolved
Hide resolved
app/models/manageiq/providers/vmware/infra_manager/provision/configuration/disk.rb
Outdated
Show resolved
Hide resolved
31d82db
to
91d2770
Compare
app/models/manageiq/providers/vmware/infra_manager/provision/configuration/disk.rb
Outdated
Show resolved
Hide resolved
|
||
disks << dev | ||
end | ||
devs + get_new_disks |
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.
We might need to parse the raw devices so that they're in a consistent format with what get_new_disks
returns
3333183
to
ae6c71c
Compare
ae6c71c
to
cd80ef2
Compare
app/models/manageiq/providers/vmware/infra_manager/provision/configuration/disk.rb
Outdated
Show resolved
Hide resolved
c0f213a
to
ed94d05
Compare
530743f
to
5bd9cc8
Compare
@d-m-u this is feeling less super-wip, maybe just wip |
d36dbe9
to
b3451c9
Compare
b3451c9
to
494ed62
Compare
vim.virtualMachineByMor(source.ems_ref_obj) | ||
def build_disk_relocate_spec(datastore) | ||
VimArray.new('ArrayOfVirtualMachineRelocateSpecDiskLocator') do |relocate_spec_array| | ||
(disks + get_new_disks).map do |disk| |
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.
@d-m-u does the response of get_new_disks
have a .key
?
I also wonder if we even need a RelocateSpec for a new disk, it isn't being relocated and we could just set eagerlyScrub when we build the backing
494ed62
to
9aa6abb
Compare
Checked commit d-m-u@9aa6abb with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot remove_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.
❤️ looks great!
Add disk relocate spec for eagerlyScrub backing option
@d-m-u see I told you it wouldn't be that hard 🤣 |
@miq-bot add_label ivanchuk/yes |
Weird github didn't mark this closed, closing |
Add disk relocate spec for eagerlyScrub backing option (cherry picked from commit fc2e1cf) https://bugzilla.redhat.com/show_bug.cgi?id=1633867
Ivanchuk backport details:
|
VMware has a third option for disk provisioning that we're not using.
For https://bugzilla.redhat.com/show_bug.cgi?id=1633867
note
thick eagerZero will exceed the max retries in the engine (> 500 of the 100 max), so if you want to see this work, you can change automate to do this:
in
lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_state_machine.rb
Related to
#385
ManageIQ/vmware_web_service#63