← Back to team overview

openstack-aps-package-dev team mailing list archive

Re: Openstack API

 

Let me decrypt this :)

Both Apis are used, but depends on type of instance and so on….

Nova => working
Cellometer => on test instance fails quite often in the install used for this development


-----------------------------------------------------
Marc Serrat Bote
Parallels Tech Assistant/Advisor SVP R&D/APS Evangelist

II Parallels
www.parallels.com
-----------------------------------------------------
Office: +34-936681122
Direct: +34-936804883
Email: mserrat@xxxxxxxxxxxxx<applewebdata://C7396022-90AE-46BD-AA34-56D7BAF8A332/mserrat@xxxxxxxxxxxxx>
Linkedin: http://www.linkedin.com/in/marcserrat/


This message contains confidential information and is intended solely for the addressee. Any unauthorized duplication, redirection or publishing of its content is subject to the sender´s prior written approval. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail in any way. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


De: Javier Ribó <javier.ribo@xxxxxxxxx<mailto:javier.ribo@xxxxxxxxx>>
Fecha: viernes, 28 de noviembre de 2014, 12:42
Para: Evgeniya Shumakher <eshumakher@xxxxxxxxxxxx<mailto:eshumakher@xxxxxxxxxxxx>>, Marc Serrat Bote <mserrat@xxxxxxxxxxxxx<mailto:mserrat@xxxxxxxxxxxxx>>, "openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx<mailto:openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx>" <openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx<mailto:openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx>>, Albert Alarcón <albert.alarcon@xxxxxxxxx<mailto:albert.alarcon@xxxxxxxxx>>, Jepi Humet <jepi.humet@xxxxxxxxx<mailto:jepi.humet@xxxxxxxxx>>
Asunto: Re: [Openstack-aps-package-dev] Openstack API

Hi Evgeniya,

As we talked previously on the past calls, we defined VCPU’s, Memory, Floating IPS, Disk Size, Traffic out , counters for Flat and PAYG subscriptions.

The only way of obtaining FloatingIPS /  Disk Size / Traffic out, is using the Ceilometer API.

An example (NOVA) can be found here :
http://docs.openstack.org/api/openstack-compute/2/content/ext-os-simple-tenant-usage.html

But as it doesn’t return all the important information we are not using the NOVA API.
 If you have any other way to obtain the current usage, including the Disk size, floating IPs and Traffic out, for all the resources make me know, we have tried many API calls and think that this is the best way to do it.

Please confirm what action we should take… We can disable the Floating IPS and Traffic out, and disk size counters, and try to obtain the rest of the information through the Nova API if you want. But then the Counters i mentioned will not be updated.

**The Nova API usage is now implemented in CCP, for updating the Virtual Machines usage without having to make that slow request, but only for that view and not the Usage Retrieve cron.


Thank you









El 28/11/2014, a las 12:09, Evgeniya Shumakher <eshumakher@xxxxxxxxxxxx<mailto:eshumakher@xxxxxxxxxxxx>> escribió:

Javier,

Which API do you use to get statistics? Ceilometer or Nova?

As per what we agreed you are meant to you use Nova API in order to reduce time spent on getting instance’s resource usage.
Anyway, i will check with OpenStack experts what can be the cause of the problem.

Thanks.

On Thu, Nov 27, 2014 at 9:16 PM, Javier Ribó <javier.ribo@xxxxxxxxx<mailto:javier.ribo@xxxxxxxxx>> wrote:
Hi,

We are working on all the UI improvements commented on the wednesday’s call.

We were checking if the resources were correctly updated, but we noticed the Counters are not updating correctly, and we found a Error on the Openstack API.

Remember we already got problems with this request (Usage statistics Call), its not responding again. Meanwhile we can keep working on the found bugs and improvements. But i think its important to make you know this.

* About to connect() to 176.74.221.57 port 8777 (#0)
*   Trying 176.74.221.57... * connected
* Connected to 176.74.221.57 (176.74.221.57) port 8777 (#0)
> GET /v2/meters/vcpus/statistics HTTP/1.1
Host: 176.74.221.57:8777<http://176.74.221.57:8777/>
Accept: */*
X-Auth-Token: dfb14ea72b0343648e934c38ae48fcd1
Content-Type: application/json
Content-Length: 233

* Closing connection #0
* Failure when receiving data from the peer.


Thank you very much!

--
Mailing list: https://launchpad.net/~openstack-aps-package-dev
Post to     : openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx<mailto:openstack-aps-package-dev@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack-aps-package-dev
More help   : https://help.launchpad.net/ListHelp




--
Regards,
Evgeniya
Mirantis, Inc

Mob.phone: +7 (968) 760-98-42
Email: eshumakher@xxxxxxxxxxxx<mailto:eshumakher@xxxxxxxxxxxx>
Skype: eshumakher


Follow ups

References