[Ovirt-devel] [PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server

Arjun Roy arroy at redhat.com
Wed Jul 8 18:40:26 UTC 2009


The purpose of this patch is to replace the identify function in
host-browser.rb with a new script, host-register.rb.

host-register.rb is a qmf ruby console that interfaces with the newly
added matahari qmf agent on the ovirt node. While it stores node data
in the database with the same behavior as the original host-browser
implementation, it acquires the data using the amqp protocol (and specifically,
using Apache qmf objects). This patchset goes hand in hand with the patchsets
adding support for the matahari qmf agent to ovirt-node and ovirt-node-image.

Note that host-browser still performs the kerberos related duties it did before.

There is at present a bug in the implementation of qmf - if the node connects
to qpidd on the server before host-register does, then the data picked up by
host-register will be in an inconsistent state till the node disconnects and
reconnects to the broker. See: http://issues.apache.org/jira/browse/QPID-1973

The workaround for the above bug is to restart that matahari service on the node
should the data appear incorrect. If the host-register needs to be restarted, the
service on each of the nodes needs to be restarted after host-register.

See also: http://git.et.redhat.com/?p=matahari.git;a=summary
(The matahari qmf agent for the ovirt-node)

Arjun Roy (3):
  Removed host browser identify unit test in preparation of removal of
    host browser node identify functionality.
  Removed ovirt node identify functionality from host-browser.
  Added new host-register script to ovirt server. host-register is a
    qmf ruby console that replaces the identify node functionality in
    host-browser, by interfacing with the matahari qmf agent on the
    node to stat node hardware data.

 conf/ovirt-host-register                    |   54 +++
 installer/modules/ovirt/manifests/ovirt.pp  |    6 +
 ovirt-server.spec.in                        |    5 +
 src/host-browser/host-browser.rb            |  255 +---------------
 src/host-browser/host-register.rb           |  468 +++++++++++++++++++++++++++
 src/test/unit/host_browser_identify_test.rb |  310 ------------------
 6 files changed, 534 insertions(+), 564 deletions(-)
 create mode 100644 conf/ovirt-host-register
 create mode 100644 src/host-browser/host-register.rb
 delete mode 100644 src/test/unit/host_browser_identify_test.rb




More information about the ovirt-devel mailing list