glance-upgrade revision 4285
3998N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3998N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 3998N/A# not use this file except in compliance with the License. You may obtain 3998N/A# Unless required by applicable law or agreed to in writing, software 3998N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 3998N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 3998N/A# License for the specific language governing permissions and limitations 3998N/A ('DEFAULT', 'db_backend'): ('database', 'backend'), 3998N/A ('DEFAULT', 'sql_connection'): ('database', 'connection'), 3998N/A ('DATABASE', 'sql_connection'): ('database', 'connection'), 3998N/A ('sql', 'connection'): ('database', 'connection'), 3998N/A ('DEFAULT', 'sql_idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('DATABASE', 'sql_idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('sql', 'idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('DEFAULT', 'sql_min_pool_size'): ('database', 'min_pool_size'), 3998N/A ('DATABASE', 'sql_min_pool_size'): ('database', 'min_pool_size'), 3998N/A ('DEFAULT', 'sql_max_pool_size'): ('database', 'max_pool_size'), 3998N/A ('DATABASE', 'sql_max_pool_size'): ('database', 'max_pool_size'), 3998N/A ('DEFAULT', 'sql_max_retries'): ('database', 'max_retries'), 3998N/A ('DATABASE', 'sql_max_retries'): ('database', 'max_retries'), 3998N/A ('DEFAULT', 'sql_retry_interval'): ('database', 'retry_interval'), 3998N/A ('DATABASE', 'reconnect_interval'): ('database', 'retry_interval'), 3998N/A ('DEFAULT', 'sql_max_overflow'): ('database', 'max_overflow'), 3998N/A ('DATABASE', 'sqlalchemy_max_overflow'): ('database', 'max_overflow'), 3998N/A ('DEFAULT', 'sql_connection_debug'): ('database', 'connection_debug'), 3998N/A ('DEFAULT', 'sql_connection_trace'): ('database', 'connection_trace'), 3998N/A ('DATABASE', 'sqlalchemy_pool_timeout'): ('database', 'pool_timeout'), 4285N/A ('DEFAULT', 'filesystem_store_datadir'): 4285N/A ('glance_store', 'filesystem_store_datadir'), 4285N/A ('DEFAULT', 'swift_store_auth_version'): 4285N/A ('glance_store', 'swift_store_auth_version'), 4285N/A ('DEFAULT', 'swift_store_auth_address'): 4285N/A ('glance_store', 'swift_store_auth_address'), 4285N/A ('DEFAULT', 'swift_store_user'): ('glance_store', 'swift_store_user'), 4285N/A ('DEFAULT', 'swift_store_key'): ('glance_store', 'swift_store_key'), 4285N/A ('DEFAULT', 'swift_store_container'): 4285N/A ('glance_store', 'swift_store_container'), 4285N/A ('DEFAULT', 'swift_store_create_container_on_put'): 4285N/A ('glance_store', 'swift_store_create_container_on_put'), 4285N/A ('DEFAULT', 'swift_store_large_object_size'): 4285N/A ('glance_store', 'swift_store_large_object_size'), 4285N/A ('DEFAULT', 'swift_store_large_object_chunk_size'): 4285N/A ('glance_store', 'swift_store_large_object_chunk_size'), 4285N/A ('DEFAULT', 'swift_enable_snet'): ('glance_store', 'swift_enable_snet'), 4285N/A ('DEFAULT', 's3_store_host'): ('glance_store', 's3_store_host'), 4285N/A ('DEFAULT', 's3_store_access_key'): 4285N/A ('glance_store', 's3_store_access_key'), 4285N/A ('DEFAULT', 's3_store_secret_key'): 4285N/A ('glance_store', 's3_store_secret_key'), 4285N/A ('DEFAULT', 's3_store_bucket'): ('glance_store', 's3_store_bucket'), 4285N/A ('DEFAULT', 's3_store_create_bucket_on_put'): 4285N/A ('glance_store', 's3_store_create_bucket_on_put'), 4285N/A ('DEFAULT', 'sheepdog_store_address'): 4285N/A ('glance_store', 'sheepdog_store_address'), 4285N/A ('DEFAULT', 'sheepdog_store_port'): 4285N/A ('glance_store', 'sheepdog_store_port'), 4285N/A ('DEFAULT', 'sheepdog_store_chunk_size'): 4285N/A ('glance_store', 'sheepdog_store_chunk_size'), 4285N/A ('DEFAULT', 'registry_host'),
4285N/A ('DEFAULT', 'registry_port'),
4285N/A ('DEFAULT', 'registry_client_protocol'),
4285N/A ('DEFAULT', 'rabbit_host'),
4285N/A ('DEFAULT', 'rabbit_port'),
4285N/A ('DEFAULT', 'rabbit_use_ssl'),
4285N/A ('DEFAULT', 'rabbit_userid'),
4285N/A ('DEFAULT', 'rabbit_password'),
4285N/A ('DEFAULT', 'rabbit_virtual_host'),
4285N/A ('DEFAULT', 'rabbit_notification_exchange'),
4285N/A ('DEFAULT', 'rabbit_notification_topic'),
4285N/A ('DEFAULT', 'rabbit_durable_queues'),
4285N/A ('DEFAULT', 'qpid_notification_exchange'),
4285N/A ('DEFAULT', 'qpid_notification_topic'),
4285N/A ('DEFAULT', 'qpid_hostname'),
4285N/A ('DEFAULT', 'qpid_usernamd'),
4285N/A ('DEFAULT', 'qpid_password'),
4285N/A ('DEFAULT', 'qpid_sasl_mechanisms'),
4285N/A ('DEFAULT', 'qpid_reconnect_timeout'),
4285N/A ('DEFAULT', 'qpid_reconnect_limit'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval_min'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval_max'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval'),
4285N/A ('DEFAULT', 'qpid_heartbeat'),
4285N/A ('DEFAULT', 'qpid_protocol'),
4285N/A ('DEFAULT', 'qpid_tcp_nodelay'),
4285N/A ('DEFAULT', 'delayed_delete'),
4285N/A ('DEFAULT', 'scrubber_datadir'),
4285N/A ('DEFAULT', 'image_cache_dir'),
4285N/A ('database', 'connection'),
4285N/A ('keystone_authtoken', 'auth_uri'),
4285N/A ('keystone_authtoken', 'identity_uri'),
4285N/A ('keystone_authtoken', 'admin_tenant_name'),
4285N/A ('keystone_authtoken', 'admin_user'),
4285N/A ('keystone_authtoken', 'admin_password'),
4285N/A ('keystone_authtoken', 'revocation_cache_time'),
4285N/A ('keystone_authtoken', 'signing_dir'),
4285N/A ('paste_deploy', 'flavor'),
4285N/A ('glance_store', 'filesystem_store_datadir'),
4285N/A ('glance_store', 'swift_store_auth_version'),
4285N/A ('glance_store', 'swift_store_auth_address'),
4285N/A ('glance_store', 'swift_store_user'),
4285N/A ('glance_store', 'swift_store_key'),
4285N/A ('glance_store', 'swift_store_container'),
4285N/A ('glance_store', 'swift_store_create_container_on_put'),
4285N/A ('glance_store', 'swift_store_large_object_size'),
4285N/A ('glance_store', 'swift_store_large_object_chunk_size'),
4285N/A ('glance_store', 'swift_enable_snet'),
4285N/A ('glance_store', 's3_store_host'),
4285N/A ('glance_store', 's3_store_access_key'),
4285N/A ('glance_store', 's3_store_secret_key'),
4285N/A ('glance_store', 's3_store_bucket'),
4285N/A ('glance_store', 's3_store_create_bucket_on_put'),
4285N/A ('glance_store', 'sheepdog_store_address'),
4285N/A ('glance_store', 'sheepdog_store_port'),
4285N/A ('glance_store', 'sheepdog_store_chunk_size'),
4285N/A ('DEFAULT', 'image_cache_dir'),
4285N/A ('DEFAULT', 'image_cache_stall_time'),
4285N/A ('DEFAULT', 'image_cache_max_size'),
4285N/A ('DEFAULT', 'registry_host'),
4285N/A ('DEFAULT', 'registry_port'),
4285N/A ('DEFAULT', 'admin_tenant_name'),
4285N/A ('DEFAULT', 'admin_password'),
4285N/A ('DEFAULT', 'filesystem_store_datadir'),
4285N/A ('DEFAULT', 'swift_store_auth_version'),
4285N/A ('DEFAULT', 'swift_store_auth_address'),
4285N/A ('DEFAULT', 'swift_store_user'),
4285N/A ('DEFAULT', 'swift_store_key'),
4285N/A ('DEFAULT', 'swift_store_container'),
4285N/A ('DEFAULT', 'swift_store_create_container_on_put'),
4285N/A ('DEFAULT', 'swift_store_large_object_size'),
4285N/A ('DEFAULT', 'swift_store_large_object_chunk_size'),
4285N/A ('DEFAULT', 'swift_enable_snet'),
4285N/A ('DEFAULT', 's3_store_host'),
4285N/A ('DEFAULT', 's3_store_access_key'),
4285N/A ('DEFAULT', 's3_store_secret_key'),
4285N/A ('DEFAULT', 's3_store_bucket'),
4285N/A ('DEFAULT', 's3_store_create_bucket_on_put'),
3998N/A ('DEFAULT', 'db_backend'): ('database', 'backend'), 3998N/A ('DEFAULT', 'sql_connection'): ('database', 'connection'), 3998N/A ('DATABASE', 'sql_connection'): ('database', 'connection'), 3998N/A ('sql', 'connection'): ('database', 'connection'), 3998N/A ('DEFAULT', 'sql_idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('DATABASE', 'sql_idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('sql', 'idle_timeout'): ('database', 'idle_timeout'), 3998N/A ('DEFAULT', 'sql_min_pool_size'): ('database', 'min_pool_size'), 3998N/A ('DATABASE', 'sql_min_pool_size'): ('database', 'min_pool_size'), 3998N/A ('DEFAULT', 'sql_max_pool_size'): ('database', 'max_pool_size'), 3998N/A ('DATABASE', 'sql_max_pool_size'): ('database', 'max_pool_size'), 3998N/A ('DEFAULT', 'sql_max_retries'): ('database', 'max_retries'), 3998N/A ('DATABASE', 'sql_max_retries'): ('database', 'max_retries'), 3998N/A ('DEFAULT', 'sql_retry_interval'): ('database', 'retry_interval'), 3998N/A ('DATABASE', 'reconnect_interval'): ('database', 'retry_interval'), 3998N/A ('DEFAULT', 'sql_max_overflow'): ('database', 'max_overflow'), 3998N/A ('DATABASE', 'sqlalchemy_max_overflow'): ('database', 'max_overflow'), 3998N/A ('DEFAULT', 'sql_connection_debug'): ('database', 'connection_debug'), 3998N/A ('DEFAULT', 'sql_connection_trace'): ('database', 'connection_trace'), 3998N/A ('DATABASE', 'sqlalchemy_pool_timeout'): ('database', 'pool_timeout'), 4285N/A ('DEFAULT', 'api_limit_max'),
4285N/A ('DEFAULT', 'limit_param_default'),
4285N/A ('DEFAULT', 'rabbit_host'),
4285N/A ('DEFAULT', 'rabbit_port'),
4285N/A ('DEFAULT', 'rabbit_use_ssl'),
4285N/A ('DEFAULT', 'rabbit_userid'),
4285N/A ('DEFAULT', 'rabbit_password'),
4285N/A ('DEFAULT', 'rabbit_virtual_host'),
4285N/A ('DEFAULT', 'rabbit_notification_exchange'),
4285N/A ('DEFAULT', 'rabbit_notification_topic'),
4285N/A ('DEFAULT', 'rabbit_durable_queues'),
4285N/A ('DEFAULT', 'qpid_notification_exchange'),
4285N/A ('DEFAULT', 'qpid_notification_topic'),
4285N/A ('DEFAULT', 'qpid_hostname'),
4285N/A ('DEFAULT', 'qpid_usernamd'),
4285N/A ('DEFAULT', 'qpid_password'),
4285N/A ('DEFAULT', 'qpid_sasl_mechanisms'),
4285N/A ('DEFAULT', 'qpid_reconnect_timeout'),
4285N/A ('DEFAULT', 'qpid_reconnect_limit'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval_min'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval_max'),
4285N/A ('DEFAULT', 'qpid_reconnect_interval'),
4285N/A ('DEFAULT', 'qpid_heartbeat'),
4285N/A ('DEFAULT', 'qpid_protocol'),
4285N/A ('DEFAULT', 'qpid_tcp_nodelay'),
4285N/A ('database', 'connection'),
4285N/A ('keystone_authtoken', 'auth_uri'),
4285N/A ('keystone_authtoken', 'identity_uri'),
4285N/A ('keystone_authtoken', 'admin_tenant_name'),
4285N/A ('keystone_authtoken', 'admin_user'),
4285N/A ('keystone_authtoken', 'admin_password'),
4285N/A ('keystone_authtoken', 'signing_dir'),
4285N/A ('paste_deploy', 'flavor'),
4285N/A ('DEFAULT', 'filesystem_store_datadir'): 4285N/A ('glance_store', 'filesystem_store_datadir'), 4285N/A ('DEFAULT', 'wakeup_time'),
4285N/A ('DEFAULT', 'scrubber_datadir'),
4285N/A ('DEFAULT', 'cleanup_scrubber'),
4285N/A ('DEFAULT', 'cleanup_scrubber_time'),
4285N/A ('DEFAULT', 'registry_host'),
4285N/A ('DEFAULT', 'registry_port'),
4285N/A ('DEFAULT', 'admin_tenant_name'),
4285N/A ('DEFAULT', 'admin_password'),
4285N/A ('database', 'connection'),
4285N/A ('glance_store', 'filesystem_store_datadir'),
3998N/A # extract the openstack-upgrade-id from the pkg 3998N/A # the versions are different, so perform an upgrade 3998N/A # modify the configuration files 4285N/A # backup all the old configuration files 3998N/A # In certain cases the database section does not exist and the 3998N/A # default database chosen is sqlite. 3998N/A print "altered character set to utf8 in glance tables" 3998N/A # update the current version