Bug #716

Monitoring will not show information if there is no resource

Added by Daniel Molina almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:07/12/2011
Priority:NormalDue date:
Assignee:Daniel Molina% Done:

0%

Category:Sunstone
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

If there is no resource the monitoring utility will not show information, due to there is no row in the database for the steps in which there is no resource. It will return an empty array.

Example:

If the number of running VMs in the cloud is 10 and you delete all of them, the Sunstone monitoring graphic will not be updated and will show the last timestamp information that shows 10 VMs running (the timestamp will show that is an old value). When an instance is started again the graphic will show a line from 10 to 1 without showing the timestamps in which the number of VMs was 0.

Solution:

2 new tables and their Sequel models must be created:
  • VM_TIMESTAMPS
  • HOST_TIMESTAMPS
    Containing as many rows as the WINDOW_SIZE specifies. This way all the timestamps will be registered.

The VM_SAMPLES and HOST_SAMPLES must be modified, adding a new foreign key for the timestamp column.

To keep as many rows as the WINDOW_SIZE specifies each time a flush is called the Timestamp class must delete the old rows deleting as well the samples associated.

Associated revisions

Revision de0d8cba
Added by Daniel Molina almost 10 years ago

bug #716: Fix monitoring information when no resources are present

Revision aab42cee
Added by Daniel Molina almost 10 years ago

bug #716: Add monitoring tests

Revision 6529e6d4
Added by Daniel Molina almost 10 years ago

bug #716: Fix monitoring information when no resources are present(cherry picked from commit de0d8cba732a9e024fd654271defa908dd219bc8)

Revision 3ef43102
Added by Daniel Molina almost 10 years ago

bug #716: Add monitoring tests(cherry picked from commit aab42cee603ad28899232346593987f173216a80)

Revision 16424e9a
Added by Daniel Molina almost 10 years ago

bug #716: Fix bug in host monitoring client

Revision e1d6264e
Added by Daniel Molina almost 10 years ago

bug #716: Fix bug in host monitoring client(cherry picked from commit 16424e9a52632b734af6de789c8b168caf78319c)

Revision 6cc9a076
Added by Daniel Molina almost 10 years ago

bug #716: Fix constant name

Revision 96a539d4
Added by Daniel Molina almost 10 years ago

bug #716: Fix constant name(cherry picked from commit 6cc9a076a881b725ac1222d0a5ea9550e537005f)

History

#1 Updated by Ruben S. Montero almost 10 years ago

  • Assignee deleted (Daniel Molina)

#2 Updated by Ruben S. Montero almost 10 years ago

  • Status changed from New to Closed
  • Assignee set to Daniel Molina
  • Resolution set to fixed

Also available in: Atom PDF