nova-powervm/nova_powervm/cmd/conductor.py
Chhavi Agarwal c3ce18868e Conductor changes to register nova-powervm objects
Nova now sends the LiveMigrateData objects exclusively to
pass data between compute managers and conductor during live
migration. Since dicts are no longer supported the conversion
to objects must be done to continue to support live migration.

A previous change set added the object support to the nova-powervm
project.  This change set adds the hack (as the nova core team described
to the PowerVM team on Feb 24th in IRC) that enables operators to use a
custom conductor that supports the PowerVM live migrate object.

Change-Id: I2517d543cc66696a43b2cdb160e2452653f402f1
Closes-Bug: #1551954
2016-03-23 08:11:39 -04:00

32 lines
1.0 KiB
Python

# Copyright 2016 IBM Corp.
#
# All Rights Reserved.
#
# 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.
"""Starter script for PowerVM Nova Conductor service."""
from nova.cmd import conductor
from nova_powervm import objects
def main():
# The only reason we need this module is to ensure the PowerVM version of
# the migrate data object is registered. See:
# http://eavesdrop.openstack.org/irclogs/%23openstack-nova/
# %23openstack-nova.2016-02-24.log.html
objects.register_all()
conductor.main()