← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~suro-patz/cloud-init/vm-clone-ip-reusage-dep-fix into lp:cloud-init

 

Surojit Pathak has proposed merging lp:~suro-patz/cloud-init/vm-clone-ip-reusage-dep-fix into lp:cloud-init.

Requested reviews:
  Joshua Harlow (harlowja)
  Scott Moser (smoser)
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~suro-patz/cloud-init/vm-clone-ip-reusage-dep-fix/+merge/255543

While booting a VM from a snapshot image, network service use to find the residual network config scripts and use to configure the old IPs. cloud-init-local use to run later and populate the config scripts with latest information, which does not override the previous configuration.

To solve this, we are ensuring that cloud-init-local runs before network.

Please find the following discussion to set the context further -

https://bugs.launchpad.net/cloud-init/+bug/1225922
https://bugs.launchpad.net/cloud-init/+bug/1275098
https://code.launchpad.net/~suro-patz/cloud-init/vm-clone-ip-reusage-issue/+merge/252961
-- 
Your team cloud init development team is requested to review the proposed merge of lp:~suro-patz/cloud-init/vm-clone-ip-reusage-dep-fix into lp:cloud-init.
=== modified file 'packages/brpm'
--- packages/brpm	2015-01-21 22:56:53 +0000
+++ packages/brpm	2015-04-08 16:43:40 +0000
@@ -40,7 +40,7 @@
         'jinja2': 'python-jinja2',
         'configobj': 'python-configobj',
         'jsonpatch': 'python-jsonpatch',
-        'oauth': 'python-oauth',
+        'oauthlib': 'python-oauth',
         'prettytable': 'python-prettytable',
         'pyserial': 'pyserial',
         'pyyaml': 'PyYAML',

=== modified file 'sysvinit/redhat/cloud-init-local'
--- sysvinit/redhat/cloud-init-local	2013-07-19 07:23:53 +0000
+++ sysvinit/redhat/cloud-init-local	2015-04-08 16:43:40 +0000
@@ -23,9 +23,12 @@
 # See: http://www.novell.com/coolsolutions/feature/15380.html
 # Also based on dhcpd in RHEL (for comparison)
 
+# Bring this up before network, S10
+#chkconfig: 2345 09 91
+
 ### BEGIN INIT INFO
 # Provides:          cloud-init-local
-# Required-Start:    $local_fs $remote_fs
+# Required-Start:    $local_fs
 # Should-Start:      $time
 # Required-Stop:
 # Should-Stop: