cinder-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', 'eqlx_chap_password'): ('DEFAULT', 'chap_password'),
('DEFAULT', 'eqlx_use_chap'): ('DEFAULT', 'use_chap_auth'),
('DEFAULT', 'eqlx_chap_login'): ('DEFAULT', 'chap_username'),
('DEFAULT', 'host'): ('DEFAULT', 'backend_host'),
('DEFAULT', 'db_backend'): ('database', 'backend'),
('DEFAULT', 'osapi_max_request_body_size'):
('oslo_middleware', 'max_request_body_size'),
}
('DEFAULT', 'osapi_volume_workers'),
('DEFAULT', 'auth_strategy'),
('DEFAULT', 'san_is_local'),
('DEFAULT', 'volume_driver'),
('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
# 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 cinder tables"
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print