cobbler_api not working
by Hrishikesh
Hi All,
cobbler check, cobbler sync, cobbler_web, cobblerd service All is OK.
But I am not able to access cobbler_api. Can anyone please help ?
Following is the log of wget.
[root@cobbler2 conf]# wget http://localhost/cobbler_api
--2015-04-24 16:47:05-- http://localhost/cobbler_api
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 501 Unsupported method ('GET')
2015-04-24 16:47:05 ERROR 501: Unsupported method ('GET').
[root@cobbler2 conf]#
Thanks,
Hrishikesh
9 years
Somewhat off topic. Re: Kickstarts.
by Michael Tiernan
In trying to do some new kickstarts, I've found the problem of not being
able to specify gpt labels on drives. But I've run into a strange thing
and I'm looking for pointers to read more about it.
I have two 2tb drives. I build an MD raid across two of their partitions
(i.e. sda1, sdb2) at kickstart.
The quirky thing is that the first drive is, as we know, given an MSDOS
label but the quirky part is that the second drive *does* get the GPT
label. Is there anyway to control this odd behavior so that both drives
get the exact same label?
--
<< MCT >> Michael C Tiernan xmpp:mtiernan@mit.edu +1 (617) 324-9173
MIT - Laboratory for Nuclear Science - http://www.lns.mit.edu
High Perf Research Computing Facility at The Bates Linear Accelerator
Please avoid sending me MS-Word or MS-PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
9 years
Koan Issue on RHEL 7.1
by Hrishikesh
Hi All,
I am testing Automated Build using Koan and Cobbler on RHEL 7.1. I am
facing a problem while building a virtual instance on ESXi using Koan.
Following are some details about the setup I am using. All these are on
the same RHEL 7.1 server.
Cobbler Version : 2.6.7 (Distro/Profile/System created through Cobbler
Web GUI.)
Koan Version : 2.6.7 (I use koan command with Cobbler system name.)
Python Version : 2.7.5
I am facing an issue executing following command. Please see the logs below.
*[root@cobbler2 ~]# koan --server=localhost --port=80 --system=minimal2
--virt --virt-type=vmware*
- looking for Cobbler at http://localhost:80/cobbler_api
- reading URL: http://localhost/cblr/svc/op/ks/system/minimal2
install_tree: http://192.168.6.89/cblr/links/rhel7.1-x86_64
- ['virt-install', '--version']
1.1.0
- ['virt-install', '--os-variant', 'list']
WARNING KVM acceleration not available, using 'qemu'
ERROR
--name is required
--memory amount in MiB is required
--disk storage must be specified (override with --nodisks)
An install method must be specified
(--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|...)
<type 'exceptions.TypeError'>
*start_install() got an unexpected keyword argument 'virt_pxe_boot'*
File "/usr/lib/python2.7/site-packages/koan/app.py", line 274, in main
k.run()
File "/usr/lib/python2.7/site-packages/koan/app.py", line 424, in run
self.virt()
File "/usr/lib/python2.7/site-packages/koan/app.py", line 843, in virt
return self.net_install(after_download)
File "/usr/lib/python2.7/site-packages/koan/app.py", line 670, in
net_install
after_download(self, profile_data)
File "/usr/lib/python2.7/site-packages/koan/app.py", line 841, in
after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.7/site-packages/koan/app.py", line 1513, in
virt_net_install
osimport = self.virtinstall_osimport,
[root@cobbler2 ~]#
This works perfectly fine with Koan Version 2.2.2 installed on another
machine. See the logs below.
*[root@CobblerServerG1 ~]# koan --server=192.168.6.89 --port=80
--system=minimal2 --virt --virt-type=vmware*
- looking for Cobbler at http://192.168.6.89:80/cobbler_api
- reading URL: http://192.168.6.89/cblr/svc/op/ks/system/minimal2
install_tree: http://192.168.6.89/cblr/links/rhel7.1-x86_64
libvirtd (pid 3898) is running...
DEBUG: interface=ens192
DEBGUG: management=True
DEBUG: interfacetype=
DEBUG: management=1
DEBUG: name=minimal2
DEBUG: ram=2048
- saving virt disk image as /vmfs/volumes/datastore1/minimal2/minimal2.vmdk
- saving vmx file as /var/lib/tftpboot/koan_vmware//minimal2.vmx
None
[root@CobblerServerG1 ~]#
I checked the difference in /usr/lib/python2.x/site-packages/koan/app.py
file of 2 different koan versions and it seems that there is a new
parameter added in the app.py of koan 2.6.7. See the screenshot below.
Can someone please tell me how to fix this ? I would highly appreciate it.
Koan 2.6.7 params
DISPLAY_PARAMS = [
"name",
"distro","profile",
"kickstart","ks_meta",
"install_tree","kernel","initrd",
"netboot_enabled",
"kernel_options",
"repos",
"virt_ram",
"virt_disk",
"virt_disk_driver",
"virt_type",
"virt_path",
"virt_auto_boot",
"virt_pxe_boot",
]
Koan 2.2.2 params
DISPLAY_PARAMS = [
"name",
"distro","profile",
"kickstart","ks_meta",
"install_tree","kernel","initrd",
"netboot_enabled",
"kernel_options",
"repos",
"virt_ram",
"virt_disk",
"virt_disk_driver",
"virt_type",
"virt_path",
"virt_auto_boot",
]
Thanks,
Hrishikesh
9 years
named host records for IPMI addresses
by Jeremy Mordkoff
I am migrating to using cobbler to manage DNS
In my existing system, I have 2 DNS A records for each machine -- one for the main interface and one for the IPMI interface. Can I use cobbler to generate both?
At the moment I am letting cobbler generate the records for the main interface and I am manually adding the IPMI records.
JLM
---
Jeremy Mordkoff
RIFT.io
77 S Bedford St, Burlington, MA 01803
9 years
Building a Debian distro
by Vassilis Aretakis
Hi,
I have an issue with Debian. I used the "cobbler import" command, and the
DVD1 was imported successfully.
Then I setup the system on my cobbler web interface.
I used the sample seed to test the import, this seed works with ubuntu.
I receive a message that my installation cannot find the CD-ROM.
Have anybody had issues in the past?
Thank you,
Vassilis
9 years
Import "Dell Version" of Ubuntu
by Rubén Pérez
Dear list,
We have problems using our new Dell Optiplex XE2 models. When I install
the OS (Ubuntu 12.04) using our cobbler server, the Xvideo support is
disabled and we required that for our applications.
I noticed that the Xvideo support *is* enabled if I simply used the
pre-installed Ubuntu 12.04 in the Optiplex units. However, using this
"factory" Ubuntu is not an option --I need to be able to reinstall the
machine using Cobbler at any given time.
After much investigation, I decided to install an Ubuntu 12.04 version
provided by Dell
<http://linux.dell.com/files/ubuntu/precise/12.04-OSP1/>, as indicated
here
<http://www.dell.com/support/home/us/en/19/drivers/DriversDetails?productC...>
(see "Installation Instructions" below). However, I'm unable to import
this image to cobbler, no matter how I tried. It seems like this is not
a full Ubuntu image, but I was wondering if I could "add the missing
pieces" using the working Ubuntu 12.04 image already in our cobbler
server without losing the customizations made by Dell. Does this even
make sense? Is there any way of importing such an image in Cobbler?
Thanks in advance for your help.
Best regards
--
Rubén Pérez Vázquez
*Universität zu Köln*
/Regionales Rechenzentrum (RRZK)/
Weyertal 121, Raum 4.07
D-50931 Köln
✆: +49-221-470-89603
9 years
exporting cobbler data
by Jeremy Mordkoff
I did google this. One post referenced a wiki article, but it was a dead link.
https://hosted.fedoraproject.org/projects/cobbler/wiki/MovingYourInstallT...
The second recommended using cobbler replicate, but that is failing with
running: rsync -avzH cobbler::cobbler-triggers /var/lib/cobbler/triggers
received on stdout:
received on stderr: rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(251) [Receiver=3.1.0]
rsync is running on the master but cobbler-triggers is not configured as a location
What is the best method to move my cobbler installation to a new server?
JLM
---
Jeremy Mordkoff
RIFT.io
77 S Bedford St, Burlington, MA 01803
9 years
linux16/initrd16 and PXE
by Jeremy Mordkoff
I know this is not strictly a cobbler question.....
I use cobbler to install FC21. I end up with a grub file with init16 and linux16 in it. The system will boot if the BIOS is set to boot from the disk, but it hangs if I let it PXE boot and then chainload (is that the right word) to the local disk.
Also, it will work with PXE if I change initrd16 to initrd and linux16 to linux
Any suggestions? Right now I am simply munging the grub config file in my kickstart script.
JLM
---
Jeremy Mordkoff
RIFT.io
77 S Bedford St, Burlington, MA 01803
9 years
Preventing cache/* from being deleted during rsync
by Joshua J. Kugler
So, I'm using rsync:// repos on my host. They seem to work well, but every
night during the repo updates, there are hundreds of lines like "deleting
cache/yum-
updatesd-0.9-6.el5_10.noarch.rpm-6583b1b721614c475e10bf1f0b77d90bb2907649-56140-1407242168"
I assume something local (createrepo?) makes all those cache/* files, but do
they really need to be deleted every night? Is there a way to turn off the
deletion of these files? Would **/cache/** to the rsync.exlude file keep this
directory from being touched?
j
--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
joshua(a)azariah.com - Jabber: pedahzur(a)gmail.com
PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
9 years, 1 month
Re: [cobbler] Ilo baremetal
by Alan Evangelista
On 03/31/2015 06:26 PM, Sethuraman, Murali wrote:
> Hi Alan,
> I tried doing an "dhclient -s <ip addr of the dhcp server> <interface name>" from a RHEL physical linux box [that exists in the same VLAN as my cobbler server with dhcp enabled on it], and I could see the /var/log/messages being updated for DHCP discover, DHCP OFFER, DHCP Request, DHCP ACK etc. This eliminates any possibility of network issues [as far as I can see].
>
> However, when I boot up this same physical box [pxe already enabled in BIOS], I do not see any requests reaching out to cobbler server. Please advise, if anything amiss is here and how it can be resolved.
>
The physical box has only one network interface? If there are multiple
nw interfaces, make sure you are testing netboot with the same one you
tested with dhclient.
If you execute dhclient without specifying -s parameter (server IP
address), it also works?
Doing that will broadcast the DHCP request and that is what will be done
during netboot.
Regards,
Alan Evangelista
9 years, 1 month