I am sorry to all, I looked over warning about using cobbler.api.
----- Original Message -----
From: "Lukas Bednar" <[email protected]>
To: [email protected]
Sent: Monday, March 14, 2011 8:23:48 AM
Subject: Trouble with cobbler.api
Hi all,
I have trouble with cobbler.api (python).
I can't see systems, created using cobbler-api, in cobbler (for example:
cobbler list).
But they are there even I can boot from them. But problem is: It can't download
kickstart from server when
machine is booting from this system. Server reply 'system not found'.
My steps (acording wiki-page):
$> cobbler list
distros:
rhel5.6-x86_64
profiles:
rhel5.6-x86_64
systems:
repos:
epel
images:
$> python
>>> import cobbler.api as ca
>>> h = ca.BootAPI()
>>> system = h.new_system()
>>> system.set_name('00:1a:4a:16:95:52')
True
>>> system.set_profile('rhel5.6-x86_64')
True
>>> h.add_system(system)
True
>>> l = h.find_system(name='*', return_list=True)
>>> l[0].name
'00:1a:4a:16:95:52'
>>>exit()
$> cobbler system list
$>
Now I can boot VM machine with mac=00:1a:4a:16:95:52 from PXE.
But it failed:
http://cobbler-host/cblr/svc/op/ks/system/00:1a:4a:16:95:52
# system not exit
Do you know somebody what I am doing wrong?
Thanks.
Regards Lukas.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler