Commit Graph

16 Commits

Author SHA1 Message Date
Joe Gordon 6cb7801ac7 Alphabetize imports
Except for nova/api/, nova/tests/, nova/virt/
In preparation for automated checking being enabled (N306)

Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
2012-05-14 15:52:21 -07:00
Craig Vyvial fbae8d09fd Adding notifications for volumes
Added notifications for volumes have been added with tests.
This includes create/delete/exists events for volumes.

blueprint nova-notifications

Change-Id: I21b74974fac22c3621ccf7564dc5c0d339f8751a
2012-05-14 16:34:08 -05:00
Jason Kölker b7e894b196 Do not fail on notify when quantum and melange are out of sync.
This patch adds the `ignore_missing_network_data` flag which will log
exceptions rather than raising them when generating usage exists
notifications.

Change-Id: Ie11bc9028790c2d1b3de1f4709a9e17a67e06f26
2012-05-08 12:52:44 -05:00
Matt Dietz 995235ac26 A previous patch decoupled the RPC drivers from the nova.flags, breaking instance audit usage in the process.
This configures the instance audit usage to configure the RPC drivers properly with FLAGS so that the job can run.

Change-Id: Ia189d18d7b25a839de67439ccd363103c5af2f8f
2012-05-01 17:38:57 +00:00
Matt Dietz 8577aeb128 Adds better bookending and robustness around the instance audit usage generation
Change-Id: Ib5f68ea0b8d4ed866b5dade268e63cf99241ce4b
2012-04-30 18:01:49 +00:00
Rick Harris d55823d8d4 Typo fix in bin/instance-usage-audit.
The notify method now requires a context, which in this case should be
`admin_context` not `context`.

Change-Id: I53275d0e1c9a898a7c0d9685382bb52ffb2efa2c
2012-04-24 17:04:39 +00:00
Rick Harris b916b06f10 Adding context to usage notifications.
This patch passes context objects all the way down to the usage
generating code. This allows that code (in future) patches to make
context-dependent calls in order to augment the usage_info dict.

Change-Id: I6592d7aecd99750cab6a91bbadc2c761155d2d4d
2012-04-23 21:30:15 +00:00
Brian Elliott d207b37fa6 Renamed current_audit_period function to last_completed_audit_period to clarify its purpose.
Change-Id: I7bcfbd1a0545f992b1deae54e4deb956ae33e15d
2012-04-12 12:44:06 +00:00
Joe Gordon 036c34f44f Fix up docstring
Change-Id: I0b9e29455393c34e2861360418297b60bd073d9d
2012-03-14 15:16:43 -07:00
Joe Gordon 88090f212a More cleanup of Imports to match HACKING
Found using https://github.com/cloudscaling/nova-HACKING

Change-Id: Iaf95d7c65d4c6ff1fa4b045d83a4266cc8f27efe
2012-01-19 10:10:41 -08:00
Monsyne Dragon 5aa5229082 Adds more usage data to Nova's usage notifications.
Adds in bandwidth, state and IP data on standard notifications,
and new notifications on add/remove IP.

These were missing before, and are needed to meet spec.
This fixes bug 849117

Change-Id: Ie586ff3a91a56e5f5eff8abc6905ba6a0b624451
2011-10-12 19:11:14 +00:00
Vishvananda Ishaya dcf5970dd9 make two functions instead of fast flag and add compute api commands instead of hitting db directly 2011-08-30 12:01:18 -07:00
Monsyne Dragon 498f2d6715 Refactored usage generation 2011-06-28 20:37:05 +00:00
Monsyne Dragon 4c1d05d27f Fix issues due to renming of imange_id attrib. 2011-06-28 15:21:08 +00:00
Monsyne Dragon e2c66d0e96 Fix pep8 nits in audit script 2011-06-28 09:08:35 +00:00
Monsyne Dragon 4b8bcf30f9 Re-merging code for generating system-usages to get around bzr merge braindeadness. 2011-06-28 08:57:05 +00:00