samba-tool domain dcpromo: add --backend-store-size option
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 28 Jun 2019 03:12:31 +0000 (15:12 +1200)
committerGary Lockyer <gary@samba.org>
Tue, 2 Jul 2019 02:23:09 +0000 (02:23 +0000)
Add a new "samba-tool domain dcpromo" option "backend-store-size".
This allows the lmdb map size to be set during a promotion, instead of
hard-wiring it to 8Gb.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain.py
selftest/knownfail.d/promote_dc_lmdb_size [deleted file]

index 3f6876a79bd0552c343ec108bbf7528ec1a8c23b..d7b7cdb315c1056d38ae7b6d3c1313429b669603 100644 (file)
@@ -630,7 +630,8 @@ class cmd_domain_dcpromo(Command):
                     machinepass=machinepass, use_ntvfs=use_ntvfs,
                     dns_backend=dns_backend,
                     promote_existing=True, plaintext_secrets=plaintext_secrets,
-                    backend_store=backend_store)
+                    backend_store=backend_store,
+                    backend_store_size=backend_store_size)
         elif role == "RODC":
             join_RODC(logger=logger, server=server, creds=creds, lp=lp, domain=domain,
                       site=site, netbios_name=netbios_name, targetdir=targetdir,
diff --git a/selftest/knownfail.d/promote_dc_lmdb_size b/selftest/knownfail.d/promote_dc_lmdb_size
deleted file mode 100644 (file)
index 9661262..0000000
+++ /dev/null
@@ -1 +0,0 @@
-samba.tests.samba_tool.promote_dc_lmdb_size.samba.tests.samba_tool.promote_dc_lmdb_size.PromoteDcLmdbSizeTestCase.test_promote_dc_96Mb