#
# 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'),
('agent', 'agent_erase_devices_priority'):
('deploy', 'erase_devices_priority'),
('agent', 'manage_tftp'): ('agent', 'manage_agent_boot'),
('profiler', 'profiler_enabled'): ('profiler', 'enabled'),
}
('DEFAULT', 'auth_strategy'),
('DEFAULT', 'enabled_drivers'),
('DEFAULT', 'pybasedir'),
('DEFAULT', 'bindir'),
('DEFAULT', 'state_path'),
('ai', 'server'),
('ai', 'username'),
('api', 'api_workers'),
('database', 'connection'),
('keystone_authtoken', 'admin_tenant_name'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'auth_host'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'signing_dir'),
('solaris_ipmi', 'imagecache_dirname'),
('solaris_ipmi', 'imagecache_lock_timeout'),
]
# 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