improve how xenapi RRD records are retrieved

Bug #931604 reported by Armando Migliaccio on 2012-02-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Armando Migliaccio

Bug Description

There is nothing particularly wrong with how RRD records are retrieved in xenapi today.

However there are a couple of potential issues, as described below:

- RRD XMLs are always obtained using http over the XS management interface address. Albeit this is fine in most cases there are problems when: i) nova-compute domU is talking to xapi using the internal management network (e.g. talking to xapi via and traffic cannot be routed between domU and dom0; ii) in resource pools, the host address from the xenapi session handle is always the master, which could get overloaded if there are too many requests.

- get_rrd and get_rrd_updates could politely log the IOError exceptions.

I propose to use FLAGS.xenapi_connection_url instead. By using this flag we have the following benefits:

- we transparently use the appropriate scheme and server (regardless of whether the host is in a pool or not).
- it is quicker (we don't need to call xapi to get the address)

Changed in nova:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
status: New → Confirmed

Fix proposed to branch: master

Changed in nova:
status: Confirmed → In Progress
description: updated
description: updated

Submitter: Jenkins
Branch: master

commit 00c77e0e9af6ae16484e4bee5f33de1eeb812227
Author: Armando Migliaccio <email address hidden>
Date: Mon Feb 13 18:46:57 2012 +0000

    bug 931604: improve how xenapi RRD records are retrieved

    switch to using FLAGS.xenapi_connection_url to obtain scheme and
    address to talk to in order to fetch RRD XMLs. See bug report for
    more info.

    Change-Id: Iad6520cdb15f32e9e50ab0d42026282e57aaa30d

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers