Skip to content
Snippets Groups Projects
Commit 8c00268e authored by Lars Beckers's avatar Lars Beckers
Browse files

initial commit, add our four patches and a README

parents
No related branches found
No related tags found
No related merge requests found
# Patches for Ganeti
This repository contains our patches for ganeti which we apply on top of the already patched debian package.
In the near future it shall also contain a guide on how to build ganeti with those patches and maybe some tooling for that.
See ticket #13 on RT.
## Patch Details
### `fix_ceph_showmap.patch`
Fixes an incompatibility with current ceph versions.
### `increase_max_disk_count.patch`
*sigh*
There is a constant number of allowed disks that may be attached to a VM. We increase this limit.
### `remove_blockdev_from_mirrored_list.patch` and `remove_blockdev_from_movable_list.patch`
Removes block devices from lists of mirrored and movable devices. This prevents such VMs from being migrated.
This may not solve the general case, but is makes it compatible with our usage.
--- a/lib/storage/bdev.py
+++ b/lib/storage/bdev.py
@@ -1020,8 +1020,6 @@ class RADOSBlockDevice(base.BlockDev):
showmap_cmd = [
constants.RBD_CMD,
"showmapped",
- "-p",
- pool,
"--format",
"json"
]
--- a/src/Ganeti/HTools/Types.hs 2015-12-16 14:34:43.000000000 +0100
+++ b/src/Ganeti/HTools/Types.hs 2017-11-03 21:42:53.486742240 +0100
@@ -215,7 +215,7 @@
}
maxDisks :: Int
-maxDisks = 16
+maxDisks = 64
maxNics :: Int
maxNics = 8
--- a/src/Ganeti/Constants.hs 2015-12-16 14:34:43.000000000 +0100
+++ b/src/Ganeti/Constants.hs 2017-11-03 20:42:28.489477592 +0100
@@ -942,7 +942,7 @@
dtsExtMirror =
ConstantUtils.mkSet $
map Types.diskTemplateToRaw
- [DTDiskless, DTBlock, DTExt, DTSharedFile, DTRbd, DTGluster]
+ [DTDiskless, DTExt, DTSharedFile, DTRbd, DTGluster]
-- | The set of non-lvm-based disk templates
dtsNotLvm :: FrozenSet String
--- a/src/Ganeti/HTools/Instance.hs 2015-12-16 14:34:43.000000000 +0100
+++ b/src/Ganeti/HTools/Instance.hs 2017-11-03 18:34:37.562544893 +0100
@@ -168,7 +168,6 @@
movableDiskTemplates :: [T.DiskTemplate]
movableDiskTemplates =
[ T.DTDrbd8
- , T.DTBlock
, T.DTSharedFile
, T.DTGluster
, T.DTRbd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment