顯示具有 xapi 標籤的文章。 顯示所有文章
顯示具有 xapi 標籤的文章。 顯示所有文章

2013年5月1日 星期三

Xenserver Plugins on OpenStack



https://github.com/openstack/nova/tree/master/plugins/xenserver/xenapi/etc/xapi.d/plugins

_bittorrent_seeder 

Seed a bittorent image. This file should not be executed directly, rather it should be kicked off by the `bittorent` dom0 plugin.


agent

XenAPI plugin for reading/writing information to xenstore

bandwidth

Fetch Bandwidth data from VIF network devices

bittorrent

Download images via BitTorrent.

glance

Handle the uploading and downloading of images via Glance.

kernel

Handle the manipulation of kernel images.

migration

XenAPI Plugin for transferring data between host nodes

pluginlib_nova.py

Helper functions for the Nova xapi plugins.  In time, this will merge
with the pluginlib.py shipped with xapi, but for now, that file is not
very stable, so it's easiest just to have a copy of all the functions
that we need.


utils.py

Various utilities used by XenServer plugins

workarounds

Handle the uploading and downloading of images via Glance.

xenhost

XenAPI plugin for host operations

xenstore.py

XenAPI plugin for reading/writing information to xenstore

2013年4月30日 星期二

xapi a.k.a XenAPI

XAPI is at the heart of XenServer. It manages everything – all the resources in your XenServer environment, 

  1. reads in configs, 
  2. initializes networking paths, 
  3. checks licensing, 
  4. maintains a Database with all this info (the XAPI database), 
  5. manages Storage Repositories, 
  6. manages VMs, 
  7. tracks VM states, 
  8. manages networking, 
  9. High Availability 
  10. other XenServer hosts in the pool and more……
Each XenServer request or action is done via Xapi – and only by asking the Master XenServer XAPI to do so. 

A copy of the XAPI database (or you could consider this to be the state of XAPI) is synchronized among all the hosts in the pool – so they all have a copy of the current XAPI database – giving them the knowledge of what is going on – and in the case of the master going down – a new master can be appointed from the pool using the XAPI state information or shared database.
When you collect a status report from XenServer – the XAPI Database is stored in the status report. It is a relational database – and shows us the state of the environment at that point in time (when the status report was captured).

Reference