You were correct, I did not have the DHCP package installed.  However, there are problems with the two semanage commands from cobbler check in 2.2.2-1.

 

1.       /usr/sbin/semanage fcontext -a -t public_content_t "/var/lib/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler"/images/.*

 

There is a double quote (“) after cobbler belongs at the end of the line.  /usr/sbin/semanage: bad option

 

The correct syntax is : /usr/sbin/semanage fcontext -a -t public_content_t "/var/lib/tftpboot(/.*)?" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/images(/.*)?"

 

2.       /usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"

 

The already report incorrect type httpd_sys_content_rw_t should be httpd_sys_rw_content_t.

 

The correct syntax is: /usr/sbin/semanage fcontext -a -t httpd_sys_rw_content_t "/var/lib/cobbler/webui_sessions(/.*)?"

               

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Stuart J. Newman
Engineer 4; Systems

Solar Dynamics Observatory (SDO)

 

Honeywell Technology Solutions Inc

NASA/Goddard Space Flight Center

Building 14, Room E222

Mail Stop 428.2

Greenbelt, MD 20771

 

Office: (301) 286-5145

EMail: Stuart.J.Newman@nasa.gov

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed.  If you are not the intended recipient, please notify the sender at once, and you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited.  Nothing in this email, including any attachment, is intended to be a legally binding signature.

 

From: James Cammarata [mailto:jimi@sngx.net]
Sent: Friday, April 20, 2012 08:07
To: Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
Cc: james.clendenan@gmail.com; cobbler@lists.fedorahosted.org
Subject: Re: FW: [cobbler] Problem with 2.2.1

 

On Fri, Apr 20, 2012 at 6:27 AM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] <stuart.j.newman@nasa.gov> wrote:

The below was the result with SELinux set to enforcing.  The following was the result when SELinux was set to permissive.

 

 

[root@fiat Desktop]# cobbler sync

task started: 2012-04-20_072037_sync

task started (id=Sync, time=Fri Apr 20 07:20:37 2012)

running pre-sync triggers

cleaning trees

removing: /var/www/cobbler/images/rhel62-x86_64

removing: /var/lib/tftpboot/grub/images

removing: /var/lib/tftpboot/images/rhel62-x86_64

removing: /var/lib/tftpboot/images/memtest86+-4.10

removing: /var/lib/tftpboot/s390x/profile_list

copying bootloaders

copying: /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0

copying: /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32

copying: /boot/memtest86+-4.10 -> /var/lib/tftpboot/images/memtest86+-4.10

copying: /var/lib/cobbler/loaders/yaboot -> /var/lib/tftpboot/yaboot

copying: /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi

copying: /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi

copying distros to tftpboot

copying files for distro: rhel62-x86_64

trying hardlink /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/vmlinuz -> /var/lib/tftpboot/images/rhel62-x86_64/vmlinuz

trying hardlink /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/initrd.img -> /var/lib/tftpboot/images/rhel62-x86_64/initrd.img

copying images

generating PXE configuration files

generating PXE menu structure

copying files for distro: rhel62-x86_64

trying hardlink /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/vmlinuz -> /var/www/cobbler/images/rhel62-x86_64/vmlinuz

trying hardlink /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/initrd.img -> /var/www/cobbler/images/rhel62-x86_64/initrd.img

rendering DHCP files

generating /etc/dhcp/dhcpd.conf

rendering TFTPD files

generating /etc/xinetd.d/tftp

cleaning link caches

running post-sync triggers

running python triggers from /var/lib/cobbler/triggers/sync/post/*

running python trigger cobbler.modules.sync_post_restart_services

running: dhcpd -t -q

received on stdout:

received on stderr: /bin/sh: dhcpd: command not found

 

dhcpd -t failed

Exception occured: <class 'cobbler.cexceptions.CX'>

Exception value: 'cobbler trigger failed: cobbler.modules.sync_post_restart_services'

Exception Info:

  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run

    rc = self._run(self)

   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 184, in runner

    return self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)

   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 701, in sync

    return sync.run()

   File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line 155, in run

    utils.run_triggers(self.api, None, "/var/lib/cobbler/triggers/sync/post/*", logger=self.logger)

   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 918, in run_triggers

    raise CX("cobbler trigger failed: %s" % m.__name__)

 

!!! TASK FAILED !!!

 

RHEL 6.2 python 2.6.6

 

For the SELinux issue, "cobbler check" should give you a couple of commands to run to correct that issue. As for the second, it looks like you need to install the dhcpd server package.