Commit Graph

21 Commits

Author SHA1 Message Date
Punith Kenchappa 4685d5fbc7 Custom properties are missing in the image details section.
This is due to the changes made to handle the
community change where V1 glance API got removed
with Queens release of openstack. And, with V2
the response format has changed returning fewer
properties.This bug is to fix the issue related
to missing  custom properties and add them back
to be displayed to the user.

Change-Id: I116ad05b00de6e94cf6c507dbcffa607b916fc42
Closes-Bug: #1814739
2019-02-07 12:16:46 +05:30
Punith Kenchappa 9980f8ee64 Replace glance V1 API calls to use V2 API
With the Queens release of Openstack, the community removed the
support for v1 glance API. Thus, we need to fix the corresponding
implementation in the PowerVC Driver using glance v1 calls to v2 calls.
As part of these changes, we've removed all the v1 glance client calls
to v2, and also observed that the response format has changed as well
and these changes should address all of that.

Change-Id: Ic76bad59ba3da7178acaeeb093113358e50c6169
Closes-Bug: #1783096
2018-07-25 10:45:40 +05:30
Jerry Cai e58fed6bf1 Empty remove list will cause failure on glance sync
Empty remove list will cause failure on glance sync

Change-Id: I2433cd66b18239d1e12b6d2691327f4c534db1ec
Closes-Bug: #1446095
2015-04-20 16:35:52 +08:00
Jerry Cai eac3b89426 Do not sync bdm from pvc image to local image properties
Do not sync bdm from pvc image to local image properties,
neither do sync from local to pvc, or it will break on both
pvc side and local os side.

Change-Id: I0bdd124c8e3897917050c6927e20ab358f30b65e
Closes-Bug: #1438547
2015-03-31 15:34:11 +08:00
Jerry Cai 7777699e4a Fix powervc driver according to community code change
This defect is to fix for powervc driver according to community
code change.

Change-Id: If0c069cf53f9718e48a4b2f24a97380281a15422
Closes-Bug: #1431173
2015-03-12 15:38:18 +08:00
Jerry Cai 057058dea6 Rename nova.openstack.common.log to oslo_log.log
another fix.

Change-Id: I1ba743708dcb8e2c986bed38fbcf33f5bf18c60e
Closes-Bug: #1430662
2015-03-11 17:42:20 +08:00
Jerry Cai 3f2af18c03 Rename nova.openstack.common.log to oslo_log.log
Rename nova.openstack.common.log to oslo_log.log per openstack
code change.

Closes-Bug: #1430155
Change-Id: Idf9630734ad897d1a4a102edb8a24d17bdfb706b
2015-03-10 16:09:52 +08:00
Terry Yao c780569e8c add pool name while register notification listener
oslo.messaging is exposing a new API allow creating listener by
supplying a pool name, then the listeners with that pool name will use
the queue name as the pool name, multiple listeners can be listening
with the same topic.

Change-Id: I220d50fad8cda6f6f50f31215a7a6b98523c35dc
Closes-Bug: #1388663
2014-11-06 16:39:36 +08:00
terryyao 7b84b07f0b move to use oslo.i18/utils/serialization
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
2014-10-23 00:07:25 +08:00
Jenkins ab21eb0a57 Merge "Add an extra property for selecting SCG / Storage Template" 2014-09-24 09:26:30 +00:00
Eric_Zhao 187efa1bbb Add an extra property for selecting SCG / Storage Template
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
2014-09-23 23:40:24 +08:00
Le Tian Ren 3c64be8637 Glance manager log format requires a mapping
Change-Id: I6af713c3f70e6bb0f86dfd5ab9d9789f32c830ed
Closes-Bug: 1372228
2014-09-22 10:51:46 +08:00
Jenkins eae4668ba3 Merge "Upstart process daemon scripts need to change." 2014-09-17 08:07:14 +00:00
Le Tian Ren 175cd1810d Upstart process daemon scripts need to change.
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)
2014-09-17 07:48:14 +00:00
Le Tian Ren 0eefba3f77 Add support for multiple AMQP rpc backends
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
2014-09-16 17:53:08 +08:00
Le Tian Ren 05a8443e12 New config strategy to adapt to oslo-messaging
* 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
2014-09-16 17:53:07 +08:00
Terry Yao 64233b7e1c Fix the issue to unescape unneed characters in image property
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 "&lt;" & "&gt;" is needed
to be unescaped. Fix this only to unescape this two chars.
 
Closes-Bug: #1362886
Change-Id: I11db0cab46c8707a6c306f9967d7afc08fbad3ec
2014-08-29 10:03:58 +08:00
yinym 8f6cb9fd23 Fix flake8 warning and error report
All the flake8 issues have been resolved with this commit.

Change-Id: I637f82c484b3dbecc4827731a13f79c2ba2b9240
Closes-Bug: #1346759
2014-07-22 14:35:24 +08:00
Eric_Zhao 229f843fbb Start up glance-powervc driver in Juno Release
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
2014-07-17 02:02:45 -04:00
Le Tian Ren bb7da09624 Fix copyright headline in the source files
Change-Id: Ie1b0dac8a8ec1e6d02217fe03159c78a69f6dc5d
Closes-Bug: #1317657
2014-05-09 13:05:20 +08:00
Le Tian Ren 5e1c266859 Initial code base commit.
Change-Id: Id1e336028fa662ddee865841ac7b6c31a316f854
Closes-Bug: #1317383
2014-05-08 22:00:29 +08:00