[Openstack] [metering] Where can I consume messages from metering system?

2012-05-25 Thread Szymon Grzybowski
Hi,

We had a plan to write some plugin which will collect metering data from
VMs and Hosts (free ram, networking, disk IO, cpu both from VMs and Hosts)
via libvirt (mayby later for xen etc), but i've found ceilometer project,
which is doing what I want or will be doing what I want in near future :).
I was thinking about collectd/ganglia/munin as source of data and I wanted
to write local agents which will poll those daemons (collectd/ganglia) and
push data to Rabbit, so it's pretty close to ceilometer's guys.

My main purpose is to consume those messages and write algorithm to manage
cloud from administrative perspective. I'd like to create something like
DRM in VmWare - I was on presentation about this topic recently and from
that brief I learnt that VmWare has something like rules to manage VMs. I
think, that example (use case) from presentation would be the best way to
describe what I'm trying to point out:

1. Administrator defined a rule: { If free ram on host is less than 15%,
send notification Alert less than 15% free ram on host}
2. HostA hits less than 15% of free ram and sends notification Alert less
than 15% free ram on HostA.
3. Central collector or central daemon receives Alert about free ram.
4. Central collector pick VM from HostA and migrate it to HostB. - How he
decides which VM and to which Host migrate is part of algorithm/policy.

This is the basic idea, how does it work - this is what I've found out
during presentation. And now my whole idea about this mechanism and
openstack: there could be different policies(algorithms/plugins) how, where
and when migrate VMs and this could be implemented in external plugins.

Someone can say that there is nova-scheduler. This scenario isn't exactly
what nova-scheduler is doing, but I see, that in this solution
nova-scheduler can play his role as service, which picks best host to
migrate VM.

I'm trying to find out what can I use from ceilometer as metering system.
I've read few pages on wiki and posts on mailing list about ceilometer's
architecture, messages etc.
Right now I know there are Agents and Collectors. Agents get data from
hypervisor (metering data)  and push them in queue (nova notification
system). Collectors listens to queue's topic and receives those messages.
I'd like to:

   - write plugin for agent to send proper alert when metering data hits
   proper rules (just like in above scenario with 15% free ram)
   - write service which will consume this alert (listen proper topic in
   queue) and fetch data from ceilometer collector?? (or it's backend via API)
   and find out which VM should be migrated and where (or delegate Where to
   nova-scheduler)

Another idea. Are there any Host states in Openstack? For example
Maintenance state? Besides scenarios with free ram, cpu and other
resources there is also typical example of how useful this mechanism could
be with maintenance state.
*Scenario:*
1. Administrator changes HostA state to maintenance.
2. There goes alert HostA maintenance.
3. Central collector or central daemon receives Alert about maintenance.
4. Central collector gets list of VMs on HostA.
5. Central collectors start migration all VMs from HostA to other Hosts (or
invoke nova-scheduler to reassign VM from HostA to other hosts, but in this
case we need to change or implement new filter in nova-scheduler)
6. Administrator changes HostA state to active.
7. Openstack starts new machines on this node (this is now done via
nova-scheduler) or migrate VMs from other overloaded hosts to HostA.

Everything should be event-driven (alert-notification, host-state-change,
administrator's action).

I'm also wondering what about this
ResourceMonitorAlertsandNotificationshttp://wiki.openstack.org/ResourceMonitorAlertsandNotifications,
because when I'm looking at schema, it has everything what I need, but
blueprint link is broken. Is this idea obsolete? Or is it implemented?
(this was created 2nd April 2012, so I think it's not implemented yet).

First question: Does it make sense? Are such mechanisms implemented in
Openstack right now? Or is it worth to implement?
Second question (if first's answer isn't negative): How and when can I use
ceilometer to do what I've described? From meeting's
topicshttp://wiki.openstack.org/Meetings/MeteringAgendaI know that
yesterday you were deciding what to use as notification bus,
and in june you will be thinking about storage backend, how is it going on
right now? Is such scenario possible in ceilometer (I mean plugins in
agents)? Collecting data not only from guests but also from hosts.

*Cheers,
*
*
*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Nova] Live migration libvirt authentication error.

2012-05-08 Thread Szymon Grzybowski
Hey,

I'm trying to migrate machine from HostA to HostB, but I have 
virtNetSASLSessionClientStart:484: authentication failed:  Failed to start
SASL negotiation: -20 in /var/log/libvirt.log when i'm trying to
nova live-migration VM HostB

I have SASL enabled on both machines. I've tried manually connect to remote
libvirt through virsh and defined user (ex. virsh --connect
qemu+tcp://HostA/system list) and everything works fine, but i have to
give proper credentials (username/password). I saw that nova's connection
string is also qemu+tcp://HostA/system, but i can't see any user there.
How does it work in nova and how can I fix it?

Cheers,

-- 
*Semy*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Energy efficiency

2012-04-29 Thread Szymon Grzybowski
Hi,

Me and my colleague are doing research about openstack and energy
efficiency during part of our master thesis about cloud computing. And
mayby we would like to write something inside nova-scheduler to dynamically
manage vms from cloud administrator's point of view. the general idea is to
automate process of vm migration to suite current policy. For example, we
have 10 servers in cloud with nova-compute, each is capable of running 5
vm. I'd like to run 20 vms. Aaccording to current nova-scheduler (filters),
each server will run 2 VMs, but it would be cheaper (this is policy defined
by administrator) if we run all of them on just 4 servers. of course, cloud
has to keep proper QoS rate (response time etc.). This is general idea.

Energy efficiency is really popular topic, when we talk about
servers,datacenters and virtualization, but I can't find any papers about
it in context of openstack. Are there any projects doing such researches or
articles? in fact it would be really surprising if there is nothing about
energy efficiency in context of openstack.

Cheers,
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Resource utilization

2012-04-20 Thread Szymon Grzybowski
Is there any way to get information about resource utilization from
Openstack? Any hidden API or something like that? I'm looking for
statistics about CPU, RAM usage etc. both from server itself (host) and
Instances (Virtual Machines) inside openstack, because i'd like to write
some piece of software which could analyze those data and for example,
migrate one VM to another Host. Is it possible to do this right now in
Openstack? Because all i can see on dashboard are stats about instance's
type. I've seen in docs something about live-migration, but i can't find
openstack's way to get informations about resources.

Where should i look for it in code if there is no official api, because
Openstack has to collect such data right?

-- 
*Semy*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Load balancing and Atlas-LB

2012-03-19 Thread Szymon Grzybowski
Hi,

Where can i find any informations about load balancing in OpenStack? How is
it implemented and where? On wiki I've found something about Atlas-LB. Is
this project finished? Or still in progress? There is no roadmap for it so
it's really hard to find out the progress.

I'm plannig to write master thesis about load balancing algorithms and i'd
like to implement some of them inside OpenStack or as external driver
(according to Atlas-LB presentation), but right now i don't know how to
write one connected to Atlas-LB or even is Atlas-LB still active? Are there
any load balancing algorithms insied OpenStack? Where can i start if i'd
like to do research about load balancing and exact algorithms in OpenStack?

-- 
*Semy*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp