Commit Graph

30 Commits

Author SHA1 Message Date
Zuo ZongMing f9694e7180 Add mac address for PORT_UPDATE_FIELDS
Synchronize openstack and powervc-driver port mac_address

Change-Id: If961b8995cf32a9607ff45695268c0bf471b6671
2017-12-15 15:05:55 +08:00
arunmani 3f0a4a88c4 Increase timeout to handle multiple heat stack deploys
When multiple heat stack deployments are submitted, there
is mismanagement of IP assigned and heat stack fails with
duplicate IP report. The time to sleep to avoid race condition
in such cases seems too less, and it was found that increasing
the same works better in such case.

Change-Id: I5cd6ac008f9160e35a3e70c831f8f151d0825458
Closes-Bug: #1724302
2017-10-26 04:36:02 -04:00
Qing Wu Wang 1408dfd931 ip locked causes boot failed
Nova booting a vm and neutron creating new port would race the port.
If the neutron creates the port before booting vm,
the booting process would be failed as ip/port locked.

Change-Id: Ib5dbbb0b2fbcca17961cddcf983d70779a4dfecd
Closes-Bug: #1505952
2015-10-19 02:46:31 -05:00
Jerry Cai d0be0b27d7 List all resources across different service
List all resources across different service by adding "all-tenant"
when call restAPI

Change-Id: Ie29e0bac6fa4c3fe4b771489a722b6712edc3a28
Closes-Bug: #1496781
2015-09-17 18:05:06 +08:00
terryyao 4f2035dfe2 fix the neutron-powervc utility broken issue
The neutron-powervc is a debug utility for powervc-driver's neutron rpc
service. It's broken with neutron kilo level code

Close-Bug: #1457752
Change-Id: I57101bcdccaa470fea01c8a4abacc1f694abca9b
2015-05-22 14:24:28 +08:00
Jerry Cai c0df42479f Donot repeatly show Locked ported updating from pvc
Skip showing some locked ports repeatly when event coming.

Change-Id: Iad9e9b28d474ff3a7418c858108dabdeb649a47e
Closes-Bug: #1439066
2015-04-01 16:51:09 +08:00
Jerry Cai d6275551c5 fix neutron log to oslo_log
fix neutron log to oslo_log for neutron-powervc

Change-Id: I724d40fe55d43fc218818a0ae6c51132c75727ec
Closes-Bug: #1436253
2015-03-25 18:20:25 +08:00
Jerry Cai 614cd07d15 Update neutron start cmd per openstack neutron community code changed
As community code changed a couple of days ago, neutron-powervc need
to apply with this change. Need to add
"--config-file /etc/neutron/neutron.json" to neutron service start
init cmd.

Change-Id: I9cb1d1e762258b644df83a68afdf7562ce5b55ae
Closes-Bug: #1432622
2015-03-16 20:41:25 +08:00
terryyao 3699879307 fix pep8 and UT issue
fix latest pep8 and UT issues

Change-Id: I9a3b7f55ec68a9944eb7513fca4c7f521642e49e
2014-12-08 10:52:56 +08:00
Jenkins 1d2ad25751 Merge "add pool name while register notification listener" 2014-11-06 09:07:43 +00: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 64139a45b7 fix eventlet monkey_patch for rpc call
In PowerVC neutron agent, currently, it's monkey_patch eventlet with
setting thread=False, that will result in oslo.messaging RPC call failed
in concurrent execution. Just refer neutron code call monkey_patch() to
patch all modules

Closes-Bug: #1389468
Change-Id: Ia669c37a555bec1d3d2e125c8d088b4d6ef1b40e
2014-11-05 14:54:25 +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 d2d4e304be Merge "Change lock device id from PowerVC-Lock to Lock" 2014-10-14 07:30:41 +00:00
Yi Ming Yin ce55c3df7c Change lock device id from PowerVC-Lock to Lock
In order to comply with local Openstack, change this value to more
general value "Lock"

Change-Id: I823392629ade0d98ead14bc814682f64da4a9745
Closes-Bug: #1380908
2014-10-14 14:50:37 +08:00
Jenkins 29047a3d2e Merge "Add/Remove/Modify vNIC post deployment Edit" 2014-09-30 05:31:11 +00:00
Jerry Cai fd05a48a19 Add/Remove/Modify vNIC post deployment Edit
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
2014-09-30 02:45:53 +08:00
Yi Ming Yin 6377129b22 Add new neutron port synchronization logic
According to new PowerVC neutron locked port logic, adding magic device
id to PowerVC neutron agent synchronization logic.

Change-Id: I4366cd91c31388a77e08848021afd202661bbed3
2014-09-20 22:02:21 +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
Yi Ming Yin 66ac1ea035 Update powervc neutron agent to match new change.
neutron.common.config has changed setup_logging method signature.
powervc neutron agent code needs to be updated

Change-Id: Iab045cb3a42d8528c093006acf7e5cc0d3a2618d
Closes-Bug: #1368009
2014-09-11 13:26:31 +08:00
Terry Yao d38a6f0d51 Change to use alembic to create db table schema
neutron removed the capability to auto generating the table schema and
use the alembic as the only way to create the db tables. powervc neutron
agent needs to follow the same way to create the tables schema and it
also added the db schema migration capability for powervc neutron agent.

As db2 alembic has problem at this time, I still retain the auto create
the table schema during startup, once db2 alembic is enabled, then we
can totally switch to use alembic to create the db schema

Change-Id: I4b5982b2f67b33aae3b8acc65b91fc6247b9b8a4
2014-08-29 15:28:32 +08:00
Eric_Zhao 5de8b9d735 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-24 23:14:44 -04: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
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
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
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