Commit Graph

10 Commits

Author SHA1 Message Date
Ghanshyam Mann b068b04372 Remove the Hyper-V driver
Nova Hyper-V driver is not tested in OpenStack upstream and no maintianers.
This driver has been marked as deprecated in Antelope release. It has dependency
on the OpenStack Winstacker project which has been retired[1].

As discussed in vPTG[2], removing the HyperV driver, tests, and its config.

[1] https://review.opendev.org/c/openstack/governance/+/886880
[2] https://etherpad.opendev.org/p/nova-caracal-ptg#L301

Change-Id: I568c79bae9b9736a20c367096d748c730ed59f0e
2024-02-05 12:06:58 -08:00
Matthew Booth 3c0315179a Rename block_device_info_get_root
The other block_device_info_get_* methods return DriverBlockDevice
objects, but this method returns the root_device_name. We rename it in
preparation for a subsequent patch which adds a method returning a
DriverBlockDevice object for the root disk.

Change-Id: Ic2de01e62c5ed35c05f09ce2c74fd258f06a4109
2018-01-11 20:46:13 +00:00
Jenkins 768d7cc0a6 Merge "hyperv: Fixes Generation 2 VMs volume boot order" 2017-07-01 14:00:42 +00:00
Claudiu Belu f842f11630 hyperv: Fixes Generation 2 VMs volume boot order
The patch that introduced setting boot order to the nova
Hyper-V driver [1] was using a method that no longer existed
(Generation 2 VMs only). That method was renamed by the patch
that refactored volumeops (to use os-brick) [2].

[1] d68c04299a
[2] 758a32f7ce

Change-Id: I499f078de16b79acbf12f993e9f549c75c3fccb0
Closes-Bug: #1687570
2017-06-30 12:56:30 +03:00
Artom Lifshitz 7d428ac24a Delete disk metadata when detaching volume
If a volume that was tagged with a device role tag is detached, this
patch deletes its metadata from the instance's device_metadata.

Change-Id: I94ffe4488173f40b31dd15832e5ed3f403b59e1f
Implements: blueprint virt-device-tagged-attach-detach
2017-06-30 05:29:57 +03:00
Lucian Petrut f022d431e1 [Trivial] Hyper-V: accept Glance vhdx images
Although the Hyper-V driver is used with VHDX images most of the
time, it rejects Glance images marked as VHDX.

Note that for legacy reasons, people usually just mark them as vhd
at he moment, which is misleading and unsafe.

This change ensures that such images are handled properly.

Closes-Bug: #1693470

Change-Id: I1441304bd5a83b04877c1662e6e9d463ba629ed0
2017-05-25 13:26:02 +03:00
Adelina Tuvenie d68c04299a Add support for setting boot order in Hyper-V
This patch adds support for setting boot order for Hyper-V instances.

Unit tests were updated accordingly.

Partially implements: blueprint hyper-v-set-boot-order

Change-Id: I8516ba5f27146ea773eb59a82e0f2d246c742446
2017-01-03 19:46:31 +02:00
Claudiu Belu d47b5f993e hyper-v: device tagging
Sets instance's devices_metadata during spawn.

Partially-Implements: blueprint virt-device-role-tagging

Change-Id: I49bb1903c9b6461f415438750a08eb7c1732c67b
2016-07-13 20:29:39 +00:00
Adelina Tuvenie 76c6359ed4 Added support for new block device format in vmops
Modified vmops methods to make use of the new block device format.

This new format allows for more flexibility when using block device,
such as the ability to select the bus for the attachment and the boot
index.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

Partially implements: blueprint hyper-v-block-device-mapping-support

Change-Id: Ib6ff12b2710143798c1c29376edd9c1364d451b9
2016-07-07 10:03:00 +03:00
Adelina Tuvenie ea4ac442cd Added support for new block device format in Hyper-V
This patch adds a block device manager to help with validation
of the data sent by the new block device format. Validation
includes checks for correct disk bus depending on the requested
instance generation, disk type. It also checks for the available
number of disk slots for each bus vs. the number of requested
bdms on each bus type.

Partially implements: blueprint hyper-v-block-device-mapping-support

Change-Id: Ia158e168561e3259083399139e6eac58c0e62757
2016-06-07 21:42:42 +03:00