Commit Graph

37 Commits

Author SHA1 Message Date
OpenDev Sysadmins be6470ce7d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:58 +00:00
Le Tian Ren ba29f897db 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
2014-09-17 13:57:41 +08:00
Le Tian Ren aa88cb8477 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 14:37:35 +08:00
Le Tian Ren f1098c2253 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-01 14:15:44 +08:00
Terry Yao 4d7fc1ad44 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 18:29:24 +08:00
Zi Lian Ji 56113cd808 Need to update the changed flavors during syncing the flavors
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
2014-08-29 18:29:24 +08:00
Zi Lian Ji 7f089214e5 Miss the parameter in the method 'get_console_output' in the PowerVC dirver
The parameters in the method 'get_console_output' need to include
'context'

Change-Id: I6091ba54f65e309ca03f83e4402c7589556d2689
Closes-Bug: 1342042
2014-08-29 18:29:24 +08:00
Zi Lian Ji d414032ee0 Enhance the log in the method 'get_info'
Enhance the detailed log info in the
method 'get_info'.

Change-Id: I5fec61f7ddaeed00a2fa431385e232ad7a054c52
Closes-Bug: 1342471
2014-08-29 18:29:24 +08:00
Eric_Zhao ab8291d971 Change patched glance client to fit glance-client code change
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
2014-08-29 18:29:05 +08:00
Eric_Zhao ccaa17da43 Fix flake8 checking issue in powervc-driver and Unittest
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
2014-08-29 18:27:07 +08:00
Le Tian Ren a735606747 Add .gitignore to the project
Based on Python.gitignore on https://github.com/github/gitignore

Change-Id: I5b1d1e8b66bb858dc62c23dc739c58d110d8a216
Closes-Bug: 1358589
2014-08-26 18:51:51 +08:00
Eric_Zhao e787beb24f Change patched glance client to fit glance-client code change
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
2014-08-26 01:32:47 -04:00
Le Tian Ren 3e372a8143 Test gerrit review process on experimental branch.
Add a script to help to create common utils symbolic links for each driver
component.

Change-Id: I45914db6d366511235e0e9507bc000e50651c992
Closes-Bug: 1356720
2014-08-14 15:44:54 +08:00
Zhao_Jian 001d845aa1 Revert "Change patched glance client to fit glance-client code change"
This reverts commit 20152f86f9.

Change-Id: Idd5bce85e39f213cc27bbb35a028df24d84840c9
2014-08-04 16:48:12 +08:00
Jenkins 23c3ea994e Merge "Implement boot VM with created neutron port" 2014-07-31 08:28:15 +00:00
terryyao 409a5bac87 Implement boot VM with created neutron port
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
2014-07-30 11:14:10 +08:00
Eric_Zhao 20152f86f9 Change patched glance client to fit glance-client code change
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
2014-07-29 02:46:20 -04:00
yinym f1fa4ba5ea Fix message listening issue in common component
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
2014-07-28 14:05:20 +08:00
Jerry Cai 25e1c6ee02 Fix cinder testcase error and flake8 issue
Fix these 2 issues:
1) Test fail error.
2) Flake8 issue

Change-Id: I72c116d1d7295672f1de5f39151424ed8b2a590f
Closes-Bug: #1347460
2014-07-24 13:38:11 +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
Jenkins 94a5d243d1 Merge "Fix neutron-powervc starting failure issue" 2014-07-08 02:19:45 +00:00
Jenkins c55bff26f0 Merge "Add retry logic while initializing local keystone client" 2014-07-08 02:16:01 +00:00
leileiz c66b71adb2 Fix neutron-powervc starting failure issue
Previous neutron.openstack.common.rpc is removed in Juno. Replace it
   with neutron.common.rpc
Closes-bug: 1336131
Change-Id: Ibb7f7b5109476237df783e4cdd62ba9f5e264640
2014-07-07 07:26:23 +02:00
Lin Cai 1881aba31b Change to use projects instead of tenants for keystone V3
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
2014-07-07 13:21:00 +08:00
terryyao 24da1b38af Add retry logic while initializing local keystone client
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
2014-06-26 13:53:41 +08:00
Jenkins 0fa9fcf321 Merge "OpenStack console shows some instances in 'migrating' state forever when migration" 2014-06-25 04:00:21 +00:00
jizilian 6d17995db8 OpenStack console shows some instances in 'migrating' state forever when migration
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
2014-06-25 11:52:35 +08:00
jizilian 0f41c014a6 Many deploys timed out, in 'deploying' state in OpenStack Console
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
2014-06-25 11:49:53 +08:00
Lin Cai ca0aa07e1f Fixed a bug on flavor sync. Moved the flavor sync. before the instance sync.
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
2014-06-16 14:08:20 +08:00
Le Tian Ren be5cb54333 Add CONTRIBUTING.rst and change README.rst format.
* CONTRIBUTING.rst shows how to contribute to the project.
* README.rst format is changed from dos to unix.

Closes-Bug: #1323477
Change-Id: I93fd18fc002158ee8b3b2a48a993787e9847dd98
2014-05-27 15:52:50 +08:00
terryyao e91f6dffc5 Fix the multiple regions issue in common client
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
2014-05-26 16:52:55 +08:00
Jenkins 0756217e87 Merge "Fix copyright headline in the source files" 2014-05-09 08:44:31 +00:00
Le Tian Ren 95328b9ed7 Missing License file and README file in the project
Change-Id: I599881bd77795480b7ab5ecae1e0e95d593a9e70
Closes-Bug: #1317577
2014-05-09 13:21:02 +08: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
OpenStack Project Creator ab7092bf77 Added .gitreview 2014-05-06 22:11:04 +00:00