keystone-upgrade revision 5403
#
# 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', 'admin_bind_host'): ('eventlet_server', 'admin_bind_host'),
('DEFAULT', 'admin_workers'): ('eventlet_server', 'admin_workers'),
('DEFAULT', 'admin_port'): ('eventlet_server', 'admin_port'),
('DEFAULT', 'tcp_keepidle'): ('eventlet_server', 'tcp_keepidle'),
('ssl', 'cert_required'): ('eventlet_server_ssl', 'cert_required'),
('DEFAULT', 'public_port'): ('eventlet_server', 'public_port'),
('DEFAULT', 'public_bind_host'): ('eventlet_server', 'public_bind_host'),
('DEFAULT', 'tcp_keepalive'): ('eventlet_server', 'tcp_keepalive'),
('DEFAULT', 'public_workers'): ('eventlet_server', 'public_workers'),
('ssl', 'keyfile'): ('eventlet_server_ssl', 'keyfile'),
('ssl', 'ca_certs'): ('eventlet_server_ssl', 'ca_certs'),
('ssl', 'enable'): ('eventlet_server_ssl', 'enable'),
('ssl', 'certfile'): ('eventlet_server_ssl', 'certfile'),
('DEFAULT', 'max_request_body_size'):
('oslo_middleware', 'max_request_body_size'),
('assignment', 'list_limit'): ('resource', 'list_limit'),
('assignment', 'caching'): ('resource', 'caching'),
('assignment', 'cache_time'): ('resource', 'cache_time'),
('token', 'revocation_cache_time'): ('revoke', 'cache_time'),
}
('eventlet_server', 'public_workers'),
('eventlet_server', 'admin_workers'),
('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 keystone tables"
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print