To adapt to new configuration files.
Check blueprint new-configuration-strategy-needed-to-adapt-to-oslo-messaging
Closes-Bug: 1370337
Change-Id: Ic8e624206490680de07827613d4474bac62686a9
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
Currently, powervc driver image sync service will sync the powervc image
meta properties to hosting openstack side, it's using
HTMLParser.unescape() to unescape the escape chars. It's over used, only
"<", and ">" that corresponding escpae char is "<" & ">" is needed
to be unescaped. Fix this only to unescape this two chars.
Closes-Bug: #1362886
Change-Id: I11db0cab46c8707a6c306f9967d7afc08fbad3ec
Now the PowerVC driver will not reflect the change of the flaovr
in the PowerVC side.
Add the new logic in the sync flavor program. Update the flavor
extra_specs during syncing the existing flavors.
Change-Id: I470904703274f004f4dfa1d7dc375339d8d46921
Closes-Bug: 1340036
In Juno Release , "python-glanceclient" component changes code in the
dir "glanceclient/common" to replace the old http client implementation
in favor of a new one based on python-request. This leads to glance
driver image sync failed because of lack of http client attributes and
using the method that has never been in new httpclient.
Change-Id: I06419f792e949fed353277851f9f0f67ba38729d
Closes-Bug: #1349651
(cherry-picked from 20152f86f9)
Change-Id: I9c7f80b9f5849ac5d9d5f4b20d0ddd62074f2bfd
There are some flake8 issues in each component that are not based
on coding style rules .
And There are some unittest issues in some component that need to
be fixed
Change-Id: Ic9a3f2c3b779ced225a42f69a495a606cb62517e
Closes-Bug: #1350160
In Juno Release , "python-glanceclient" component changes code in the
dir "glanceclient/common" to replace the old http client implementation
in favor of a new one based on python-request. This leads to glance
driver image sync failed because of lack of http client attributes and
using the method that has never been in new httpclient.
Change-Id: I06419f792e949fed353277851f9f0f67ba38729d
Closes-Bug: #1349651
Add a script to help to create common utils symbolic links for each driver
component.
Change-Id: I45914db6d366511235e0e9507bc000e50651c992
Closes-Bug: 1356720
Implement boot VM with created neutron port include below changes:
1. Add get_port_uuid() rpc method in neutron to map the powervc uuid for
the local neutron port
2. Specify the 'port-id' in nova-powervc's driver spawn method for the
corresponding PowerVC port UUID from the requesting port-id from the
request.
Closes-Bug: 1350161
Change-Id: I4bc574c20ac06b625cd7111c4184b48cddbd7f64
In Juno Release , "python-glanceclient" component changes code in the
dir "glanceclient/common" to replace the old http client implementation
in favor of a new one based on python-request. This leads to glance
driver image sync failed because of lack of http client attributes and
using the method that has never been in new httpclient.
Change-Id: I06419f792e949fed353277851f9f0f67ba38729d
Closes-Bug: #1349651
Current message listening thread will die when it received unsupported
message format (e.g. application/json). The issue will cause remote qpid
broker backup all messages for this listener forever. When such backlog
comes to a limit, qpid broker will refuse to put through new messages.
Fix changes this behavior with following changes:
1. Add logic to parse application/json format messages.
2. Add extra path to ignore unsupported message format
3. Catch unexpected exceptions in listener loop to avoid unexpected
listener termination.
Change-Id: I666c596f5725df25b548d82c733aa853fce7147c
Closes-Bug: #1349227
In Juno Release , there are four files in the Glance Component deleted
in the directory "glance/openstack/common" , based on
c3ff558fc0,
but glance-powervc driver need the ServiceLauncher to launch the driver service ,so
it starts failed.
The solution is to change to user nova ServiceLauncher to launch the
service by modifing import path in the file bin/glance-powervc and
manager/manager.py
Change-Id: I2f6ec46fbb098043ad9721155b0c640fbde25df0
Closes-Bug: #1337186
Previous neutron.openstack.common.rpc is removed in Juno. Replace it
with neutron.common.rpc
Closes-bug: 1336131
Change-Id: Ibb7f7b5109476237df783e4cdd62ba9f5e264640
In keystone V3 client, the tenants attribute is replaced by projects.
Change the driver's usage to use this new attribute and be compatiable
with the V2 keystone at the same time.
Change-Id: Idf5c76d6dcdf866047b6b4ceb803149f6fbcfd8c
PowerVC driver will authenticate hosting openstack's keystone, and we
need to add some retry logic while creating the keystone client for the
hosting openstack.
Closes-bug: #1334508
Change-Id: Iae5936d1fdd75494ed8ec0057d8480c9626ed591
After analyzing the source code,
Move one part of the code into pre_live_migration.
But the remaining source code can not be moved,
because the number of the parameters in the method 'check_can_live_migration'
and the method 'pre_live_migration' are different.
Some necessary parameters can not be passed by the nova framework.
Closes-Bug: 1333238
Change-Id: I6cc59d76dca2eab5e22669fd0d745cb8bda53c62
Add the logic during syncing the instances from the PowerVC:
When the local task status is 'spwaning' and pvc task status is 'none'
and pvc instance status is 'active/error', the instance will be synced.
Closes-Bug:1333244
Change-Id: I3aa6c01ecc6ece20ceb5f56e78ba74e7f80016ab
So the flavor sync. won't hang and be ready when instance sync. begins.
Also added more logs for easy debugging in the future.
Change-Id: I5f743c79b83022538e47a9f408b80c31d1b7b512
Closes-Bug: #1329652
* CONTRIBUTING.rst shows how to contribute to the project.
* README.rst format is changed from dos to unix.
Closes-Bug: #1323477
Change-Id: I93fd18fc002158ee8b3b2a48a993787e9847dd98
We need to supply the region_name while creating the various openstack
clients in the common client code, then the client will work well with
the multiple regions.
Closes-Bug: #1323172
Change-Id: Idb30739b84d3813dd970f735b5789c564eb0759d