[lxc-devel] [lxd/master] lxc-to-lxd: add more unsupported config keys

brauner on Github lxc-bot at linuxcontainers.org
Thu Dec 1 20:32:05 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 412 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161201/6a14015e/attachment.bin>
-------------- next part --------------
From 150c866af7c86f4b815b019869772e1bb9ead5a7 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Thu, 1 Dec 2016 21:29:46 +0100
Subject: [PATCH] lxc-to-lxd: add more unsupported config keys

- lxc.syslog
- lxc.ephemeral
- lxc.logfile

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 scripts/lxc-to-lxd | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/scripts/lxc-to-lxd b/scripts/lxc-to-lxd
index 516d12b..c6a9ae3 100755
--- a/scripts/lxc-to-lxd
+++ b/scripts/lxc-to-lxd
@@ -341,6 +341,27 @@ def convert_container(lxd_socket, container_name, args):
         print("Custom capabilities aren't supported, skipping...")
         return False
 
+    # Skip ephemeral
+    print("Processing container ephemeral configuration")
+    value = config_get(lxc_config, "lxc.ephemeral")
+    if value:
+        print("Setting lxc.ephemeral is not supported, skipping...")
+        return False
+
+    # Skip syslog
+    print("Processing container syslog configuration")
+    value = config_get(lxc_config, "lxc.syslog")
+    if value:
+        print("Setting lxc.syslog is not supported, skipping...")
+        return False
+
+    # Skip logfile
+    print("Processing container syslog configuration")
+    value = config_get(lxc_config, "lxc.logfile")
+    if value:
+        print("Setting lxc.logfile is not supported, skipping...")
+        return False
+
     # Setup the container creation request
     new = {'name': container_name,
            'source': {'type': 'none'},


More information about the lxc-devel mailing list