Discussion:
<ProtocolError for localhost:25151/cobbler_api: 404 Not Found>
John Paget Bourke
2011-10-29 21:34:49 UTC
Permalink
Hi,



When I run



koan --list=profiles -s localhost



I get the following error



root at Config cobbler]# koan --list=profiles -s localhost

- looking for Cobbler at http://localhost:25151/cobbler_api

Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect

xmlrpc_server.ping()

File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__

return self.__send(self.__name, args)

File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request

verbose=self.__verbose

File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request

headers

ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>



If I try to see if the server is running and listening, the server is ok



[root at Config cobbler]# netstat -an | grep 25151

tcp 0 0 127.0.0.1:25151 0.0.0.0:*
LISTEN

tcp 0 0 127.0.0.1:25151 127.0.0.1:57483
TIME_WAIT



But returns nothing .



[root at Config cobbler]# curl http://localhost:25151/cobbler_api

curl: (52) Empty reply from server



I am using the web GUI and it works ok, no problems.



When I try to use koan or curl and check the logs



[root at Config cobbler]# curl http://localhost:25151/cobbler_api

curl: (52) Empty reply from server

[root at Config cobbler]# date

Sun Oct 30 05:30:55 UTC 2011

[root at Config cobbler]# ls -l

total 1792

drwxr-xr-x. 2 root root 4096 Oct 6 02:24 anamon

-rw-r--r--. 1 root root 1806499 Oct 30 04:50 cobbler.log

-rw-r--r-- 1 root root 73 Oct 29 00:24 install.log

drwxr-xr-x. 2 root root 4096 Oct 6 02:24 kicklog

drwxr-xr-x. 2 root root 4096 Oct 6 02:24 syslog

drwxr-xr-x. 2 root root 4096 Oct 30 04:40 tasks

[root at Config cobbler]# cd /etc/httpd/logs/

[root at Config logs]# ls -l

total 3172

-rw-r--r-- 1 root root 10904 Oct 30 04:45 access_log

-rw-r--r--. 1 root root 789779 Oct 30 02:43 access_log-20111030

-rw-r--r-- 1 root root 32638 Oct 30 05:20 error_log

-rw-r--r--. 1 root root 2403267 Oct 30 03:06 error_log-20111030



The logs do not seem to be affected.



The versions I am running are



[root at Config cobbler]# rpm -qa | grep cobbler

cobbler-2.2.1-1.el6.noarch

cobbler-web-2.2.1-1.el6.noarch

[root at Config cobbler]# rpm -qa | grep koan

koan-2.2.1-1.el6.noarch



In the modules.conf I have



[authentication]

#module = authn_denyall

module = authn_configfile



[authorization]

module = authz_allowall



So I am a bit lost. Any thoughts ?



Thanks



John



-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://fedorahosted.org/pipermail/cobbler/attachments/20111029/8428e693/attachment.html
James Cammarata
2011-10-29 21:46:11 UTC
Permalink
On Sat, Oct 29, 2011 at 4:34 PM, John Paget Bourke
Post by John Paget Bourke
root at Config cobbler]# koan --list=profiles -s localhost
- looking for Cobbler at http://localhost:25151/cobbler_api
  File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect
    xmlrpc_server.ping()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
    headers
ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>
There is a known issue, which will be fixed in the next release. Until
that time, use --port=80 to specify the port for koan to connect to.
John Paget Bourke
2011-10-29 22:01:59 UTC
Permalink
Hi,

Got it, thanks, working now .....

john

-----Original Message-----
From: cobbler-bounces at lists.fedorahosted.org [mailto:cobbler-bounces at lists.fedorahosted.org] On Behalf Of James Cammarata
Sent: 29 October 2011 22:46
To: cobbler mailing list
Subject: Re: <ProtocolError for localhost:25151/cobbler_api: 404 Not Found>
Post by John Paget Bourke
root at Config cobbler]# koan --list=profiles -s localhost
- looking for Cobbler at http://localhost:25151/cobbler_api
File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect
xmlrpc_server.ping()
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>
There is a known issue, which will be fixed in the next release. Until that time, use --port=80 to specify the port for koan to connect to.
John Paget Bourke
2011-10-29 23:45:03 UTC
Permalink
Hi,

One more issue

[root at Config koan]# koan --server=localhost --port=80 --system=asystem --virt --virt-type=vmware
- looking for Cobbler at http://localhost:80/cobbler_api
- reading URL: http://192.168.1.143/cblr/svc/op/ks/system/asystem
install_tree: http://192.168.1.143/cblr/links/RHEL6-x86_64
<type 'exceptions.TypeError'>
start_install() got an unexpected keyword argument 'qemu_net_type'
File "/usr/lib/python2.6/site-packages/koan/app.py", line 240, in main
k.run()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 380, in run
self.virt()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 734, in virt
return self.net_install(after_download)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 625, in net_install
after_download(self, profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 732, in after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285, in virt_net_install
qemu_net_type = self.qemu_net_type

Any suggestions ?

Thanks

john

-----Original Message-----
From: cobbler-bounces at lists.fedorahosted.org [mailto:cobbler-bounces at lists.fedorahosted.org] On Behalf Of James Cammarata
Sent: 29 October 2011 22:46
To: cobbler mailing list
Subject: Re: <ProtocolError for localhost:25151/cobbler_api: 404 Not Found>
Post by John Paget Bourke
root at Config cobbler]# koan --list=profiles -s localhost
- looking for Cobbler at http://localhost:25151/cobbler_api
File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect
xmlrpc_server.ping()
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>
There is a known issue, which will be fixed in the next release. Until that time, use --port=80 to specify the port for koan to connect to.
James Cammarata
2011-10-30 00:07:39 UTC
Permalink
On Sat, Oct 29, 2011 at 6:45 PM, John Paget Bourke
Post by John Paget Bourke
Hi,
One more issue
[root at Config koan]# koan --server=localhost --port=80 --system=asystem --virt --virt-type=vmware
- looking for Cobbler at http://localhost:80/cobbler_api
- reading URL: http://192.168.1.143/cblr/svc/op/ks/system/asystem
install_tree: http://192.168.1.143/cblr/links/RHEL6-x86_64
<type 'exceptions.TypeError'>
start_install() got an unexpected keyword argument 'qemu_net_type'
 File "/usr/lib/python2.6/site-packages/koan/app.py", line 240, in main
   k.run()
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 380, in run
   self.virt()
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 734, in virt
   return self.net_install(after_download)
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 625, in net_install
   after_download(self, profile_data)
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 732, in after_download
   self.virt_net_install(profile_data)
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285, in virt_net_install
   qemu_net_type    =  self.qemu_net_type
Any suggestions ?
Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.

To fix this temporarily on your system, apply the following patch:

diff --git a/koan/vmwcreate.py b/koan/vmwcreate.py
index b7ef448..e869aca 100755
--- a/koan/vmwcreate.py
+++ b/koan/vmwcreate.py
@@ -129,7 +129,8 @@ def start_install(name=None,
bridge=None,
virt_type=None,
virt_auto_boot=False,
- qemu_driver_type=None):
+ qemu_driver_type=None,
+ qemu_net_type=None):

if profile_data.has_key("file"):
raise koan.InfoException("vmware does not work with --image yet")

I'll get a fix in for this in the next release as well.
John Paget Bourke
2011-10-30 10:32:29 UTC
Permalink
James,

This worked perfect. Many thanks

John


-----Original Message-----
From: cobbler-bounces at lists.fedorahosted.org [mailto:cobbler-bounces at lists.fedorahosted.org] On Behalf Of James Cammarata
Sent: 30 October 2011 01:08
To: cobbler mailing list
Subject: Re: <ProtocolError for localhost:25151/cobbler_api: 404 Not Found>

On Sat, Oct 29, 2011 at 6:45 PM, John Paget Bourke
Post by John Paget Bourke
Hi,
One more issue
[root at Config koan]# koan --server=localhost --port=80 --system=asystem --virt --virt-type=vmware
- looking for Cobbler at http://localhost:80/cobbler_api
- reading URL: http://192.168.1.143/cblr/svc/op/ks/system/asystem
install_tree: http://192.168.1.143/cblr/links/RHEL6-x86_64
<type 'exceptions.TypeError'>
start_install() got an unexpected keyword argument 'qemu_net_type'
File "/usr/lib/python2.6/site-packages/koan/app.py", line 240, in main
k.run()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 380, in run
self.virt()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 734, in virt
return self.net_install(after_download)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 625, in net_install
after_download(self, profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 732, in after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285, in virt_net_install
qemu_net_type = self.qemu_net_type
Any suggestions ?
Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.

To fix this temporarily on your system, apply the following patch:

diff --git a/koan/vmwcreate.py b/koan/vmwcreate.py
index b7ef448..e869aca 100755
--- a/koan/vmwcreate.py
+++ b/koan/vmwcreate.py
@@ -129,7 +129,8 @@ def start_install(name=None,
bridge=None,
virt_type=None,
virt_auto_boot=False,
- qemu_driver_type=None):
+ qemu_driver_type=None,
+ qemu_net_type=None):

if profile_data.has_key("file"):
raise koan.InfoException("vmware does not work with --image yet")

I'll get a fix in for this in the next release as well.
André Gemünd
2011-11-03 17:21:46 UTC
Permalink
Hi,

----- UrsprÃŒngliche Mail -----
Post by James Cammarata
Post by John Paget Bourke
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285,
  in virt_net_install
   qemu_net_type    =  self.qemu_net_type
Any suggestions ?
Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.
The same seems to be true for xen.

Greetings
André

--
André GemÌnd
Fraunhofer-Institute for Algorithms and Scientific Computing
andre.gemuend at scai.fraunhofer.de
Tel: +49 2241 14-2193
/C=DE/O=Fraunhofer/OU=SCAI/OU=People/CN=Andre Gemuend
James Cammarata
2011-11-04 00:47:57 UTC
Permalink
Post by André Gemünd
Hi,
----- UrsprÃŒngliche Mail -----
Post by James Cammarata
Post by John Paget Bourke
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285,
  in virt_net_install
   qemu_net_type    =  self.qemu_net_type
Any suggestions ?
Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.
The same seems to be true for xen.
Greetings
André
Fixed there as well, and pushed to both master/release22. Thanks for
catching this!
Graeme Frear
2014-02-13 15:14:21 UTC
Permalink
Post by James Cammarata
Post by André Gemünd
Hi,
----- UrsprÃŒngliche Mail -----
Post by James Cammarata
Post by John Paget Bourke
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 1285,
  in virt_net_install
   qemu_net_type    =  self.qemu_net_type
Any suggestions ?
Looks like you found a bug. At some point, it koan was expanded to
support specifying the guest network driver, however the code that
handles vmware instances was not updated.
The same seems to be true for xen.
Greetings
André
Fixed there as well, and pushed to both master/release22. Thanks for
catching this!
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Problem:

libvirtd (pid 5257) is running...
<type 'exceptions.TypeError'>
start_install() got an unexpected keyword argument 'virt_pxe_boot'

Solution
koan was 2.4 drop it to 2.0

koan-2.4.0-1.el6.noarch
yum downgrade koan.noarch
x 2
koan-2.0.11-2.el6.noarch and back in biz.

Loading...