Add a nova cli "nova host-maintenance" to query and enable/disable
the host maintenance mode for a specified host.
For detail usage, please refer to: "nova help host-maintenance".
Change-Id: Ibc3f92521546a82672b1619f7b65416909d92dfc
Closes-Bug: 1386026
nova conductor api removed bdm destroy function, we need to move back
to use db api to remove bdm.
Closes-Bug: #1383541
Change-Id: I0ee732685ee9fb5f2ea9b6138b42ec267819009e
nova is switching to use oslo.i18n, oslo.utils, oslo.serialization with
change
d0e0ade702
nova.openstack.common removed some modules that has been replaced by the
ones from oslo.i18n, oslo.utils, oslo.serialization.
Closes-Bug: #1384039
Change-Id: I9fae9b61599a50b54fc40552b2c90fceb75d8522
Add document for new host-maintenance-mode feature. For detail,
please refer to the host_maintenance_mode.rst.
Change-Id: I0d61ba75a2c7b551fbced54d1a8a297fa58fdb4f
Closes-Bug: 1381325
In order to comply with local Openstack, change this value to more
general value "Lock"
Change-Id: I823392629ade0d98ead14bc814682f64da4a9745
Closes-Bug: #1380908
This is a community nova change in: nova/network/neutronv2/api.py.
https://github.com/openstack/nova/commit/
65a4a6b0085f8639de2df2ccb5a17a5449d676ae
Need driver to change to db object to nova object before call the api
Change-Id: Ia783eec434f9d167b3386e5fa58496e952dbc7b4
Closes-Bug: 1379691
Image updated failed when the glance-powervc did the periodic
sync , it is because of the code changes of the component
glanceclient in the openstack community.
Change-Id: I149faeb1631c0f996ff529325eb8a71d9d92efc0
Closes-Bug: #1379637
The value of the property 'free_disk_gb' in the hypervisor info is
invalid in the Powervc. And the PowerVC will set it as a big value.
It will lead the overflow of the database.
Change-Id: I0eae9f393cd1c191230c71687450318539d58e02
Closes-Bug: 1370895
Fix the issue that neutron-powervc debug utility needs a conf file and
also remove other powervc python program needs to add config files
during startup, set the default configure file for ampq files if those
are not presented in CLI.
Closes-Bug: #1375618
Change-Id: Idfc1a43a5e583678106b8d1cbed2738c1863254c
User call the following hosting cli to add a vNIC with IP and port
specified:
nova interface-attach --net-id {net_uuid} --fixed-ip {ipAddress}
<server_name>
PowerVC driver handle the request in the following driver method:
def attach_interface(self, instance, image_meta, network_info):
then call the PowerVC restAPI to attach the interface to server.
User call the following hosting cli to remove a vNIC with port
specified:
nova interface-detach <server-id> <port-id>
PowerVC driver handle the request in the following driver method:
def detach_interface(self, instance, network_info):
then call the PowerVC restAPI to attach the interface to server.
Change-Id: If0ae14a86005da06dc35620c2af47f37112228d5
Closes-Bug: #1375132
Remove the log.isEnabledFor in message.py as neutron does not sync the
oslo-incubate as nova's level, there is no isEnabledFor at this time in
neutron openstack.common.log.
Closes-Bug: #1373416
Change-Id: I1abda8017f55785e807d20dfa4d574c0a7016f60
nova community has strictly limitted hypervisor support list to a
pre-defined list. We need to support "phyp" type, which is an equivalent
of previous "powervm"
Change-Id: Ia0ee2eabfb5230255fe80409998bf148593e0f7d
Closes-Bug: #1373293
In order to select an SCG / Storage Template , we add an extra
propertity to image properties , UI could use this data to format
the data for user to select the specific SCG / Storage Template ,
and also, other components which consumes PowerVC images in
Openstack can also leverage this.
Change-Id: I4b9dba719dada3823dc159748d15a3266ca9efa3
Closes-Bug: #1362904
To support GET the "host maintenance mode" from PowerVC by
PowerVC Driver, and evacuation all host out of the maintenance
entered host by PowerVC Driver. The design finally goes to Implement a
new nova rest-API for Get/Set maintenance status, and evacuate
vm during maintenance.
Change-Id: I9fba6b47e143ae8ea2165573302448fcdc61406f
Closes-Bug: 1372730
In current powervc driver code, our sync code will always set the nova
instance root_device_name as None, this will break nova framework's
device name auto-assign function if the device name is not provide while
volume attachment. PowerVC itself will not set it's instance
root_device_name from it's implemenation, for PowerVC driver, we just
get the device name of the boot volume from the powervc side, and make
it as the root_device_name of the nova instance.
Closes-Bug: #1369577
Change-Id: I7e71573e7b83ec9f8c34cfa4f0a1736b90402a90
According to new PowerVC neutron locked port logic, adding magic device
id to PowerVC neutron agent synchronization logic.
Change-Id: I4366cd91c31388a77e08848021afd202661bbed3
glance client is not refreshing the keystone token after expiration with
it's commit:
dbb242b776,
we need to patch this in our glance client to refresh the auth_token in
it's session head.
Closes-Bug: #1370402
Change-Id: I9c7a6620a587e855d7f9df8ad83450489daa8247
To adapt to new configuration files.
Check blueprint new-configuration-strategy-needed-to-adapt-to-oslo-messaging
Closes-Bug: 1370337
Change-Id: Ic8e624206490680de07827613d4474bac62686a9
(cherry picked from commit ba29f897db)
This is based on Oslo messaging API that supports RPC and notifications over a
number of different messsaging transports.
* remove old powervc.common.messaging and create a new one to adapt to Oslo
messaging
* adapt all sync service managers to new messaging model
Change-Id: I0c9b4a9fa5bb5d0eaac1433e768a110871d8dab8
Closes-Bug: 1363618
* Extract and remove --config-file amqp_openstack.conf(or
amqp-openstack-neutron and --config-file amqp-powervc.conf from sys.argv to
create 2 AMQP cfg.ConfigOpts objects without conflicting with other options
parsing as before, particularly those OpenStack AMQP configurations in
[DEFAULT] section of nova.conf, cinder.conf.
* adapt all affected code to the new config strategy
Implements: blueprint
https://blueprints.launchpad.net/powervc-driver/+spec/new-configuration-strategy-needed-to-adapt-to-oslo-messaging
Closes-Bug: 1356225
Change-Id: I61a4fd0c28148e31a8cb85acea3793f40028dfb4
Add a script to help to create common utils symbolic links for each driver
component.
Change-Id: I45914db6d366511235e0e9507bc000e50651c992
Closes-Bug: 1356720
Because of the code change of glanceclient , the component of glance-
powervc could not do the image sync sucessfully.
Change-Id: If0b31e20ec645478584c2dc08ad0aa48bb8db392
Closes-Bug: #1369817
We need to use primitive object while create nova client Server object
instead of directly using nova.object.Instance object, because the
Server object construction will mess up the nova.object.Instance change
fields, that will result in the db updating operation will not update
the field like "updated_at".
Closes-Bug: #1365895
Change-Id: Ifc8e41c753b5fa2fa73d1eb1a4c02cdcec363460
Openstack in cinder-powervc
Currently cinder service uses threading instead of eventlet's event,
This causes if you don't monkey patch threading, it will hang there
all the time. For detail, check this fix in incubator project:
https://github.com/openstack/oslo-incubator/commit/\
1e7007824374842bc8108dff5e5e2694e12932b2
Will create a bug to cinder to fix this. Temporarily fix is to replace
cinder service instead of nova service in 1365373.
Change-Id: Ibe770e51563f43495228d84dd6d0284a62bba9e8
Closes-Bug: #1365373
PowerVC cinder driver __init__ does not call it's super's __init__,
and latest cinder driver change result in cinder-volume can not be
started due to this reason.
Closes-Bug: #1363846
Change-Id: I4743513b115fd02521fac546985981ea5197527c
To enhance the code to fetch volume display_name for latest PowerVC
If fetched "display_name" is empty then fetch "name" instead, if
still empty then just display local os as empty as previous.
Change-Id: I43161b50d153d9ed3750f8a2ea740c0dce633e35
Closes-Bug: #1363846
As a cloud admin, it is able to set the host managed by PowerVC to
"maintenance mode" and disable the "maintenance mode" support, through
PowerVC Driver.
1. If set maintenance mode to "true" it responses: "on_maintenance"
2. If set maintenance mode to "false" it responses: "off_maintenance"
3. If set maintenance mode to "true" when the host is already in
maintenance mode, it will report the error message from PowerVC to user.
Change-Id: I59ef830244202a4337ad72292e6341406b8464d3
Closes-Bug: #1363912