#
# 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
# Deprecated from Kilo to Mitaka
('DEFAULT', 'rpc_thread_pool_size'):
('DEFAULT', 'executor_thread_pool_size'),
('DEFAULT', 'notification_driver'):
('oslo_messaging_notifications', 'driver'),
('DEFAULT', 'notification_topics'):
('oslo_messaging_notifications', 'topics'),
('glance_store', 'os_region_name'):
('glance_store', 'cinder_os_region_name'),
('keystone_authtoken', 'auth_plugin'):
('keystone_authtoken', 'auth_type'),
}
('DEFAULT', 'admin_tenant_name'),
('DEFAULT', 'admin_user'),
('DEFAULT', 'admin_password'),
('DEFAULT', 'bind_host'),
('DEFAULT', 'bind_port'),
('DEFAULT', 'log_file'),
('DEFAULT', 'backlog'),
('DEFAULT', 'workers'),
('DEFAULT', 'registry_host'),
('DEFAULT', 'registry_port'),
('DEFAULT', 'registry_client_protocol'),
('DEFAULT', 'delayed_delete'),
('DEFAULT', 'scrub_time'),
('DEFAULT', 'scrubber_datadir'),
('DEFAULT', 'image_cache_dir'),
('database', 'connection'),
('paste_deploy', 'flavor'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'admin_tenant_name'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'revocation_cache_time'),
('glance_store', 'filesystem_store_datadir'),
('glance_store', 'swift_store_auth_version'),
('glance_store', 'swift_store_auth_address'),
('glance_store', 'swift_store_user'),
('glance_store', 'swift_store_key'),
('glance_store', 'swift_store_container'),
('glance_store', 'swift_store_create_container_on_put'),
('glance_store', 'swift_store_large_object_size'),
('glance_store', 'swift_store_large_object_chunk_size'),
('glance_store', 's3_store_host'),
('glance_store', 's3_store_create_bucket_on_put'),
('glance_store', 'sheepdog_store_address'),
('glance_store', 'sheepdog_store_port'),
('glance_store', 'sheepdog_store_chunk_size'),
('oslo_messaging_rabbit', 'rabbit_host'),
('oslo_messaging_rabbit', 'rabbit_port'),
('oslo_messaging_rabbit', 'rabbit_use_ssl'),
('oslo_messaging_rabbit', 'rabbit_userid'),
('oslo_messaging_rabbit', 'rabbit_password'),
('oslo_messaging_rabbit', 'rabbit_virtual_host'),
('oslo_messaging_rabbit', 'rabbit_notification_exchange'),
('oslo_messaging_rabbit', 'rabbit_notification_topic'),
('oslo_messaging_rabbit', 'rabbit_durable_queues'),
('oslo_messaging_qpid', 'qpid_notification_exchange'),
('oslo_messaging_qpid', 'qpid_notification_topic'),
('oslo_messaging_qpid', 'qpid_hostname'),
('oslo_messaging_qpid', 'qpid_port'),
('oslo_messaging_qpid', 'qpid_usernamd'),
('oslo_messaging_qpid', 'qpid_password'),
('oslo_messaging_qpid', 'qpid_sasl_mechanisms'),
('oslo_messaging_qpid', 'qpid_reconnect_timeout'),
('oslo_messaging_qpid', 'qpid_reconnect_limit'),
('oslo_messaging_qpid', 'qpid_reconnect_interval_min'),
('oslo_messaging_qpid', 'qpid_reconnect_interval_max'),
('oslo_messaging_qpid', 'qpid_reconnect_interval'),
('oslo_messaging_qpid', 'qpid_heartbeat'),
('oslo_messaging_qpid', 'qpid_protocol'),
('oslo_messaging_qpid', 'qpid_tcp_nodelay'),
]
}
('DEFAULT', 'log_file'),
('DEFAULT', 'image_cache_dir'),
('DEFAULT', 'image_cache_stall_time'),
('DEFAULT', 'image_cache_max_size'),
('DEFAULT', 'registry_host'),
('DEFAULT', 'registry_port'),
('DEFAULT', 'auth_url'),
('DEFAULT', 'admin_tenant_name'),
('DEFAULT', 'admin_user'),
('DEFAULT', 'admin_password'),
('DEFAULT', 'filesystem_store_datadir'),
]
('DEFAULT', 'rpc_thread_pool_size'):
('DEFAULT', 'executor_thread_pool_size'),
('DEFAULT', 'notification_driver'):
('oslo_messaging_notifications', 'driver'),
('DEFAULT', 'notification_topics'):
('oslo_messaging_notifications', 'topics'),
('glance_store', 'os_region_name'):
('glance_store', 'cinder_os_region_name'),
('keystone_authtoken', 'auth_plugin'):
('keystone_authtoken', 'auth_type'),
}
('DEFAULT', 'bind_host'),
('DEFAULT', 'bind_port'),
('DEFAULT', 'log_file'),
('DEFAULT', 'backlog'),
('DEFAULT', 'workers'),
('DEFAULT', 'limit_param_default'),
('database', 'connection'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'admin_tenant_name'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'signing_dir'),
('oslo_messaging_rabbit', 'rabbit_host'),
('oslo_messaging_rabbit', 'rabbit_port'),
('oslo_messaging_rabbit', 'rabbit_use_ssl'),
('oslo_messaging_rabbit', 'rabbit_userid'),
('oslo_messaging_rabbit', 'rabbit_password'),
('oslo_messaging_rabbit', 'rabbit_virtual_host'),
('oslo_messaging_rabbit', 'rabbit_notification_exchange'),
('oslo_messaging_rabbit', 'rabbit_notification_topic'),
('oslo_messaging_rabbit', 'rabbit_durable_queues'),
('oslo_messaging_qpid', 'qpid_notification_exchange'),
('oslo_messaging_qpid', 'qpid_notification_topic'),
('oslo_messaging_qpid', 'qpid_hostname'),
('oslo_messaging_qpid', 'qpid_port'),
('oslo_messaging_qpid', 'qpid_usernamd'),
('oslo_messaging_qpid', 'qpid_password'),
('oslo_messaging_qpid', 'qpid_sasl_mechanisms'),
('oslo_messaging_qpid', 'qpid_reconnect_timeout'),
('oslo_messaging_qpid', 'qpid_reconnect_limit'),
('oslo_messaging_qpid', 'qpid_reconnect_interval_min'),
('oslo_messaging_qpid', 'qpid_reconnect_interval_max'),
('oslo_messaging_qpid', 'qpid_reconnect_interval'),
('oslo_messaging_qpid', 'qpid_heartbeat'),
('oslo_messaging_qpid', 'qpid_protocol'),
('oslo_messaging_qpid', 'qpid_tcp_nodelay'),
('paste_deploy', 'flavor'),
]
}
('DEFAULT', 'log_file'),
('DEFAULT', 'wakeup_time'),
('DEFAULT', 'scrubber_datadir'),
('DEFAULT', 'cleanup_scrubber'),
('DEFAULT', 'cleanup_scrubber_time'),
('DEFAULT', 'registry_host'),
('DEFAULT', 'registry_port'),
('DEFAULT', 'auth_url'),
('DEFAULT', 'admin_tenant_name'),
('DEFAULT', 'admin_user'),
('DEFAULT', 'admin_password'),
('database', 'connection'),
]
# 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
# In certain cases the database section does not exist and the
# default database chosen is sqlite.
if engine.url.username != '%SERVICE_USER%':
print "altered character set to utf8 in glance tables"
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print