libvirt: vif tests should use a flavor object

Some part of the tests code are still using a dictionary
to simulate flavor data structure.
However, it has been in fact changed to being a nova object.

Changing these part to be an object.

Change-Id: Idb0e1ca8fa09e1a36ba0f62175f01ee856e3f31b
Correct InvalidAggregateAction translation&format.

InvalidAggregateAction .looks like:
 class InvalidAggregateAction(Invalid):
     msg_fmt = _("Cannot perform action '%(action)s' on aggregate "
     "%(aggregate_id)s. Reason: %(reason)s.")

The values for action are not well formed and reason are not translated.
This patch fixs those problems

Change-Id: I9ed20badde8a38eb71c5f121f30e4d54ad50022e
Closes-Bug: #1278736
Add debug log for url not found

I got following error from unit tests
apparently it's not helpful to know what's the root cause to make the failure
This patch adds a debug log

2014-11-21 16:47:52,943 DEBUG [nova.openstack.common.fileutils] Reloading cached file /tmp/tmpTBjKpX/tmpiC7e2k/policy.json
2014-11-21 16:47:52,950 DEBUG [nova.openstack.common.policy] Rules successfully reloaded
2014-11-21 16:47:52,951 WARNING [nova.openstack.common.policy] Can not find policy directories policy.d
2014-11-21 16:47:52,954 DEBUG [nova.network.minidns] minidns file is |/tmp/tmpTBjKpX/tmpdjtU4j/dnstest.txt|
2014-11-21 16:47:52,955 DEBUG [nova.network.minidns] minidns file is |/tmp/tmpTBjKpX/tmpCHMwMh/dnstest.txt|
2014-11-21 16:47:52,958 DEBUG [nova.network.minidns] minidns file is |/tmp/tmpTBjKpX/tmpggVMPv/dnstest.txt|
2014-11-21 16:47:52,959 DEBUG [nova.network.minidns] minidns file is |/tmp/tmpTBjKpX/tmpz2Ptbv/dnstest.txt|
}}}

Traceback (most recent call last):
  File "/home/jichen/git/nova/nova/tests/unit/api/openstack/compute/contrib/test_virtual_interfaces.py", line 84, in test_get_virtual_interfaces_list
    self.assertEqual(res.status_int, 200)
  File "/home/jichen/git/nova/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 348, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/jichen/git/nova/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    raise mismatch_error
MismatchError: 404 != 200

Change-Id: I30a302cf624f023cb7e2228ced7774036a6d7fba
Fix type of uniq_security_groups0project_id0name0deleted

Migration 190 created uniq_security_groups0project_id0name0deleted but
added it to the model as an index instead of a UniqueConstraint.

Change-Id: Id01c2207a6d2b59cc0f9c4301d696d8a3dd82df7
Partially-implements: blueprint validate-migrations-and-model
libvirt: video RAM setting should be passed in kb to libvirt

Currently, video RAM setting is being set in MB in both
flavor extra_spec and the image property, however, it is not
being translated to KB, in the instance XML config.

Change-Id: Ie1091c08a011d650a7bb0ff0337337ceae7b111b
Closes-Bug: #1373239
Merge "libvirt: vif tests should use a flavor object"
Merge "libvirt: video RAM setting should be passed in kb to libvirt"
Merge "Correct InvalidAggregateAction translation&format."
Merge "Add debug log for url not found"
Merge "Fix type of uniq_security_groups0project_id0name0deleted"