<div dir="ltr"><div><div><div>Many thanks,<br><br></div>Can you be able to show me any example for the same.<br><br></div>Regards,<br><br></div>Murali.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 December 2015 at 15:54, Stéphane Albert <span dir="ltr"><<a href="mailto:sheeprine@nullplace.com" target="_blank">sheeprine@nullplace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">Hi,<br>
<br>
On Tue, Dec 08, 2015 at 02:29:19PM +0530, murali wrote:<br>
</span><span class="im HOEnZb">> Hello,<br>
><br>
> I am using cloudkitty in my Development environment.<br>
><br>
> I have some question regarding the cloudkitty.<br>
><br>
> I need to achieve one goal with Cloudkitty with devstack.<br>
><br>
> Actually in my development environment I can be able to setup the<br>
> Cloudkitty and also can be able to manually configure pricing using hashmap<br>
> module.<br>
><br>
> Its working fine as expected I can be able to see that Pricing area is<br>
> being displayed during the Instance creation and values were being<br>
> displayed correctly.<br>
</span><span class="im HOEnZb">Good to hear that you achieved good results with CloudKitty.<br>
<br>
><br>
</span><span class="im HOEnZb">> Now my goal is to Automate the part of configuring hashmap module in<br>
> Cloudkitty.<br>
><br>
> Instead of configuring it manually I need to automate that particular part.<br>
><br>
> So that I can be able to skip the Manual configuration of pricing.<br>
><br>
> In other words:<br>
><br>
>         I need to develop a pattern/script for leveraging the API (using<br>
> the cloudkitty python library) for initial setup/injection of pricing for<br>
> several instance types as well as specific additional pricing for a<br>
> specific image uuid.<br>
><br>
> Some one let me know the way to achieve the same.<br>
</span><div class="HOEnZb"><div class="h5">There is no import/export tool for rating rules at the moment.<br>
If you want to automate creation of rating rules you either need to<br>
create a bash script calling the client. Or you can create your own<br>
python script loading data from a file, let's say a csv. Then push the<br>
data with the python lib.<br>
<br>
Personally when a need to do quick setups of CloudKitty I just write a<br>
bash script. But if you need something modular you can go with a python<br>
script.<br>
<br>
><br>
> Regards,<br>
><br>
> Murali<br>
<br>
Cheers,<br>
Stéphane<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><b><i><font face="arial, helvetica, sans-serif" size="4" color="#cc0000">life s to live....!!!<span style="background-color:rgb(255,255,255)">!</span></font></i></b></div>
</div>