trove/trove/instance
Peter Stachowski 8d5576aa1a Replace pexpect with processutils in volume.py
In investigating the issues with resize, it was noticed that pexpect
is used throughout guestagent/volume.py. These were replaced with
oslo_concurrency.processutils.execute to allow more robust error
handling/reporting.

Certain cases were made more tolerant to unknown states (for
example resize_fs now makes sure the volume is unmounted).
This (hopefully) will fix the intermittent gate issues
plaguing volume-resize lately.

While examining the errors returned from the guest, it was
observed that in one case a fault message from the guest was
almost immediately overwritten by a less-detailed one
from the taskmanager.  Handling was put in place for this
case to only write the fault if the previous fault was 'old'
enough.

The unit tests for volume were cleaned up as well with
regards to proper mocking and checking that the calls
were actually made properly.

Depends-On: Ia30cf5826415e47d59e6d407f95e4d7ff4e8ff6c
Change-Id: I844dd26a968a50532a6220a0762a302c2cadc2d0
Closes-Bug: 1651589
2016-12-22 17:54:56 -08:00
..
__init__.py Remove copyright from empty files 2014-01-16 13:13:23 +04:00
models.py Replace pexpect with processutils in volume.py 2016-12-22 17:54:56 -08:00
service.py Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
tasks.py Implement Instance Upgrade 2016-09-08 11:32:14 -04:00
views.py Add compute instance ID and volume ID to trove show output 2016-11-28 16:54:58 -05:00