Remove junk file when ftp transfer failure

During spawn with powervm driver, the image transfer to the IVM host
may fail in some conditions, eg. IVM host doesn't have enough disk
space. It leaves the junk file in IVM host, and this will disturb
next spawn after resolving environment issue, need clean it.

Fixes bug #1188884

Change-Id: I7b8d719995c2702c89cf55cef5f34bde9d01c1b9
Remove usage of locals() from powervm virt package

Fixes bug 1171936

Change-Id: I9ff8c392071102737c70a807f9bfc584729c4142
port Attach_interface API into v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. The copy as-is will not be loaded by either
the v2 or v3 extension loaders. The second changeset will then
make the changes required for it to work as a v3 extension.

This is being tried in order to make reviewing of extension
porting easier as gerrit will display only what is actually
changed for v3 rather than entirely new files.

Change-Id: I83803ed04f39cb7dda537d08d34e78a04cd64d4c
Refactor ServerStatusTest class

Remove code duplication from ServerStatusTest class
Partially implements blueprint api-compute-servers-tests

Change-Id: I7585691c6274385840cbf67a9e051ca84cd07372
Add HACKING check for db session param

Add a HACKING check to enforce that public db/api and db/sqlalchemy/api
methods to not accept a 'session' parameter.

This check is initially disabled, since it is failing ~24 times right
now, but will be enabled once bp/db-session-cleanup is complete.

Change-Id: Ib89eea58555032dd142d4e21e62d66e2726f0d06
Make test_deferred_delete() be deterministic

This makes the test_deferred_delete test deterministic in its
execution. Since it depends on periodic task scheduling and
a somewhat unknown amount of time before the state change
polling loop will give up, it has been failing a lot lately.

This enforces a run of the specific task needed, as well as
ensures that time appears to have elapsed sufficiently to
justify a reclaim.

Fixes bug 1193167

Change-Id: Ideaf8abd19b10e018d284085309fe63282fa4b82
Merge "Make test_deferred_delete() be deterministic"
Merge "Remove junk file when ftp transfer failure"
Merge "Refactor ServerStatusTest class"
Merge "Remove usage of locals() from powervm virt package"
Merge "Add HACKING check for db session param"
Merge "port Attach_interface API into v3 part1"
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp