Skip to content

Commit df6d7fd

Browse files
authored
Merge pull request #1233 from rackerlabs/server-volume-attach-rough
feat(nova): add attach_volume/detach_volume to ironic driver
2 parents 9f52e36 + 2fb3cd9 commit df6d7fd

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/nova/virt/ironic/driver.py b/nova/virt/ironic/driver.py
2+
index 64ccdaa50c..cf7cc872d8 100644
3+
--- a/nova/virt/ironic/driver.py
4+
+++ b/nova/virt/ironic/driver.py
5+
@@ -2237,3 +2237,17 @@ class IronicDriver(virt_driver.ComputeDriver):
6+
"""IronicDriver manages port bindings for baremetal instances.
7+
"""
8+
return True
9+
+
10+
+ def attach_volume(self, context, connection_info, instance, mountpoint,
11+
+ disk_bus=None, device_type=None, encryption=None):
12+
+ """Attach the disk to the instance at mountpoint using info.
13+
+
14+
+ :raises TooManyDiskDevices: if the maximum allowed devices to attach
15+
+ to a single instance is exceeded.
16+
+ """
17+
+ LOG.debug("attach_volume connection_info %s", connection_info, instance=instance)
18+
+
19+
+ def detach_volume(self, context, connection_info, instance, mountpoint,
20+
+ encryption=None):
21+
+ """Detach the disk attached to the instance."""
22+
+ LOG.debug("detach_volume connection_info %s", connection_info, instance=instance)

containers/nova/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
0001_trunk_details_metadata.patch
2+
ironic-attach-debug.patch

0 commit comments

Comments
 (0)