31f88379b8
The old instance reservation feature is not supported from the Ocata release of Blazar, since it relies on the v2 API of Nova with has been removed. Additionally, the Blazar project has started to implement a new instance reservation feature which doesn't rely on deprecated Nova APIs. This patch removes the old instance reservation plugin. If a deployer specifies 'basic.vm.plugin' in the plugins config parameter, the blazar-manager service will fail to start. Partially implements: blueprint new-instance-reservation Change-Id: If5b0efb4910b05cc3c2881bb705953528895f277
51 lines
1.8 KiB
Python
51 lines
1.8 KiB
Python
# 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# 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 itertools
|
|
|
|
import blazar.api.v2.app
|
|
import blazar.api.v2.controllers
|
|
import blazar.cmd.api
|
|
import blazar.config
|
|
import blazar.db.base
|
|
import blazar.db.migration.cli
|
|
import blazar.manager
|
|
import blazar.manager.service
|
|
import blazar.notification.notifier
|
|
import blazar.plugins.oshosts.host_plugin
|
|
import blazar.utils.openstack.keystone
|
|
import blazar.utils.openstack.nova
|
|
|
|
|
|
def list_opts():
|
|
return [
|
|
('DEFAULT',
|
|
itertools.chain(
|
|
blazar.api.v2.app.auth_opts,
|
|
blazar.cmd.api.api_opts,
|
|
blazar.cmd.api.opts,
|
|
blazar.config.cli_opts,
|
|
blazar.config.os_opts,
|
|
blazar.db.base.db_driver_opts,
|
|
blazar.db.migration.cli.command_opts,
|
|
blazar.utils.openstack.keystone.opts,
|
|
blazar.utils.openstack.keystone.keystone_opts)),
|
|
('api', blazar.api.v2.controllers.api_opts),
|
|
('manager', itertools.chain(blazar.manager.opts,
|
|
blazar.manager.service.manager_opts)),
|
|
('notifications', blazar.notification.notifier.notification_opts),
|
|
('nova', blazar.utils.openstack.nova.nova_opts),
|
|
(blazar.plugins.oshosts.RESOURCE_TYPE,
|
|
blazar.plugins.oshosts.host_plugin.plugin_opts),
|
|
]
|