Skip to content
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

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Jul 17, 2019

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

     def enforce_max_retries(f)
       return if f['max_retries'].blank?
-      return if f['max_retries'].to_i >= @workspace.root['ae_state_retries'].to_i
-      raise "number of retries <#{@workspace.root['ae_state_retries']}> exceeded maximum of <#{f['max_retries']}>"
+      #return if f['max_retries'].to_i >= @workspace.root['ae_state_retries'].to_i
+      #raise "number of retries <#{@workspace.root['ae_state_retries']}> exceeded maximum of <#{f['max_retries']}>"
     end

Screen Shot 2019-07-30 at 9 00 45 PM

Screen Shot 2019-07-30 at 9 00 29 PM

Related to

#385
ManageIQ/vmware_web_service#63

@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch 5 times, most recently from 31d82db to 91d2770 Compare July 18, 2019 12:03

disks << dev
end
devs + get_new_disks
Copy link
Member

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

@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch 7 times, most recently from 3333183 to ae6c71c Compare July 19, 2019 16:02
@agrare agrare added the wip label Jul 19, 2019
@agrare agrare self-assigned this Jul 19, 2019
@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch from ae6c71c to cd80ef2 Compare July 19, 2019 20:05
@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch 4 times, most recently from c0f213a to ed94d05 Compare July 26, 2019 17:18
@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch 4 times, most recently from 530743f to 5bd9cc8 Compare July 31, 2019 00:58
@agrare
Copy link
Member

agrare commented Jul 31, 2019

@d-m-u this is feeling less super-wip, maybe just wip

@d-m-u d-m-u changed the title [super-wip] Add disk relocate spec start [wip] Add disk relocate spec start Jul 31, 2019
@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch 3 times, most recently from d36dbe9 to b3451c9 Compare August 1, 2019 02:41
@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch from b3451c9 to 494ed62 Compare August 1, 2019 12:55
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|
Copy link
Member

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

@d-m-u d-m-u force-pushed the adding_disk_relocate_spec branch from 494ed62 to 9aa6abb Compare August 1, 2019 13:20
@miq-bot
Copy link
Member

miq-bot commented Aug 1, 2019

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
3 files checked, 0 offenses detected
Everything looks fine. 🍪

@d-m-u d-m-u changed the title [wip] Add disk relocate spec start Add disk relocate spec start Aug 1, 2019
@d-m-u
Copy link
Contributor Author

d-m-u commented Aug 1, 2019

@miq-bot remove_label wip
😆 only took three weeks

@d-m-u d-m-u changed the title Add disk relocate spec start Add disk relocate spec for eagerlyScrub backing option Aug 1, 2019
@miq-bot miq-bot removed the wip label Aug 1, 2019
Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ looks great!

@agrare agrare merged commit 9aa6abb into ManageIQ:master Aug 1, 2019
agrare added a commit that referenced this pull request Aug 1, 2019
Add disk relocate spec for eagerlyScrub backing option
@agrare agrare added this to the Sprint 117 Ending Aug 5, 2019 milestone Aug 1, 2019
@agrare
Copy link
Member

agrare commented Aug 1, 2019

@d-m-u see I told you it wouldn't be that hard 🤣

@d-m-u
Copy link
Contributor Author

d-m-u commented Aug 1, 2019

@miq-bot add_label ivanchuk/yes

@agrare
Copy link
Member

agrare commented Aug 1, 2019

Weird github didn't mark this closed, closing

simaishi pushed a commit that referenced this pull request Aug 1, 2019
Add disk relocate spec for eagerlyScrub backing option

(cherry picked from commit fc2e1cf)

https://bugzilla.redhat.com/show_bug.cgi?id=1633867
@simaishi
Copy link
Contributor

simaishi commented Aug 1, 2019

Ivanchuk backport details:

$ git log -1
commit 204173bb100052ea26e3ac346bf9979e25b2ac88
Author: Adam Grare <agrare@redhat.com>
Date:   Thu Aug 1 09:57:36 2019 -0400

    Merge pull request #413 from d-m-u/adding_disk_relocate_spec
    
    Add disk relocate spec for eagerlyScrub backing option
    
    (cherry picked from commit fc2e1cfc98f7a95565852acd4ae6ac860bc005eb)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1633867

@d-m-u d-m-u deleted the adding_disk_relocate_spec branch July 8, 2020 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants