Ubuntu Pastebin

Paste from smoser at Mon, 21 Mar 2016 18:15:45 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
=== modified file 'cloudinit/distros/debian.py'
--- cloudinit/distros/debian.py	2016-03-11 21:10:47 +0000
+++ cloudinit/distros/debian.py	2016-03-15 20:55:43 +0000
@@ -43,6 +43,14 @@
 }
 
 
+def render_network_config(config, target="/"):
+    version = config['version']
+    config = config['config']
+    ns = net.network_state.NetworkState(version=version, config=config)
+    ns.parse_config()
+    net.render_network_state(target, ns.network_state)
+
+
 class Distro(distros.Distro):
     hostname_conf_fn = "/etc/hostname"
     locale_conf_fn = "/etc/default/locale"
@@ -78,8 +86,10 @@
         return ['all']
 
     def _write_network_config(self, netconfig):
-        ns = net.parse_net_config_data(netconfig)
-        net.render_network_state(network_state=ns, target="/")
+        print("writing network config %s" % netconfig)
+        render_network_config(netconfig)
+        #ns = net.parse_net_config_data(netconfig)
+        #net.render_network_state(network_state=ns, target="/")
         return []
 
     def _bring_up_interfaces(self, device_names):

=== modified file 'config/cloud.cfg.d/05_logging.cfg'
--- config/cloud.cfg.d/05_logging.cfg	2014-01-14 18:18:14 +0000
+++ config/cloud.cfg.d/05_logging.cfg	2016-03-14 18:36:04 +0000
@@ -30,7 +30,7 @@
    
    [handler_consoleHandler]
    class=StreamHandler
-   level=WARNING
+   level=INFO
    formatter=arg0Formatter
    args=(sys.stderr,)
    
Download as text