price always 0 when creating instance

Bug #1651766 reported by meifan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Confirmed
Undecided
Unassigned

Bug Description

when launch a instance, price always equal 0 when choose any flavor

Revision history for this message
Matthias Runge (mrunge) wrote :

I can reproduce this on devstack.
I also see in logs: 2016-12-27 12:43:30.966 26764 WARNING cloudkitty.orchestrator [-] Error while collecting service compute: HTTPException (HTTP 504)

Changed in cloudkitty:
status: New → Confirmed
Revision history for this message
meifan (fanmei) wrote :

I met this problem in ansible + lxc-container deployment.
Your problem probably lies in configuration of cloudkitty.conf about the collector.Try to change your collector into gnocchi.

Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

Hi Matthias and Meifan,

In my undestanding Matthias you are facing it using devstack. Can you please put your local.conf here ?
Meifan are you still facing it since you changed your collector to gnocchi ?

Revision history for this message
Maxime Cottret (aolwas) wrote :

Hi all,

what price did you enter in your hashmap rule ? I notice that price display in instance launcher wizard is fixed to 2 digits after the period ... so if you set a 0.001 price, you'll have 0.00 in the wizard.

I've spawned a new devstack today and did not notice other bug that this limitation.

Revision history for this message
zhangguoqing (474751729-o) wrote :

Hi Matthias and Meifan,
   I find that if the project property is assigned to the hashmap rule, the price of instance always is 0.00 in the wizard. Could you check it again, and give some feedbacks. Thank you. :)

Revision history for this message
meifan (fanmei) wrote :

Hi,Christophe,
I still met that problem when I changed my collector to gnocchi.I changed the source code of cloudkitty/orchestrator.py to post the tenant id to it and the problem have gone.

But new problem came out.When I set price of a image and a flavor, and I create instance, the price in the instance launcher wizard is not equal the price of image plus the price flavor.

Hi, zhangguoqing,
what do you mean of "project property is assigned to the hashmap rule"?

Revision history for this message
meifan (fanmei) wrote :

Hi,Maxiem,
I set the price to 0.1, 1.1... ,etc, the problem still there.

Revision history for this message
Wang Hailong (chriswang007) wrote :
Download full text (3.7 KiB)

Is this bug resolved? I rencounter same bug. I reported to story.openstack.org, but nobody reply.
https://storyboard.openstack.org/#!/story/2009022

CloudKitty did not display price while creating instance, and trigger ERROR info under Start Command

CloudKitty Version:commit 35ce237b763407e7844545d5e2531c6dc0f15998 (HEAD -> master, origin/master, origin/HEAD) Author: Rafael Weingärtner <email address hidden> Date: Tue Jun 22 09:48:13 2021 -0300

Steps to reproduce:

Using DevStack installed OpenStack with CloudKitty and Ceilometer releated compont
Using Dashboard enabled CloudKitty hashmap module
Using Dashboard defined the cost of instance, contains flavor_id field.
Run "cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf"
Using Dashboard create and luanch instance, repeatedly click "Price"/"Flavor"/"Networks"
Result in command line:

2021-07-01 10:54:46.883 17862 DEBUG cloudkitty.orchestrator [-] Received quote from RPC. quote /opt/stack/cloudkitty/cloudkitty/orchestrator.py:118
2021-07-01 10:54:46.883 17862 DEBUG cloudkitty.orchestrator [-] Chris Received Data3:[{'usage': {'instance': [{'desc': {'flavor_name': 'cirros256', 'flavor_id': 'c1', 'vcpus': 1, 'disk': 1, 'ephemeral': 0, 'disk_total': 1, 'disk_total_display': 1, 'ram': 256, 'source_type': 'image', 'source_val': '47cdc39d-935b-44c6-8810-8688e5b0b1b2', 'image_id': '47cdc39d-935b-44c6-8810-8688e5b0b1b2'}, 'vol': {'qty': '1', 'unit': 'undef'}}]}}] quote /opt/stack/cloudkitty/cloudkitty/orchestrator.py:119
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server [-] Exception during message handling: AttributeError: 'list' object has no attribute 'start'
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/opt/stack/cloudkitty/cloudkitty/orchestrator.py", line 121, in quote
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server return str(worker.quote(res_data))
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/opt/stack/cloudkitty/cloudkitty/orchestrator.py", line 224, in quote
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server processor.obj.quote(res_data)
2021-07-01 10:54:47.039 17862 ERROR oslo_messaging.rpc.server File "/opt/stack/cloudkitty/cloudkitty/rating/init.py", line 106, in quote
2021-07-01 10:54:47.039 17862 ER...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.