[katello-devel] Virt-who-vsphere support in Katello
Ivan Nečas
inecas at redhat.com
Wed Jan 4 16:22:19 UTC 2012
I've just merged changes leading to support of vsphere in Katello.
Besides proxying calls from virt-who to candlepin, we also make a record
in our db. It's saved into Hypervisor model, that inherits from System.
To test this feature out, you don't have to search for free vsphere
server. There is scripts/system-test/vsphere-virt-who-simulator.py
script, that helps you to simulate the calls. It works like this:
1. register a machine
2. call
scripts/system-test/vsphere-virt-who-simulator.py --org
ACME_Corporation --env Dev \
host1:guest-virt-uuid-1,guest-virt-uuid-2 host2:guest-virt-uuid-3
This will simulate having host1 and host2 with 3 guests.
After that it should work similarly to standard virt-who scenario. You
subscribe a host to a product and guests see the virtual products after
that.
The only problem right now is a bug on CP side, that prevents using this
feature after the manifest is imported. The fix is already in codebase,
it only ways to be released. I will sent another mail after this happens.
*UI Team:*
Hypervisor is a special type of consumer, that itself is not managed by
Katello (it's vsphere machine). Therefore there are actions that are not
allowed to preform on it (in fact all Pulp related actions):
* upload package profile
* list packages
* install package
* update package
* remove package
It you look into app/model/hypervisor.rb, there is UNSUPPORTED_ACTIONS
constant with methods that throw UnsupportedActionException. This way we
tell CLI user that it's not good idea to do that.
For UI there should be some customization according to this rescrictions
as well. For now, hypervisors dont show up in UI at all. I spent a
little time on it, but I haven't figured out why besides fixing problem
with indexing child models. Then I decided it should be left for experts :)
-- Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/katello-devel/attachments/20120104/b31d7de2/attachment.htm>
More information about the katello-devel
mailing list