Eldred, Doug | 25 May 19:51
Picon
Favicon

Cobbler-side installs to KVM, VMware?

I'm looking for an example, specifically showing the "power" settings in Cobbler, for how to initiate a
Cobbler-side install to a KVM or VMware virtual machine.  Most of what I've found so far involves using
koan, not using the Cobbler side to kick things off.

To my surprise, even though there's a "fence_vmware" command, Cobbler is unaware of it.  I've tried
ipmitool based on one example, but haven't figured out the other power values to set in Cobbler.

Thanks in advance for any clues or documentation.

Regards,
Doug
----
MC Linux Infrastructure, 970-898-4860, Fort Collins 3UR8 (MS 57)
"We should not let the much that is to do obscure the much which has been done." -- Calvin Coolidge

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
David Lee | 23 May 18:59
Favicon

cobbler replicate: "unknown module"

(Using cobbler 2.0.11 on RHEL 5.x)

We have a master cobbler server, and two slaves which run a daily cron:
    cobbler replicate --master=cobbler_master.our.org \
       --profiles="*" --systems="*"

In the master we set up a local repo of local RPMs, primarily designed 
for "yum" to access, but also referenced by cobbler.  This was set up:
    cobbler repo add --name=el5-x86_64-local \
       --mirror=http://... --mirror-locally=N --arch=x86_64

But the daily "cobbler replicate" gives an error message:

    received on stderr:
    Rsyncing repos
    running: rsync -avzH cobbler_master.our.org::repo-el5-x86_64-local 
/var/www/cobbler/repo_mirror/el5-x86_64-local
    received on stdout:
    received on stderr: @ERROR: Unknown module 'repo-el5-x86_64-local'
    rsync error: error starting client-server protocol (code 5) at 
main.c(1296) [receiver=2.6.8]

That "unknown module" error message is worrying.

Is this because of the "N" for "mirror-locally"?

Things seem to work OK, and last time we forced an installation from a 
slave server, it seemed to see this repo.

But I'd like to know whether that error message is genuine and reflects 
(Continue reading)

Dan White | 23 May 15:25
Picon

Web interface suddenly stopped working

This is on a Cobbler 2.0.11 server that has been running great for almost a year on a RHEL 5 x86_64 machine with
an out-of-the-Red-Hat-repos vanilla apache/http service running

http://cobblerServer.mine.tld/cobbler_web/ spits out:

Mod_python error: "PythonAuthenHandler cobbler_web.views"

Traceback (most recent call last):

  File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
    log=debug)

  File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/share/cobbler/web/cobbler_web/views.py", line 16, in ?
    import cobbler.item_distro  as item_distro

  File "/usr/lib/python2.4/site-packages/cobbler/item_distro.py", line 25, in ?
    import utils

  File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 116, in ?
    main_logger = clogger.Logger()

  File "/usr/lib/python2.4/site-packages/cobbler/clogger.py", line 43, in __init__
    self.logfile = open(logfile, "a")

IOError: [Errno 13] Permission denied: '/var/log/cobbler/cobbler.log'

And in /var/log/httpd/ssl_error_log I find this:
(Continue reading)

Alan McKay | 22 May 21:26
Picon

newer RPM for RHEL5?

Hey folks,

I have a RHEL5 server running cobbler from the repos :
[root <at> solexa-db ~]# rpm -qa | grep -i cobbler
cobbler-web-2.0.11-2.el5
cobbler-2.0.11-2.el5

I just tried to install an Ubuntu Live CD and it told me it did not
recognize the ubuntu 'breed'

All I really want it PXE boot of the live CD - nothing fancy.   No automation.

Is there an RPM available somewhere that I can upgrade to?

I know I could build from source but I try to stick to RPMs if I can.

thanks,
-Alan

--

-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
vivek singh | 22 May 15:56
Picon

Reply:Here is it

sir,,,
    i am runing rhel6 x86_64 on my vmware workstation and this is my first time to practice with cobbler.so if you can take a remote acces of my system dan it will good for me so i can see how can we setup the cobbler.Sir , actually i have download this epel rpm but i dont know how to use it ..Here is the list.....

cobbler-2.2.2-1.el6.noarch.rpm
createrepo-0.9.8-4.el6.noarch.rpm
genisoimage-1.1.9-11.el6.x86_64.rpm
httpd-2.2.22-1.el6.x86_64.rpm
mod_wsgi-3.2-1.el6.x86_64.rpm
python-2.6.6-29.el6.x86_64(2).rpm
python-2.6.6-29.el6.x86_64.rpm
python-cheetah-2.4.1-1.el6.x86_64.rpm
python-netaddr-0.7.5-1.el6.noarch.rpm
python-simplejson-2.0.9-3.1.el6.x86_64.rpm
python-urlgrabber-3.9.1-8.el6.noarch.rpm
PyYAML-3.09-5.el6.x86_64.rpm
rsync-3.0.6-5.el6_0.1.x86_64.rpm
tftp-server-0.49-7.el6.x86_64(2).rpm
tftp-server-0.49-7.el6.x86_64.rpm
yum-utils-1.1.30-10.el6.noarch.rpm

so the thing is that when i have installed 1st rpm frm the list ,,it is asking to install
rest of the rpms.could u please tell how can i solve it....

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
vivek singh | 22 May 15:29
Picon

REGARDING:

sir i am not able to fix cobber dependencies on rhel 6 64 bit machine...Please solve this issue ...how can i actuall fix it

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Bob Cochran | 21 May 23:01
Picon

Using Cobbler To Install CentOS 6.2 From Fedora 14 Server

Hi,

I would like to do a network installation of CentOS 6.2 from the Cobbler 
version that is installed on my Fedora 14 (x86_64) laptop. Due to 
various events, I never upgraded my laptop to a more recent version of 
Fedora. Right now, I want to get CentOS installed on a server box so 
that I can run virtualization going. The server doesn't have an optical 
drive, I prefer network installations if possible. Is it possible to 
successfully install CentOS 6.2 from Fedora 14?

Thanks

Bob Cochran
Greenbelt, Maryland, USA
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Manuel.Laesser | 21 May 13:16
Picon

cobbler reposync and mirror locally=false not working

Hello everyone
I setup a repo and have choosen mirror locally false. If I execute cobbler reposync I got an error message "No such file or directory" because directory .origin is missing.
 
[root <at> cobbler ~]# cobbler repo report --name=rhel62-x86_64-updates
Name                           : rhel62-x86_64-updates
Arch                           : x86_64
Breed                          : yum
Comment                        : RHEL 6 Update 2
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://cobbler/rhel/rhel6server-x86_64/RPMS.updates_62
Mirror locally                 : False
Owners                         : ['admin']
Priority                       : 99
RPM List                       : []
Yum Options                    : {}
 
[root <at> cobbler ~]# cobbler reposync
task started: 2012-05-21_130356_reposync
task started (id=Reposync, time=Mon May 21 13:03:56 2012)
hello, reposync
run, reposync, run!
running: /usr/bin/wget -q http://cobbler/rhel/rhel6server-x86_64/RPMS.updates_62/repodata/repomd.xml -O /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/.origin/repomd.xml
received on stdout:
received on stderr: /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/.origin/repomd.xml: No such file or directory
 
creating: /var/www/cobbler/repo_mirror/rhel62-x86_64-updates/config.repo
running: chown -R root:apache /var/www/cobbler/repo_mirror/rhel62-x86_64-updates
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/rhel62-x86_64-updates
received on stdout:
received on stderr:
rhel63-x86_64-updates is set to not be updated
*** TASK COMPLETE ***
 
If I create .origin by hand some repo-files like repomd.xml will be created but I can't use the Repo during kickstart because it doesn't seem to be available. 
 
[root <at> cobbler rhel62-x86_64-updates]# ls -laR /var/www/cobbler/repo_mirror/rhel62-x86_64-updates
/var/www/cobbler/repo_mirror/rhel62-x86_64-updates:
total 24
drwxr-xr-x 4 root apache 4096 May 21 13:10 .
drwxr-xr-x 4 root root   4096 May 11 11:21 ..
-rwxr-xr-x 1 root apache  146 May 21 13:10 config.repo
drwxr-xr-x 2 root apache 4096 May 21 13:10 .origin
drwxr-xr-x 2 root apache 4096 May 21 13:10 repodata
 
/var/www/cobbler/repo_mirror/rhel62-x86_64-updates/.origin:
total 12
drwxr-xr-x 2 root apache 4096 May 21 13:10 .
drwxr-xr-x 4 root apache 4096 May 21 13:10 ..
-rwxr-xr-x 1 root apache  951 May 11 11:26 repomd.xml
 
/var/www/cobbler/repo_mirror/rhel62-x86_64-updates/repodata:
total 8
drwxr-xr-x 2 root apache 4096 May 21 13:10 .
drwxr-xr-x 4 root apache 4096 May 21 13:10 ..
I have installed cobbler-2.2.2-1. Have you got any idea what I did wrong?
 
Thank you for your help.
 
Manuel

 
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Mezei Zoltan | 18 May 15:04
Picon
Gravatar

cobbler and selinux

Hi,

I'm trying to get cobbler working with selinux.

Environment:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
# rpm -qv cobbler
cobbler-2.2.2-1.el6.noarch
# rpm -qv selinux-policy-targeted
selinux-policy-targeted-3.7.19-126.el6_2.10.noarch
# rpm -qv policycoreutils-python
policycoreutils-python-2.0.83-19.21.el6_2.x86_64

The cobbler rpm came from the stable branch of EPEL, all other
packages are the latest official RedHat ones.

First cobbler check...

I ran cobbler check in permissive mode and ended up with the following module:

module local 1.0;

require {
        type security_t;
        type var_lock_t;
        type semanage_store_t;
        type cobblerd_t;
        type default_context_t;
        type proc_net_t;
        type file_context_t;
        type semanage_read_lock_t;
        class capability { net_admin net_raw };
        class netlink_audit_socket create;
        class dir { read write search };
        class file { getattr read lock open };
        class rawip_socket { getopt create };
}

allow cobblerd_t security_t:dir read;
allow cobblerd_t default_context_t:dir search;
allow cobblerd_t file_context_t:dir search;
allow cobblerd_t proc_net_t:file { read getattr open };
allow cobblerd_t self:capability { net_admin net_raw };
allow cobblerd_t self:netlink_audit_socket create;
allow cobblerd_t self:rawip_socket { getopt create };
allow cobblerd_t semanage_read_lock_t:file { read lock open };

allow cobblerd_t semanage_store_t:dir { read write search };
allow cobblerd_t semanage_store_t:file { read getattr open };
allow cobblerd_t var_lock_t:dir search;
allow cobblerd_t var_lock_t:file getattr;

Installing this module makes the various AVCs during cobbler check
disappear. However, cobbler.log still contains some errors:

Fri May 18 14:44:12 2012 - DEBUG | REMOTE CLI Authorized; user(?)
Fri May 18 14:44:12 2012 - INFO | check
Fri May 18 14:44:12 2012 - INFO | running: /usr/sbin/getsebool -a
Fri May 18 14:44:12 2012 - INFO | received on stdout:
Fri May 18 14:44:12 2012 - DEBUG | received on stderr:
Fri May 18 14:44:12 2012 - INFO | running: /usr/sbin/semanage fcontext
-l | grep public_content_t
Fri May 18 14:44:12 2012 - INFO | received on stdout:
Fri May 18 14:44:12 2012 - DEBUG | received on stderr: /bin/sh:
/usr/sbin/semanage: Permission denied

Fri May 18 14:44:12 2012 - INFO | running: /usr/sbin/semanage fcontext
-l | grep httpd_sys_content_rw_t
Fri May 18 14:44:12 2012 - INFO | received on stdout:
Fri May 18 14:44:12 2012 - DEBUG | received on stderr: /bin/sh:
/usr/sbin/semanage: Permission denied

Fri May 18 14:44:12 2012 - INFO | running: httpd -v
Fri May 18 14:44:12 2012 - INFO | received on stdout:
Fri May 18 14:44:12 2012 - DEBUG | received on stderr: /bin/sh: httpd:
command not found

Fri May 18 14:44:12 2012 - DEBUG | get_items; ['repo']
Fri May 18 14:44:12 2012 - DEBUG | done with get_items; ['repo']
Fri May 18 14:44:12 2012 - DEBUG | get_items; ['profile']
Fri May 18 14:44:12 2012 - DEBUG | done with get_items; ['profile']

It seems that cobbler is not able to execute the various binary tools
that it want to execute when selinux is set to enforcing. In
permissive mode, everything works flawlessly.

Admitting that I'm a noob with both cobbler and selinux, what could I
do to make this setup work?
--

-- 
Zizi

"...nálatok a cégnél múltból nagyon sok van..."
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Picon
Favicon

cobbler and SELinux

The following four commands fail if SELinux is set to enforcing:

 

cobbler check

cobbler sync

cobbler import

cobbler reposync

 

 

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

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 <at> 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.

 

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
James Clendenan | 17 May 02:46
Picon

tftpboot files?

Hey guys,

Cobbler version: 2.2.2

I'm trying to copy the clonezilla filesystem.squashfs into the images path for cobbler, and it's coming up with some strange errors.

I noticed that the copy files seems to coming up with this error:

Wed May 16 17:09:00 2012 - ERROR | failed to copy file /software/repos/linux/os/clonezilla/1.2.12-37/live/filesystem.squashfs to /var/lib/tftpboot/images/clonezilla1-2-12/filesystem.squashfs for clonezilla1-2-12

with this distro definition:

Name                           : clonezilla1-2-12
Architecture                   : x86_64
TFTP Boot Files                : {'/var/lib/tftpboot/images/clonezilla1-2-12/filesystem.squashfs': '/software/repos/linux/os/clonezilla/1.2.12-37/live/filesystem.squashfs'}
Breed                          : debian
Comment                        :
Fetchable Files                : {}
Initrd                         : /software/repos/linux/os/clonezilla/1.2.12-37/live/initrd.img
Kernel                         : /software/repos/linux/os/clonezilla/1.2.12-37/live/vmlinuz
Kernel Options                 : {'nomodeset': '~', 'edd': 'on', 'ocs_live_run': 'ocs-live-general', 'ocs_live_keymap': '', 'boot': 'live', 'vga': '788', 'noswap': '~', 'noprom}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {}
Management Classes             : []
OS Version                     : generic26
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

Does anyone have any initial thoughts or suggestions on how I can get this to work? The wiki page for clonezilla is well out of date now, so I'll likely also be updating it too.

Thanks,

JAmes

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Gmane