Fix EC2 not found errors for volumes and snapshots.

According to AWS docs
(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/
api-error-codes.html)

Change-Id: I43af230b975263bb2a14e0cc0bd8718f55bd8a55
Closes-Bug: #1323813
libvirt: add '_' prefix to host state information methods

The methods used by the HostState class are all internal
helpers so should have a '_' prefix to indicate they are
not part of public virt driver API.

Related-bug: #1333219
Change-Id: Ia9b2e966071d5a842193421394aa0850beb3fdba
Sync log and processutils from oslo

This is mainly to pick up two changes in processutils:

85f1784 Move nova.utils.cpu_count() to processutils module
cdcc19c Mask passwords that are included in commands

Commit cdcc19c touches the log module so when copying processutils over
we also copy log, otherwise no other dependencies are copied.  Going
through the commit history on both and the diff from nova, there are no
other commits sync'ed over that require changes to other dependent
modules.

Commit 85f1784 is targeted so we can remove the redundant code from
nova.utils.

Changes:

processutils
------------
85f1784 Move nova.utils.cpu_count() to processutils module
cdcc19c Mask passwords that are included in commands
8a0f567 Remove str() from LOG.* and exceptions
51778f9 Allow passing environment variables to execute()

log
---
109e325 Use oslo.messaging to publish log errors
de4adbc pep8: fixed multiple violations
eac71f5 Fix common.log.ContextFormatter for Python 3
d78b633 Fixes a simple spelling mistake
621d831 always log a traceback in the sys.excepthook
90ae24b Remove redundant default=None for config options
af36c2a Fix logging setup for Python 3.4
cdcc19c Mask passwords that are included in commands

Partial-Bug: #1320028
Related-Bug: #1333370

Change-Id: I8d12661782e8ad065b01aa582e42c142cc2f4076
Fix agent_id with string type in API samples files for os-agents v2

The agent_id should be integer for agent create and index. But in
the api sample file it is string type. It's because the api sample
tests provide agent_id with string type in fake data. This patch
correct the api sample files and tests.

For agent update, it use agent_id that passed from url, make the
response use string for agent_id. We can't fix this problem for
back-compatibility. This will be fix in the future after v3 API
expose by micro-version

Change-Id: I262b4b26c94dba003e80bda2f38d2e985ef9f220
Partial-Bug: #1333494
Revert "Sync revert and finish resize on instance.uuid"

This reverts commit d27987fa56156392c06b1185b44e36dc9720435c which
actually seems to have retriggered the issue it was designed to fix.

Related-Bug: #1326778

Change-Id: Ia1905177de8494f9c3abb3bcfa0866c7bcb33f93
Use dot notation to access instance object fields in ec2 create_image

The create_image method is using an instance object now so access the
fields using dot notation rather than treating it like a dict.

Also re-uses the in-scope instance_uuid variable rather than
instance.uuid for the name_map dict creation.

Change-Id: Ia80277830dc7230fb113e6f15efc773342ea4572
Merge "Fix EC2 not found errors for volumes and snapshots."
Merge "libvirt: add '_' prefix to host state information methods"
Merge "Revert "Sync revert and finish resize on instance.uuid""
Merge "Fix agent_id with string type in API samples files for os-agents v2"
Merge "Use dot notation to access instance object fields in ec2 create_image"
Merge "Sync log and processutils from oslo"