Fix ArchiveTestCase on PostgreSQL

test_archive_deleted_rows_no_id_column() filters DnsDomain instances by
value of 'deleted' column (which is of type Boolean). Integer value 1
is passed instead of boolean value True. This works great on MySQL and
SQLite, but fails on PostgreSQL which is more strict when checking data
types of passed values.

Blueprint: db-api-tests-on-all-backends

Change-Id: I06c8ba323cff02804d0aef3bf56892c111f67226
Add nova.utils.get_root_helper()

The pattern for the 'sudo nova-rootwrap' command was duplicated
throughout the code.  Put it in one place in nova.utils.

Change-Id: I0d4edfa5a53c3b9a9fa43864f5daaa17a0d024a1
Add columns_to_join to instance_update_and_get_original

Add a parameter to instance_update_and_get_original() to specify the
expecected columns to be returned.

Change-Id: Ib324fdf02f3d462970cdf7c7065ddc3d87f72fba
Signed-off-by: Yongli He
PCI passthrough Libvirt vm config

PCI passthrough device's xml config formatter. adding pci
passthrough device to VM, and detach it from a VM. adapter the
hypervisor PCI passthrough devices management interface given a
unify interface to other PCI passthrough components.

bp:pci-passthrough-libvirt

Co-authored-by: Boris Pavlovic <boris@pavlovic.me>
Change-Id: If55648e5cc2ed5b7ea44aad08205689d99338856
Signed-off-by: Yongli He <yongli.he@intel.com>
Port to oslo.messaging.Notifier API

Add a temporary nova.notifier.Notifier helper class which translates
oslo.messaging.Notifier compatible calls into openstack.common.notifier
compatible calls.

This allows us to port the notifier code over to the oslo.messaging API
before actually switching over oslo.messaging fully.

This patch contains no functional changes at all, except that all
notifications go through this temporary helper class.

Some notes on the new API:

  * The notifier API is changed so that what was previously global state
    is now encapsulated in a Notifier object. This object also includes
    the publisher_id and has error()/info()/etc. methods rather than
    just notify().

  * The notify_decorator() helper wasn't carried across to the new API
    because its semantics are a bit weird. Something along these lines
    could be added in future, though.

  * We use a fake Notifier implementation for tests because there's no
    API in oslo.messaging to actually get the notifications queued
    up in the fake notification driver, which is a bit dumb. However,
    this feels like the right thing to do anyway. We're not wanting
    to test oslo.messaging.Notifier itself, but rather we want to test
    how we call it.

blueprint: oslo-messaging
Change-Id: I262163c7e05e6a6fb79265e904ce761fc3ac5806
Merge "Add nova.utils.get_root_helper()"
Merge "Add columns_to_join to instance_update_and_get_original"
Merge "PCI passthrough Libvirt vm config"
Merge "Fix ArchiveTestCase on PostgreSQL"
Merge "Port to oslo.messaging.Notifier API"