#
# 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', 'vnc_keymap'): ('vnc', 'keymap'),
('DEFAULT', 'vnc_enabled'): ('vnc', 'enabled'),
('DEFAULT', 'xvpvncproxy_base_url'): ('vnc', 'xvpvncproxy_base_url'),
('neutron', 'admin_username'): ('neutron', 'username'),
('DEFAULT', 'ssl_ca_file'): ('ssl', 'ca_file'),
('DEFAULT', 'novncproxy_base_url'): ('vnc', 'novncproxy_base_url'),
('DEFAULT', 'ssl_cert_file'): ('ssl', 'cert_file'),
('DEFAULT', 'vncserver_proxyclient_address'):
('vnc', 'vncserver_proxyclient_address'),
('neutron', 'admin_tenant_name'): ('neutron', 'tenant_name'),
('DEFAULT', 'rpc_thread_pool_size'):
('DEFAULT', 'executor_thread_pool_size'),
('DEFAULT', 'vncserver_listen'): ('vnc', 'vncserver_listen'),
('neutron', 'admin_password'): ('neutron', 'password'),
('DEFAULT', 'ssl_key_file'): ('ssl', 'key_file'),
('neutron', 'admin_auth_url'): ('neutron', 'auth_url'),
# move noVNC proxy configuration from DEFAULT to the vnc group
('DEFAULT', 'novncproxy_port'): ('vnc', 'novncproxy_port'),
('DEFAULT', 'novncproxy_host'): ('vnc', 'novncproxy_host'),
# move entries from DEFAULT.nova.virt.solariszones.driver to its own
# section
('DEFAULT', 'boot_volume_type'): ('solariszones', 'boot_volume_type'),
('DEFAULT', 'boot_volume_az'): ('solariszones', 'boot_volume_az'),
('DEFAULT', 'glancecache_dirname'):
('solariszones', 'glancecache_dirname'),
('DEFAULT', 'live_migration_cipher'):
('solariszones', 'live_migration_cipher'),
('DEFAULT', 'solariszones_snapshots_directory'):
('solariszones', 'solariszones_snapshots_directory'),
('DEFAULT', 'zones_suspend_path'): ('solariszones', 'zones_suspend_path'),
('DEFAULT', 'solariszones_boot_options'):
('solariszones', 'solariszones_boot_options'),
}
}
('DEFAULT', 'ec2_workers'),
('DEFAULT', 'osapi_compute_workers'),
('DEFAULT', 'metadata_workers'),
('DEFAULT', 'lock_path'),
('DEFAULT', 'ovs_bridge'),
('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'),
('neutron', 'username'),
('neutron', 'password'),
('neutron', 'tenant_name'),
('neutron', 'auth_url'),
('vnc', 'novncproxy_base_url'),
]
# 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
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print