[gsoc-dev] [GWM] Need a bit of Sys Admin help - Sample data

pranjal mittal mittal.pranjal at gmail.com
Mon Jul 1 17:22:16 UTC 2013


Interesting, I didn't know there was a santize tool for the configuration
files.
I was wondering before, as to why the nodes and instances in the JSON file
you gave me have so mainstream names.

Having a look at sanitize-config. Will have to try using it first, to see
what it does exactly.


On Mon, Jul 1, 2013 at 9:02 PM, Lance Albertson <lance at osuosl.org> wrote:

> I'm cool with doing this but I want to make sure the data is sanitized
> (i.e. no real hostnames or ips). The data I originally gave you came from a
> script from ganeti itself which had an sanitized feature. Perhaps we (or
> you!) can write a similar tool for RAPI and contribute it upstream. For a
> reference its under tools/sanitize-config in the ganeti git repo. I would
> create one called sanitize-rapi.
>
>
> On Sun, Jun 30, 2013 at 5:43 AM, pranjal mittal <mittal.pranjal at gmail.com>wrote:
>
>> Hello Lance / Ken,
>>
>> I need some sample data -
>> JSON dumps for all nodes, virtualmachine objects on any one sample
>> cluster at the OSL, *obtained almost exactly this GWM way shown below-*
>>
>> $ cd ganeti_webmgr
>> $ python manage.py shell
>>
>> >>> from ganeti_web.models import *
>>
>> *>>> vms = VirtualMachine.objects.all(cluster=...)*
>> *>>> nodes = Node.objects.all(cluster=...)*
>> *
>> *
>> *>>> serialized_data_vms = json.dump(vms, "vms.json")*
>> *>>> serialized_data_nodes = json.dump(nodes, "nodes.json")*
>>
>> vms.json, & nodes.json is what I would need.
>>
>>
>> *Why?*
>> The front-end "graph.js" needs to be format-aware of these JSON objects
>> to use them well. (Technically, that would be me :))
>> Though, I am almost sure I would not be passing the same JSON as above to
>> the client-side ie. I might want to do some sanitizing,formatting before
>> serializing to JSON, in Python itself.
>>
>>  But, I would need this format  atleast now,  to experiment.
>>
>>
>> Thanks,
>> - Pranjal
>>
>> IRC: pmittal
>> GITHUB: pramttl
>>
>> --
>> Best Regards,
>> Pranjal Mittal
>> B.Tech.  2014
>> Indian Institute of Technology,BHU
>> Varanasi, U.P,
>> India
>>
>
>
>
> --
> Lance Albertson
> Director
> Oregon State University | Open Source Lab
>



-- 
Best Regards,
Pranjal Mittal
B.Tech.  2014
Indian Institute of Technology,BHU
Varanasi, U.P,
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/gsoc-dev/attachments/20130701/842b63eb/attachment.html>


More information about the gsoc-dev mailing list