nova-upgrade revision 6033
269N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 269N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 269N/A# not use this file except in compliance with the License. You may obtain 269N/A# a copy of the License at 269N/A# Unless required by applicable law or agreed to in writing, software 269N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 269N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 269N/A# License for the specific language governing permissions and limitations 269N/A ('cinder', 'http_timeout'): ('cinder', 'timeout'), 269N/A ('DEFAULT', 'amqp_durable_queues'): 269N/A ('oslo_messaging_qpid', 'amqp_durable_queues'), 269N/A ('DEFAULT', 'amqp_auto_delete'): 269N/A ('oslo_messaging_qpid', 'amqp_auto_delete'), 269N/A ('DEFAULT', 'rpc_conn_pool_size'): 269N/A ('oslo_messaging_qpid', 'rpc_conn_pool_size'), 269N/A ('DEFAULT', 'qpid_hostname'): 269N/A ('oslo_messaging_qpid', 'qpid_hostname'), 269N/A ('DEFAULT', 'qpid_port'): 269N/A ('oslo_messaging_qpid', 'qpid_port'), 269N/A ('DEFAULT', 'qpid_hosts'): 269N/A ('oslo_messaging_qpid', 'qpid_hosts'), 269N/A ('DEFAULT', 'qpid_username'): 269N/A ('oslo_messaging_qpid', 'qpid_username'), 269N/A ('DEFAULT', 'qpid_password'): 269N/A ('oslo_messaging_qpid', 'qpid_password'), 269N/A ('DEFAULT', 'qpid_sasl_mechanisms'): 269N/A ('oslo_messaging_qpid', 'qpid_sasl_mechanisms'), 269N/A ('DEFAULT', 'qpid_heartbeat'): 269N/A ('oslo_messaging_qpid', 'qpid_heartbeat'), 269N/A ('DEFAULT', 'qpid_protocol'): 269N/A ('oslo_messaging_qpid', 'qpid_protocol'), 269N/A ('DEFAULT', 'qpid_tcp_nodelay'): 269N/A ('oslo_messaging_qpid', 'qpid_tcp_nodelay'), ('DEFAULT', 'qpid_receiver_capacity'): ('oslo_messaging_qpid', 'qpid_receiver_capacity'), ('DEFAULT', 'qpid_topology_version'): ('oslo_messaging_qpid', 'qpid_topology_version'), ('DEFAULT', 'kombu_ssl_version'): ('oslo_messaging_rabbit', 'kombu_ssl_version'), ('DEFAULT', 'kombu_ssl_keyfile'): ('oslo_messaging_rabbit', 'kombu_ssl_keyfile'), ('DEFAULT', 'kombu_ssl_certfile'): ('oslo_messaging_rabbit', 'kombu_ssl_certfile'), ('DEFAULT', 'kombu_ssl_ca_certs'): ('oslo_messaging_rabbit', 'kombu_ssl_ca_certs'), ('DEFAULT', 'kombu_reconnect_delay'): ('oslo_messaging_rabbit', 'kombu_reconnect_delay'), ('DEFAULT', 'rabbit_host'): ('oslo_messaging_rabbit', 'rabbit_host'), ('DEFAULT', 'rabbit_port'): ('oslo_messaging_rabbit', 'rabbit_port'), ('DEFAULT', 'rabbit_hosts'): ('oslo_messaging_rabbit', 'rabbit_hosts'), ('DEFAULT', 'rabbit_use_ssl'): ('oslo_messaging_rabbit', 'rabbit_use_ssl'), ('DEFAULT', 'rabbit_userid'): ('oslo_messaging_rabbit', 'rabbit_userid'), ('DEFAULT', 'rabbit_password'): ('oslo_messaging_rabbit', 'rabbit_password'), ('DEFAULT', 'rabbit_login_method'): ('oslo_messaging_rabbit', 'rabbit_login_method'), ('DEFAULT', 'rabbit_virtual_host'): ('oslo_messaging_rabbit', 'rabbit_virtual_host'), ('DEFAULT', 'rabbit_retry_backoff'): ('oslo_messaging_rabbit', 'rabbit_retry_backoff'), ('DEFAULT', 'rabbit_max_retries'): ('oslo_messaging_rabbit', 'rabbit_max_retries'), ('DEFAULT', 'rabbit_ha_queues'): ('oslo_messaging_rabbit', 'rabbit_ha_queues'), ('DEFAULT', 'fake_rabbit'): ('oslo_messaging_rabbit', 'fake_rabbit'), ('DEFAULT', 'osapi_max_request_body_size'): ('oslo_middleware', 'max_request_body_size'), ('neutron', 'ca_certificates_file'): ('neutron', 'cafile'), ('neutron', 'admin_user_id'): (None, None), ('neutron', 'admin_tenant_id'): (None, None), ('DEFAULT', 'log_format'): (None, None), ('cinder', 'api_insecure'): ('cinder', 'insecure'), ('DEFAULT', 'share_dhcp_address'): (None, None), ('neutron', 'api_insecure'): ('neutron', 'insecure'), ('cinder', 'ca_certificates_file'): ('cinder', 'cafile'), ('neutron', 'url_timeout'): ('neutron', 'timeout'), ('neutron', 'allow_duplicate_networks'): (None, None), ('DEFAULT', 'ec2_workers'),
('DEFAULT', 'osapi_compute_workers'),
('DEFAULT', 'metadata_workers'),
('DEFAULT', 'lock_path'),
('DEFAULT', 'novncproxy_base_url'),
('conductor', 'workers'),
('database', 'connection'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'signing_dir'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'admin_tenant_name'),
('neutron', 'service_metadata_proxy'),
# extract the openstack-upgrade-id from the pkg p =
Popen(['/usr/bin/pkg', 'contents', '-H', '-t', 'set', '-o', 'value', # look for any .new files # the versions are different, so perform an upgrade # modify the configuration files # backup all the old configuration files # (to use the default value). If it is, and none of other deprecated # open the previous version ('database', 'sql_connection'),
('database', 'connection'),
('DEFAULT', 'sql_connection') # In certain cases the database section does not exist and the # default database chosen is sqlite. print "altered character set to utf8 in nova tables" # update the current version print 'Unknown error: %s' %
err