Skip to content

Live-Migrate With Config-Drive CD-Rom#339

Merged
fwiesel merged 3 commits into
stable/rocky-m3from
resize_with_cdrom
May 23, 2022
Merged

Live-Migrate With Config-Drive CD-Rom#339
fwiesel merged 3 commits into
stable/rocky-m3from
resize_with_cdrom

Conversation

@fwiesel

@fwiesel fwiesel commented May 12, 2022

Copy link
Copy Markdown
Member

These changes implement the following for live-migrating vms with config-drive cdroms:

  • First detach the config-drive forcefully (it is hopefully not read during that time)
  • Copy the iso over to the destination datastore
  • Migrate the VM as before
  • Reattach the cdrom on the VM

On failure, the cdrom is re-attached again

This depends on sapcc/oslo.vmware#23

@fwiesel

fwiesel commented May 12, 2022

Copy link
Copy Markdown
Member Author

I'll split out the change with moving the serializer out to oslo.vmware

@fwiesel fwiesel force-pushed the resize_with_cdrom branch from 1ab56be to 39ab819 Compare May 13, 2022 09:08
@fwiesel

fwiesel commented May 13, 2022

Copy link
Copy Markdown
Member Author

Now based on #340

@fwiesel fwiesel force-pushed the resize_with_cdrom branch from 39ab819 to f909b9f Compare May 13, 2022 11:09
fwiesel added 2 commits May 13, 2022 13:10
Most code related to vms is in vmops, not in the driver
So we move this code there too

Change-Id: I1b801c8f12b377dd74a31ef646216c564631fe7f
This requires a change to oslo.vmware to accept a string
instead of only a cookiejar.

Depends-On: Ia9f16758c388afe0fe05034162f516844ebc6b2b
Change-Id: I34a0c275ed48489954e50eb15f8ea11c4f6b1aa6
@fwiesel fwiesel force-pushed the resize_with_cdrom branch 2 times, most recently from 1f8a308 to 00ad162 Compare May 13, 2022 11:13
@fwiesel fwiesel changed the title Resize with cdrom Live-Migrate With Config-Drive CD-Rom May 16, 2022

@joker-at-work joker-at-work left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I can't say why, but this code is hard to follow for me and it looks extremely hacky, too :(

Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
Comment thread nova/virt/vmwareapi/vmops.py Outdated
@fwiesel fwiesel force-pushed the resize_with_cdrom branch from 00ad162 to 0155dfd Compare May 17, 2022 12:39
While we cannot live-migrate CD-Roms directly between vcenters,
we can copy the data and detach/reattach the device manually.

Change-Id: I88b4903f745e1bcfe957ddc07c6e9c040820ed6b
@fwiesel fwiesel force-pushed the resize_with_cdrom branch from 0155dfd to f3a5d33 Compare May 18, 2022 08:09
@fwiesel fwiesel requested a review from joker-at-work May 18, 2022 14:54
@fwiesel fwiesel merged commit 14f9a5f into stable/rocky-m3 May 23, 2022
@fwiesel fwiesel deleted the resize_with_cdrom branch May 23, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants