Michael,

Sorry about the double post, looked through previous emails but must have overlooked that one :(

Thanks again for the help!

-Ron

Michael DeHaan wrote:
Ronald J. Yacketta wrote:
See the same error when trying to cobbler sync

cobbler sync

global name 'subprocess' is not defined
File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 83, in main
    rc = BootCLI().run(sys.argv)

File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 61, in run
    return self.loader.run(args)

File "/usr/lib/python2.5/site-packages/cobbler/commands.py", line 122, in run
    return fn.run()

File "/usr/lib/python2.5/site-packages/cobbler/modules/cli_misc.py", line 186, in run
    return self.api.sync(verbose=self.options.verbose)

  File "/usr/lib/python2.5/site-packages/cobbler/api.py", line 523, in sync
    return sync.run()

File "/usr/lib/python2.5/site-packages/cobbler/action_sync.py", line 128, in run
    self.dhcp.write_dhcp_file()

File "/usr/lib/python2.5/site-packages/cobbler/modules/manage_isc.py", line 169, in write_dhcp_file
    self.remove_dhcp_lease(self.settings.omapi_port,hostremove)

File "/usr/lib/python2.5/site-packages/cobbler/modules/manage_isc.py", line 114, in remove_dhcp_lease
    fromchild, tochild = popen2([self.settings.omshell_bin])

File "/usr/lib/python2.5/site-packages/cobbler/utils.py", line 1338, in popen2 p = sub_process.Popen(args, stdout=subprocess.PIPE, stdin=subprocess.PIPE, **kwargs)


Ronald J. Yacketta wrote:
# rpm -qa cobbler
cobbler-1.4.2-1.fc9.noarch

Attempted to import a f10 iso which resulted in

cobbler import --name=f10 --path=/mnt/cobbler_tree/f10 --available-as=http://my.internal.url/f10 --breed=redhat --kickstart=/var/lib/cobbler/kickstarts/f10.ks
---------------- (adding distros)
- found content (breed=redhat) at /mnt/cobbler_tree/f10/images/pxeboot
- warning: skipping import, as distro name already exists: f10-i386
---------------- (associating kickstarts)
---------------- (syncing)

global name 'subprocess' is not defined
File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 83, in main
    rc = BootCLI().run(sys.argv)

File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 61, in run
    return self.loader.run(args)

File "/usr/lib/python2.5/site-packages/cobbler/commands.py", line 122, in run
    return fn.run()

File "/usr/lib/python2.5/site-packages/cobbler/modules/cli_misc.py", line 109, in run
    breed=self.options.breed

File "/usr/lib/python2.5/site-packages/cobbler/api.py", line 564, in import_tree
    return importer.run()

File "/usr/lib/python2.5/site-packages/cobbler/action_import.py", line 216, in run
    self.api.sync()

  File "/usr/lib/python2.5/site-packages/cobbler/api.py", line 523, in sync
    return sync.run()

File "/usr/lib/python2.5/site-packages/cobbler/action_sync.py", line 128, in run
    self.dhcp.write_dhcp_file()

File "/usr/lib/python2.5/site-packages/cobbler/modules/manage_isc.py", line 169, in write_dhcp_file
    self.remove_dhcp_lease(self.settings.omapi_port,hostremove)

File "/usr/lib/python2.5/site-packages/cobbler/modules/manage_isc.py", line 114, in remove_dhcp_lease
    fromchild, tochild = popen2([self.settings.omshell_bin])

File "/usr/lib/python2.5/site-packages/cobbler/utils.py", line 1338, in popen2 p = sub_process.Popen(args, stdout=subprocess.PIPE, stdin=subprocess.PIPE, **kwargs)


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

This was answered yesterday -- turn off omapi_enabled (set it to 0) in /etc/cobbler/settings, then restart cobblerd, and this will bypass the code in question that is broken.

This is actually a good thing because OMAPI is buggy anyway, so it's a good reason to turn it off now.

--Michael


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to