Implement check_active for quantum net, port, router

These quantum resources go through a BUILD status before becoming
ACTIVE (or DOWN).

This could explain the issues seen in
Bug: #1176661

Change-Id: I659774cd402b71be102376b31e2d78bf225d37a6
Tolerate resource lookup errors for quantum FnGetAtt.

Fixes bug #1180293

Change-Id: I5384456bbbf53558036573c983be0b65e8883612
Tests for Router, RouterInterface, RouterGateway.

quantum package now has over 94% test coverage.

Change-Id: I82b4635e4554e5b94eaac70bd1cc4b9249863dc9
Exclude build/ from flake8 checks

Change-Id: Ie7b19f8488230e8538720b96c73b49453c6a3efe
Merge "Exclude build/ from flake8 checks"
The oslo module called utils is no more.

This had been cleaned up in openstack/common, but left in the config
file. Clean that up too.

Change-Id: I15b96c53aff3281a44250e9beb4ec56fb80bf9b6
Adds sudo check for privileged operations.

Adds root user check to determine whether or not sudo is required
for MySQL status and installation.  We now run sudo -l to verify
that the user is in the sudoers file, the credentials are then
cached for the rest of the operations.

bug 1181701

Change-Id: I294b269046ee2049b0fdee3c871096387cefbf24
engine : cleanup Resource.update error paths

The current update code uses a nasty pattern where returning an
arbitrary string from Resource.update is interpreted in parser.Stack
as an error.  Instead use exceptions which is much nicer :)

Change-Id: I2ddebfd6bbec3dc229012406da72dd928fcc4595
engine : remove unused update states/status

We have some aws-isms in the update code related to different
update states, which is not actually used anywhere, so may as
well remove it - it's probably easier at least for now to focus
on the three update states of COMPLETE/FAILED/REPLACEMENT

Change-Id: Ieeaf92ab0fec6bbfab3dddf2d8fecb0b38c1b2fc
PEP: be explicit about what errors are ignored.

Change-Id: I362ba16c8a7b645c9befa7fcd4b0942773b0dbce
Fix PEP H402 "one line docstring needs punctuation."

Change-Id: Id0aa43187f6d5e62308f4b329bc9458a512d808d
Fix PEP H301 (one import per line)

Change-Id: I7b0c991c869c903e60123ad5bdf876b06d83e3e9
UpdateStack for AWS::AutoScaling::ScalingPolicy

Implemented update support of the ScalingPolicy resource
in an existing stack. ScalingAdjustment, AdjustmentType,
and Cooldown properties are allowed properties for update.
A handle_update method is added to update differences in
the template.

Change-Id: Ieeae93560a315a8a35c6fb2d8f1d78a89123bec3
blueprint: scalingpolicy-update-stack
Fix PEP H902 (Use the 'not in' operator)

Change-Id: Ic3dec990d2fe43dd8841aadb7b87e8f26c2d0338
Merge "engine : cleanup Resource.update error paths"
Merge "engine : remove unused update states/status"
Merge "Adds sudo check for privileged operations."
Merge "UpdateStack for AWS::AutoScaling::ScalingPolicy"
Implement OS::Cinder::VolumeAttachment

This creates a new volume attachment resource with Cinder specific
naming.

Change-Id: Ie73b929925c58e47f3509d57dd385cbd4ea5a4c1
Merge "Fix PEP H902 (Use the 'not in' operator)"