478 Commits

Author SHA1 Message Date
Jenkins
fb6b585c3b Merge "Disable installing pypowervm by default" 2016-01-04 13:09:23 +00:00
Jenkins
66affd87f5 Merge "Refactor 'detach vopt' to use detach_storage" 2015-12-21 21:20:50 +00:00
adreznec
bf3d518670 Disable installing pypowervm by default
Add a configurable option to choose to install pypowervm from source,
otherwise default to relying on it already being installed

Change-Id: I15b85c8bcae163e762310efdabfdc26d72e2b629
2015-12-19 16:21:00 -06:00
adreznec
45fb0dc163 Overhaul the DevStack plugins README file
Add a more detailed walkthrough of the devstack plugins readme
file, including links to our devrefs and docs.

Change-Id: I254b33607daa89c1c8f3dc33d4281cfa4fad72db
2015-12-17 09:12:35 -06:00
adreznec
d32d147112 Disable ceilometer services in devstack compute template
In the local.conf.compute template disable the ceilometer control
services that are enabled by default by the ceilometer plugin

Change-Id: Iaaeebaf99fdfbfbc4fdeb191652c1587d7eae8e9
2015-12-07 11:20:08 -06:00
Eric Fried
99f19c86dd Refactor 'detach vopt' to use detach_storage
pypowervm.tasks.scsi_mapper.detach_storage provides the function to
detach the storage element from VSCSI mappings.  This logic was
previously inlined in nova_powervm.virt.powervm.media.add_dlt_vopt_tasks
- this change set replaces the inline code with the pypowervm call.

Change-Id: Ica5096e4150d76c79c198073a3b96dab5789ab57
2015-12-07 09:19:16 -06:00
Jenkins
9e25493e75 Merge "Don't remove vOpt mapping on live migrate" 2015-12-03 22:03:45 +00:00
Drew Thorstensen
aad297c619 Don't remove vOpt mapping on live migrate
Some operating systems are unable to remove a device when it is in use.
However, during a live migrate, we can't migrate the the virtual optical
device.

The current live migrate code was removing the virtual optical media,
but also was removing the mapping.  This change updates it to leave the
mapping (so that operating systems that can't remove the bus are OK),
but to detach the vopt device from it.  We still remove the virtual
optical media.

Change-Id: Id2a3216ec06e95a538fa2f9f25463c490d69f81f
Closes-Bug: 1522222
2015-12-03 11:44:54 -06:00
adreznec
5c2c6e90db Disable ceilometer-acompute in control node example
The ceilomter devstack plugin turns on every ceilometer service by
default. This disables the ceilometer-acompute service in the control
node example file.

Change-Id: Ic338350d5d1db266657e4bfd18b679cfff96b0e2
2015-12-02 15:11:54 -06:00
adreznec
0171d7a7f3 Fix README whitespace, update README
Fix a non-breaking whitespace error in a devstack plugins README link, as well
as updating content to place in the link in better context.

Change-Id: Ib7d0b90f6c90c144cae658b25e7b6578212d6138
2015-12-02 08:27:59 -06:00
Jenkins
530361ec26 Merge "Add nova-powervm devstack multi-node support" 2015-12-02 14:18:58 +00:00
adreznec
ea80a75126 Add nova-powervm devstack multi-node support
Support running nova-powervm devstack plugins in a multi-node
environment, with example configs for compute, control, or
all-in-one node installation.

Change-Id: I62d3681165cfeab8fd472b61b9898e28da4ea2f6
2015-12-01 15:07:42 -06:00
Jenkins
5d41fa56f7 Merge "Shorten default devstack instance name template" 2015-12-01 14:28:08 +00:00
ibm
026f3ad1b1 Provide synchronization during the Vopt creation
During concurrent scale deploys sometime we hit the synchronization
issue during the vopt validation.

Change-Id: Ic522b8a1cfc984e114ec74e827ae1546236a7c55
Closes-bug: #1521097
2015-12-01 07:52:52 -06:00
adreznec
5eb6808693 Shorten default devstack instance name template
Shorten the default devstack instance name template due to issues
with the 31 character instance name maximum

Change-Id: I8815a0c5478c999292daa14fa1d4a1b4d3e54399
2015-11-24 15:29:26 -06:00
adreznec
c86e558fd1 Change pypowervm repo location
Update the pypowervm repo location in code and docs
for the pypowervm->powervm github org rename

Change-Id: I95a5593af76ed0b164ed60a9d14b82f3a808078a
2015-11-18 14:49:48 -06:00
Jenkins
947d44c5b9 Merge "Clean up hdisks after failed live migration" 2015-11-16 21:22:19 +00:00
Jenkins
8fcce7c695 Merge "Raise error if bad WWPNs used on connect" 2015-11-13 20:42:23 +00:00
Kyle L. Henderson
09d23f8d3b Clean up hdisks after failed live migration
When there is a live migration failure that prevents the VM
from moving to the destination host, any hdisks created on the
destination host should be deleted. These hdisks are created
when we do the discovery operation for any volumes attached
to the VM via VSCSI.

Change-Id: I6e7f88ede68522c9f4788c549b8bfc84f7ae382a
2015-11-12 13:22:36 -06:00
Drew Thorstensen
beacd00d1e Raise error if bad WWPNs used on connect
Raises an error if the connect volume is unable to find the appropriate
Virtual I/O Server for a WWPN.  This wraps into a proper Volume Attach
exception, so that the manager can handle the task state properly.

Change-Id: I6c98d0eb234a0e159907f68f8bd4b78255c90052
Closes-Bug: 1515357
2015-11-12 14:16:32 -05:00
Jenkins
5aec96cb7e Merge "Provide locking around NPIV wwpns method" 2015-11-12 14:12:50 +00:00
Jenkins
eff69285b5 Merge "Update the setup.cfg to point to python 3.4" 2015-11-12 13:54:59 +00:00
Jenkins
de72bd6e41 Merge "Properly wrap unplug errors" 2015-11-12 13:54:53 +00:00
Jenkins
0cb5ccc997 Merge "Convert exceptions to MigrationPreCheckError" 2015-11-11 18:36:00 +00:00
Jenkins
87f4612639 Merge "Scrub orphan mappings pre-migration on source" 2015-11-11 00:19:06 +00:00
Drew Thorstensen
462357a9a0 Update the setup.cfg to point to python 3.4
This change set updates the python config to 3.4.  Also provides a home
page for the project.

Change-Id: I741fa5b287781851bcd13abb906173c95f233fcb
2015-11-10 11:01:32 -05:00
Drew Thorstensen
3b80ffb63e Properly wrap unplug errors
When an unplug_vif error occurs, it needs to be wrapped in a
NovaException so that the manager takes the right action.  This change
set properly wraps errors in the unplug_vifs.

Change-Id: I53928b80ec6d38063194ad06e3c89784bb8365ca
Closes-Bug: 1514437
2015-11-10 10:58:38 -05:00
Kyle L. Henderson
3a513b9335 Convert exceptions to MigrationPreCheckError
Exceptions returned during pre live migration should be
MigrationPreCheckError exceptions otherwise the instance will
be set to error state.

Change-Id: I231c2bacbe06072421073e92a9048bf97b263230
Closes-Bug: #1513643
2015-11-10 08:52:07 -06:00
Drew Thorstensen
20584ee189 Provide locking around NPIV wwpns method
If the user runs two attach volumes at the same time, this can lead to a
race condition where different WWPNs get generated for the instance.
This change provides a lock around the wwpns call.  This is a global
lock for the compute node.

In previous iterations of this code, it could have had a major
performance impact.  But now that the job is invoked for the WWPNs call,
this method should return very quickly (subsecond).  Therefore the
global lock should not be a concern.

Change-Id: I4100e5c66797eb4f1fad802a88ef90966a05ce13
Closes-Bug: 1514537
2015-11-10 08:40:03 -05:00
Eric Fried
d2b9aab82c Scrub orphan mappings pre-migration on source
Live migration can fail if orphan mappings associated with the migrating
LPAR exist on the source system.

This change set exploits the recently-added
pypowervm.tasks.storage.ScrubOrphanStorageForLpar, which will identify
such mappings for a specified LPAR ID, scrub them, and (for VSCSI
mappings) remove the associated storage if it is not still in use.

Change-Id: I747ad4063ebd5cb4effc565a4d255e325d454ffb
2015-11-06 18:05:28 -06:00
Drew Thorstensen
9b4123a11d Switch to develop branch for pypowervm
The master branch of nova-powervm should be paired to the 'develop'
branch of pypowervm.

Other stable branches (or release candidates) will point to version
levels that are published to PyPi (or to stable branches).

Change-Id: I963e20da759eeede6b1f115d15fdc276b3555538
2015-11-04 08:43:38 -05:00
Jenkins
09eb2a565d Merge "VFC Migration mapping string vios reversal" 2015-11-03 13:35:09 +00:00
Jenkins
91d88ef2cd Merge "Provide reversal of vioses for migration" 2015-11-03 13:30:15 +00:00
Chhavi Agarwal
0800820fc9 VFC Migration mapping string vios reversal
In the case of multiple fabrics with dual vioses, VFC mapping
strings should build mapping across both the VIOSes. So we
need to reverse the vios wraps in order to use the second vios
for the next fabric.

Change-Id: I09d9bd65241195247b326c8afdb54501fd6e4ed9
2015-11-03 06:53:57 -06:00
Drew Thorstensen
0b68d3a079 Provide reversal of vioses for migration
When the migration WWPNs are built, the VIOS wrappers needs to be
reversed, like during a normal deploy.  This change enables this.

It also removes some optimization code that is no longer needed due to
switching to the FeedTask model.

Change-Id: Ia66df870473e6cee34c6a1fa1b39dbb771b6790a
2015-11-02 16:20:19 -05:00
Jenkins
69215ddc54 Merge "Add/Remove the volume BDMs during resize" 2015-11-02 19:14:02 +00:00
Adam Reznechek
f76b70f6ae Fix devstack README formatting
Fix formatting of step list for devstack plugins

Change-Id: I559145cdb00a40e77afae0b9707c62b4e4b00450
2015-10-30 00:05:20 -04:00
Jenkins
de2c6bed44 Merge "Add base devstack plugins support" 2015-10-30 02:32:56 +00:00
Adam Reznechek
ecc4100bf1 Add base devstack plugins support
Add support for installing nova powervm through the devstack plugins
infrastructure. This allows you to simply enable the plugin in a
devstack localrc, provide any non-default config, and run stack.sh
to configure/install it.
- Added plugin files
- Added README and example config
- Added bashate to tox test environments for scripts

Change-Id: I3dfed189e60b0aa63fc9029e3f56f2d8b7785bd3
2015-10-29 21:43:01 -04:00
Jenkins
82d56cc91a Merge "Rebase on pypowervm slot_number => lpar_slot_num" 2015-10-29 21:36:18 +00:00
Jenkins
e5bde48786 Merge "Translation updated files for drop2" 2015-10-29 21:11:36 +00:00
Jenkins
585d63c6c6 Merge "Add nova-powervm translation domain" 2015-10-29 20:29:45 +00:00
Eric Fried
723dc37bfc Rebase on pypowervm slot_number => lpar_slot_num
Recently pypowervm refactored and expanded the slot number and LPAR ID
properties on virtual storage adapters such that
{vios|lpar}_{id|slot_num} always refers to the ID or slot number on the
VIOS or LPAR, respectively, regardless of whether you're looking at the
client or server side of the adapter.  (Change-Id:
Id626a1b23b9b2757e5e1f38fd6ed141d97fd0e74)

The only non-backward-compatible change is the renaming of slot_number
to lpar_slot_num.  This change set rebases on that modification.

Change-Id: I2d392781817b076b79cf93360588c6107dceaca4
2015-10-29 14:04:17 -05:00
Kyle L. Henderson
ded3c4b7ca Add nova-powervm translation domain
Since nova-powervm is not in tree with nova, it can't use nova's
translation domain.  This change introduces i18n.py and the
nova-powervm domain.

Change-Id: I9d3565e6ad1737629350fe02c7a41d56b0cf401a
2015-10-29 13:26:10 -05:00
Chhavi Agarwal
f33a4b747d Translation updated files for drop2
Change-Id: I9cb97e8de494992fa90bf8cc5af3481724db7c9e
2015-10-29 02:44:49 -05:00
Eric Fried
39b643cbcd Asynchronous PowerOn (spawn, rescue, unrescue)
The nova driver polls the VM state once spawn/rescue/unrescue has
completed.  It's double-duty to have those methods wait for the PowerOn
Job to complete before returning.  This change set takes advantage of
the asynchronous option on the pypowervm power_on task to allow these
methods to return as soon as the PowerOn Job has started.

Change-Id: I6c1acd172f49a7d4ec39845231a0c67329e82c11
2015-10-28 14:49:34 -05:00
Chhavi Agarwal
49fca0baa7 Add/Remove the volume BDMs during resize
During resize instance migrate_disk_and_power_off should release
the existing volumes connected to the instance. Volume BDMS should
be disconnected and re-connected during finish_migrations. This is
required because manager terminates the prev volumes and
re-initializes the volumes again, which can lead to a new SCSI ID.

Change-Id: I9af2b16259dd98332c135b1870386c827d3c56d7
Closes-Bug: #1510235
2015-10-28 10:29:41 -05:00
Drew Thorstensen
b8199619f2 Clear out NPIV metadata on reschedule
When a VM reschedules on to a different host, the NPIV metadata was
sticking around, and this caused an issue with the new host when the VM
landed on it.

This change clears out the system metadata on a full terminate of the
NPIV connection.  A full terminate is when the VM is being destroyed.

This should make the spawn on a new host fully 'fresh'.

Change-Id: I35348bbfffc8cb4693e6d0822e7a0c6ff42de032
Closes-Bug: 1510251
2015-10-28 02:10:31 -04:00
Chhavi Agarwal
903ceabb32 Cleanup hdisk on source post live migration
When a VM has volumes attached via vscsi, the hdisks on the
Virtual I/O servers that reside on the source host should
be cleaned up after the VM has been migrated to the desination
host.

Change-Id: I7f3d7afa8033190c5969f887f32d2f0c7ae0c66b
Closes-Bug: 1506960
2015-10-23 16:47:50 -05:00
Jenkins
b8eb410f84 Merge "Translation files for other languages" 2015-10-21 13:56:30 +00:00