Kolla-ansible Openstack : Queries on Metering and Rating Module
KK CHN
kkchn.in at gmail.com
Fri Sep 2 12:26:04 UTC 2022
I am going to add the hashmap service to cloud kitty conf files by
defining (venvopenstack) cloud at Xena:~$ sudo vi
/etc/kolla/cloudkitty-processor/cloudkitty.conf
[collect]
collector = gnocchi
metrics_conf = /etc/kolla/cloudkitty-processor/metrics.yml
And in metric.yml defined the services and fields as in
https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html
But when I tried to
$ cloudkitty hashmap group create instance_uptime_flavor_id
There is no cloudkitty CLI option
only I have
(venvopenstack) cloud at wallaby:~$ cloud-
cloud-id cloud-init cloud-init-per cloud-localds
(venvopenstack) cloud at wallaby:~$
No cloudkitty command line option. Why ?? anything I made wrong ?
This was in my globals.yml which enabled for this deployment.
(venvopenstack) cloud at wallaby:~$ grep ^[^#] /etc/kolla/globals.yml
---
kolla_base_distro: "debian"
kolla_install_type: "source"
kolla_internal_vip_address: "10.184.48.250"
network_interface: "ens3"
neutron_external_interface: "ens4"
enable_ceilometer: "yes"
enable_cloudkitty: "yes"
enable_gnocchi: "yes"
enable_horizon_cloudkitty: "{{ enable_cloudkitty | bool }}"
cloudkitty_collector_backend: "gnocchi"
nova_compute_virt_type: "qemu"
(venvopenstack) cloud at wallaby:~$
What I am missing : Any hints most welcome.
Thank you,
Krish
On Fri, Sep 2, 2022 at 1:39 PM Pierre Riteau <pierre at stackhpc.com> wrote:
> You have to create rating rules for CloudKitty to perform rating.
> Otherwise it won't produce any results. See the CloudKitty documentation
> about hashmaps for more details:
> https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html
>
> On Fri, 2 Sept 2022 at 09:33, KK CHN <kkchn.in at gmail.com> wrote:
>
>> I have installed all-in-one using Kolla-ansible wallaby on a Virtual
>> Machine (Debian 10)
>>
>> By default configurations up and running are able to create VMs .. with
>> the default Cirros image.
>>
>> I want the Metering and Billing modules for a deployment scenario. So I
>> used this setup as a PILOT and use ceilometer with cloudkitty and
>> gnocchi..
>>
>> I have enabled ( correct me If I am wrong or missing any other
>> directives for metering and rating other than this if required =>
>> enable_ceilometer : "yes" enable_cloudkitty : "yes" enable_gnocchi :
>> "yes" , enable_horizon_cloudkitty : "{{ enable_cloudkitty |bool }}"
>> cloudkitty_collector_backend: "gnocchi"
>>
>> in /etc/kolla/globals.yml
>>
>> Then re deployed the all in one $ ( (venvopenstack) cloud at wallaby:~$
>> kolla-ansible -i ./all-in-one bootstrap-servers , (venvopenstack)
>> cloud at Xena:~$ kolla-ansible -i ./all-in-one prechecks, (venvopenstack)
>> cloud at Xena:~$ kolla-ansible -i ./all-in-one deploy ) .. All went well
>> up and able to access horizon dashboard.
>>
>> How to view the metrics and ratings ::
>>
>> I am able to get Admin => Rating tab
>> Enabled the three Rating Modules there. (Hashmap, noop, pyscripts) ..
>>
>> Rating Summary : I am getting as below
>> All CloudTotal 0
>> LL <http://10.184.48.94/admin/rating_summary/ALL> Cloud Total
>> <http://10.184.48.94/admin/rating_summary/ALL> 0
>>
>> Hashmap and pyscrips tab nothing to view , its empty.
>>
>> How can I use this Rating module and how to get useful values there ?
>> Or is there any other configurations I have to make to get a better
>> metering and billing utility using these tools.
>>
>> Kindly share your tips and expertise with these tools.
>>
>> What / where to refer to get a nice Rating/metering configurations using
>> these tools.( Or do I need to enable / configure more directives or
>> resources ??)
>>
>> I have not seen a highly populated Rating Module interface in Horizon so
>> it should be. Any reference images and configurations are most welcome.
>>
>> Thank you,
>> Krish
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20220902/8777608d/attachment.htm>
More information about the openstack-discuss
mailing list