20859160 database connection configuration not migrated correctly from s12_69 to s12_71
authorPadma Dakoju <padma.dakoju@oracle.com>
Thu, 23 Apr 2015 14:20:50 -0600
changeset 4181 3ac4ce913bec
parent 4169 287ebf81b849
child 4183 b177c3d42668
20859160 database connection configuration not migrated correctly from s12_69 to s12_71
components/openstack/cinder/files/cinder-upgrade
components/openstack/glance/files/glance-upgrade
components/openstack/heat/files/heat-upgrade
components/openstack/keystone/files/keystone-upgrade
components/openstack/neutron/files/neutron-upgrade
components/openstack/nova/files/nova-upgrade
components/openstack/swift/files/swift-upgrade
--- a/components/openstack/cinder/files/cinder-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/cinder/files/cinder-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -163,6 +163,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -193,6 +194,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/glance/files/glance-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/glance/files/glance-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -172,6 +172,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -202,6 +203,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/heat/files/heat-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/heat/files/heat-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -161,6 +161,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -191,6 +192,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/keystone/files/keystone-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/keystone/files/keystone-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -175,6 +175,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -205,6 +206,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/neutron/files/neutron-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/neutron/files/neutron-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -143,6 +143,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -173,6 +174,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/nova/files/nova-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/nova/files/nova-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -221,6 +221,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if mapping is not None:
                 section, key = update_mapping(section, key, mapping)
@@ -251,6 +252,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")
--- a/components/openstack/swift/files/swift-upgrade	Wed Apr 22 13:06:06 2015 -0700
+++ b/components/openstack/swift/files/swift-upgrade	Thu Apr 23 14:20:50 2015 -0600
@@ -64,6 +64,7 @@
         for key, value in section_items:
             # keep a copy of the old value
             oldvalue = value
+            oldsection = section
 
             if not new.has_section(section):
                 if section != 'DEFAULT':
@@ -87,6 +88,7 @@
             if not new.has_option(section, key) or \
                '%SERVICE' in new.get(section, key):
                 new.set(section, key, value)
+            section = oldsection
 
     # copy the old conf file to a backup
     today = datetime.now().strftime("%Y%m%d%H%M%S")