#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import glob
('DEFAULT', 'rpc_thread_pool_size'):
('DEFAULT', 'executor_thread_pool_size'),
('profiler', 'profiler_enabled'): ('profiler', 'enabled'),
('DEFAULT', 'notification_driver'):
('oslo_messaging_notifications', 'driver'),
('DEFAULT', 'notification_topics'):
('oslo_messaging_notifications', 'topics'),
('DEFAULT', 'policy_default_rule'): ('oslo_policy', 'policy_default_rule'),
('DEFAULT', 'policy_dirs'): ('oslo_policy', 'policy_dirs'),
('DEFAULT', 'policy_file'): ('oslo_policy', 'policy_file'),
}
('database', 'connection'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'admin_tenant_name'),
('keystone_authtoken', 'signing_dir'),
]
# pull out the current version of config/upgrade-id
# extract the openstack-upgrade-id from the pkg
# No need to upgrade
# look for any .new files
# the versions are different, so perform an upgrade
# modify the configuration files
# backup all the old configuration files
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print