[gsoc-dev] [GSoC] [GWM] Week report and Query

pranjal mittal mittal.pranjal at gmail.com
Thu Jul 25 15:12:52 UTC 2013


Hello Everyone,

So as "ganetiviz" [1], works as a separate app now (since Friday) , I am
much excited about working on enhancing it further. :)
I worked ahead on the enhancement, I mentioned via IRC / email, about
visualizing node / vm status in ganetiviz via different color.

*So here's the week's report till now -*

   - Added (in-code) comments / docs for Abstract graph modeling &
   manipulation in *ganetiviz / js / graph.js*

   - Additional fields were added to ganetiviz/views.py to include node /
   vm status information in output JSON. [2]

   - *Instance* "running" status is now indicated by a "*green*" color and
   any other instance status is indicated by a "*red*" color

   - Offline *nodes* will be shown by a "*red*" color.

   - (In-process) Anaylizing possibilities for refreshing relevant cached
   information (ie. sync with ganeti)


*Query:*

(1)
How should I initiate a refresh on a particular cluster. The url given
ahead maps to a *"cluster refresh"*:
"/cluster/ganeti/refresh"
But I am confused about what it does when I see the views.

It says:

   -  Nodes no longer in ganeti are deleted
   -  Nodes missing from the database are added


It does *not* mention about the following:

   -  "*All the attribute values of the available nodes are refreshed (even
   if a node is not deleted)"*



Should I look towards implementing new views that use the RAPI directly
(and if useful update the GWM cached models) or* is something like this
already implemented?*
(This could be an important feature for the main Cluster "Refresh" option
in itself since "Refresh" should imply a refresh of the object list
including ALL its attributes and not just the names of the objects.



*Additional Notes:*
*
*
[1] "ganetiviz" - App dealing with Cluster, Node, VM Visualization in GWM
https://github.com/pramttl/ganeti_webmgr/tree/feature/13569

[2]
The interesting idea is that the returned JSON can be expanded anytime by
adding more fields *(via views)* without affecting the mapping
functionality of the current ganetiviz app.


Thanking you,
Kind Regards,
- Pranjal Mittal



-- 
Pranjal Mittal
B.Tech.  2014
Indian Institute of Technology,BHU
Varanasi, U.P,
India

Github <http://github.com/pramttl> |
LinkedIn<http://in.linkedin.com/pub/pranjal-mittal/26/660/318/>|
Blog <http://pranjalmittal.in>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/gsoc-dev/attachments/20130725/16b07c7b/attachment.html>


More information about the gsoc-dev mailing list