neutron-upgrade revision 4049
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', 'rabbit_durable_queues'): ('DEFAULT', 'amqp_durable_queues'), 3998N/A ('rpc_notifier2', 'topics'): ('DEFAULT', 'notification_topics'), 3998N/A ('DEFAULT', 'matchmaker_ringfile'): ('matchmaker_ring', 'ringfile'), 3998N/A # As of Juno, EVS now uses the standard quota driver 3998N/A ('DEFAULT', 'dnsmasq_dns_server'): ('DEFAULT', 'dnsmasq_dns_servers'), 3998N/A # No longer referenced by the service 3998N/A """ look for deprecated variables and, if found, convert it to the new 3998N/A print "Removing from configuration" 3998N/A """ Convert MySQL tables to use utf8 3998N/A # mysql is not ready. sleep for 2 more seconds 3998N/A print "Unable to connect to MySQL: %s" %
err 3998N/A print ("Please verify MySQL is properly configured and online " 3998N/A "before using svcadm(1M) to clear this service.") 3998N/A "CHARACTER SET 'utf8', COLLATE 'utf8_general_ci'" 3998N/A """ Copy over all uncommented options from the old configuration file. In 3998N/A # open the previous version 3998N/A # The upgrade did not deliver a .new file so, return 3998N/A # walk every single section for uncommented options 3998N/A # DEFAULT items show up in every section so remove them 3998N/A # keep a copy of the old value 3998N/A # option is deprecated so continue 3998N/A print "Changing [%s] %s:\n- %s\n+ %s" % \
3998N/A # the new configuration file does not have this option set so 3998N/A # Only copy the old value to the new conf file if the entry doesn't 3998N/A # exist or if it contains '%SERVICE' 3998N/A # copy the old conf file to a backup 3998N/A # copy the new conf file in place 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 3998N/A # In certain cases the database section does not exist and the 3998N/A # default database chosen is sqlite. 3998N/A # migrate EVS to Neutron db 3998N/A print "EVS to Neutron migration complete" 3998N/A print "altered character set to utf8 in neutron tables" 3998N/A # update the current version