20859160 database connection configuration not migrated correctly from s12_69 to s12_71 s11u2-sru
authorPadma Dakoju <padma.dakoju@oracle.com>
Wed, 29 Apr 2015 13:58:24 -0700
branchs11u2-sru
changeset 4217 631d20122b9c
parent 4216 27e9e7478812
child 4218 94c0a1195837
20859160 database connection configuration not migrated correctly from s12_69 to s12_71
components/openstack/cinder/files/cinder-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 29 14:14:32 2015 -0600
+++ b/components/openstack/cinder/files/cinder-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -166,6 +166,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)
@@ -196,6 +197,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 29 14:14:32 2015 -0600
+++ b/components/openstack/heat/files/heat-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -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 29 14:14:32 2015 -0600
+++ b/components/openstack/keystone/files/keystone-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -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 29 14:14:32 2015 -0600
+++ b/components/openstack/neutron/files/neutron-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -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 29 14:14:32 2015 -0600
+++ b/components/openstack/nova/files/nova-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -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 29 14:14:32 2015 -0600
+++ b/components/openstack/swift/files/swift-upgrade	Wed Apr 29 13:58:24 2015 -0700
@@ -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")