#
# 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', 'rpc_thread_pool_size'):
('DEFAULT', 'executor_thread_pool_size'),
('DEFAULT', 'nova_region_name'): ('nova', 'region_name'),
('DEFAULT', 'nova_admin_username'): ('nova', 'username'),
('DEFAULT', 'nova_admin_tenant_id'): ('nova', 'tenant_id'),
('DEFAULT', 'nova_admin_tenant_name'): ('nova', 'tenant_name'),
('DEFAULT', 'nova_admin_password'): ('nova', 'password'),
('DEFAULT', 'nova_admin_auth_url'): ('nova', 'auth_url'),
}
('database', 'connection'),
('keystone_authtoken', 'auth_uri'),
('keystone_authtoken', 'identity_uri'),
('keystone_authtoken', 'admin_tenant_name'),
('keystone_authtoken', 'admin_user'),
('keystone_authtoken', 'admin_password'),
('keystone_authtoken', 'signing_dir'),
# Do not overwrite EVS options with OVS options since upgrade
# doesn't handle EVS to OVS upgrade
('DEFAULT', 'core_plugin'),
('DEFAULT', 'service_plugins'),
('nova', 'username'),
('nova', 'tenant_name'),
('nova', 'password'),
('nova', 'auth_url'),
]
}
('DEFAULT', 'ovs_integration_bridge'),
('DEFAULT', 'interface_driver'),
('DEFAULT', 'external_network_bridge'),
('DEFAULT', 'auth_url'),
]
}
('DEFAULT', 'ovs_integration_bridge'),
('DEFAULT', 'interface_driver'),
]
('DEFAULT', 'auth_url'),
('DEFAULT', 'auth_region'),
('DEFAULT', 'admin_tenant_name'),
('DEFAULT', 'admin_user'),
('DEFAULT', 'admin_password'),
('DEFAULT', 'metadata_workers'),
]
('ovs', 'integration_bridge'),
('ovs', 'tunnel_bridge'),
('securitygroup', 'enable_security_group'),
('securitygroup', 'enable_ipset'),
]
('ml2', 'segment_mtu'): ('DEFAULT', 'global_physnet_mtu'),
}
('ml2', 'type_drivers'),
('ml2', 'tenant_network_types'),
('ml2', 'mechanism_drivers'),
('securitygroup', 'enable_security_group'),
('securitygroup', 'enable_ipset'),
]
# pull out the current version of config/upgrade-id
# extract the openstack-upgrade-id from the pkg
# No need to upgrade
# TODO: Kilo EVS check. If upgrade is from Kilo running EVS,
# fail the upgrade.
# look for any .new files
# the versions are different, so perform an upgrade
# modify the configuration files
# backup all the old configuration files
# look for any .new files for ml2 plugin
# modify the configuration files
# backup all the old configuration files
# update the current version
if __name__ == '__main__':
try:
print 'Unknown error: %s' % err
print