Monday, November 30, 2015

Set up MariaDB on CentOS 7, first run

Install packages:
yum -y install mariadb-server mariadb
Start MariaDB and enable the service at system startup:
systemctl start mariadb
systemctl enable mariadb
Check if mariaDB is running:
systemctl status mariadb
Set root password:
/usr/bin/mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
Test if you can sign in:
mysql -u root -p
Assign that you can log in into database from 192.168.1.101:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.101' IDENTIFIED BY 'yourdbpassword' WITH GRANT OPTION;
flush privileges;
exit
Add firewall rules:
firewall-cmd --reload
firewall-cmd --list-all
firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" port port="3306" protocol="tcp" accept' --permanent
firewall-cmd --list-all

Friday, November 27, 2015

Set up Cobbler after Spacewalk setup, CentOS 6.7

Note down your second adapter MAC address:

I will use 080027964AE6

Set eth adapter setting to satisfy cobbler DHCP default settings:
vi /etc/sysconfig/network-scripts/ifcfg-eth1
Some values to modify:
BOOTPROTO=none
ONBOOT=yes
Some values to add:
IPADDR=192.168.1.5
NETMASK=255.255.255.0
Check the situation at ipconfig
ifconfig
Bring ethernet 1 up:
ifconfig eth1 up
Check the situation at ipconfig. There are two interfaces, but only eth0 has real IP address
ifconfig
Restart all network interfaces:
/etc/init.d/network restart
Check the situation at ipconfig:
ifconfig
eth1 has real address IP too :)

The second adapter has static IP addres 192.168.1.5 which will work out out of the box with default cobbler settings.

To work with cobbler you also need install DHCP and DNS server:
yum install dhcp bind syslinux -y
If you do not work then take a look in:
vi /etc/udev/rules.d/70-persistent-net.rules
Make sure that every mac address match correct eth0 or eth1 interface.

Enable cobbler to manage DHCP server:
sed -i "s/^manage_dhcp:.*$/manage_dhcp: 1/" /etc/cobbler/settings
Enable cobbler to manage DNS server:
sed -i "s/^manage_dns:.*/manage_dns: 1/" /etc/cobbler/settings
Set servers IP adress in cobbler configuration:
ipaddress=$(ifconfig | grep "inet.*addr.*Bcast.*Mask" | sed "s/  Bcast.*$//g" | head -1 | sed "s/^.*://g")
sed -i "s/^server:.*/server: `echo $ipaddress`/" /etc/cobbler/settings
sed -i "s/^next_server:.*/next_server: `echo $ipaddress`/" /etc/cobbler/settings
Restart cobbler deamon:
service cobblerd restart
Recreate cobbler service based on new settings:
cobbler sync
At the end of output you should definitely see thet dhcpd and named is started OK:
running: /etc/rc.d/init.d/dhcpd restart
received on stdout: Starting dhcpd: [  OK  ]

received on stderr:
running: /etc/rc.d/init.d/named restart
received on stdout: Stopping named: [  OK  ]
Generating /etc/rndc.key:[  OK  ]
Starting named: [  OK  ]

received on stderr:
running shell triggers from /var/lib/cobbler/triggers/sync/post/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
*** TASK COMPLETE ***
Take a look in DHCP settings:
cat /etc/dhcp/dhcpd.conf
The content should be exactly like this:
# ******************************************************************
# Cobbler managed dhcpd.conf file
# generated from cobbler dhcp.conf template (Sun Dec 13 16:30:00 2015)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten.
# ******************************************************************

ddns-update-style interim;

allow booting;
allow bootp;

ignore client-updates;
set vendorclass = option vendor-class-identifier;

subnet 192.168.1.0 netmask 255.255.255.0 {
     option routers             192.168.1.5;
     option domain-name-servers 192.168.1.1;
     option subnet-mask         255.255.255.0;
     range dynamic-bootp        192.168.1.100 192.168.1.254;
     filename                   "/pxelinux.0";
     default-lease-time         21600;
     max-lease-time             43200;
     next-server                localhost.localdomain;
}

# group for Cobbler DHCP tag: default
group {
}
Enable DHCP to boot automatically at next system boot up:
chkconfig dhcpd on

Thursday, November 26, 2015

Create Spacewalk server with CentOS 6.7

Download CentOS-6.6 appliance:
https://s3-eu-west-1.amazonaws.com/virtualboxes.org/CentOS-6.6-x86_64-minimal.ova.torrent

Load this appliance in VirtualBox.
Set network adapter to Bridged Network

Launch machine.

Log in with username root using password reverse

Check out IP address with ifconfig

Minimize VirtualBox window and log in into this server using putty.

Create new autoinstall script.
vi /root/autoinstall
Paste this content into the file:
#!/bin/sh

#install spacewalk repository
wget http://yum.spacewalkproject.org/RPM-GPG-KEY-spacewalk-2015 -P /etc/pki/rpm-gpg
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-spacewalk-2015
rpm -Uvh http://yum.spacewalkproject.org/2.5/RHEL/6/x86_64/spacewalk-repo-2.5-3.el6.noarch.rpm

#install epel repository
wget https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 -P /etc/pki/rpm-gpg
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

#install jpackage repository
cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
[jpackage-generic]
name=JPackage (free), generic
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
failovermethod=priority
gpgcheck=0
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1
EOF

#update system
yum update -y

#install postgresql database server
yum install spacewalk-setup-postgresql -y

#install spacewalk using postgresql as database server
yum install spacewalk-postgresql -y

#create spacewalk unattanded installation file into root home direcotry
cat > /root/spacewalk-answer-file << EOF
admin-email = root@localhost
ssl-set-org = Spacewalk Org
ssl-set-org-unit = spacewalk
ssl-set-city = My City
ssl-set-state = My State
ssl-set-country = US
ssl-password = spacewalk
ssl-set-email = root@localhost
ssl-config-sslvhost = Y
db-backend=postgresql
db-name=spaceschema
db-user=spaceuser
db-password=spacepw
db-host=localhost
db-port=5432
enable-tftp=Y
EOF

#spacewalk silent install
spacewalk-setup --answer-file=/root/spacewalk-answer-file

service iptables save
service iptables stop
chkconfig iptables off
Set the file exetable:
chmod +x /root/autoinstall
launch the code:
cd /root
./autoinstall

Wednesday, November 25, 2015

Remove "Get Windows 10" tray icon

To disable the application by itself use:
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Gwx /v DisableGwx /t REG_DWORD /d 1 /f
Remove this setting:
reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\Gwx /v DisableGwx /f

Set up writable public samba share on CentOS 6.7

Turn off SELinux:
setenforce 0
Disable SELinux for next system boot up / restart:
sed -i "s/^SELINUX=.*$/SELINUX=disabled/" /etc/selinux/config
Install samba application:
yum install samba samba-client samba-common -y
Set up samba to start at the next boot up:
chkconfig smb on
chkconfig nmb on
Set up firewall rules:
iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
service iptables save
Empty existing samba configuration:
> /etc/samba/smb.conf
Go to edit configuration in your way:
vi /etc/samba/smb.conf
Paste this content:
#======================= Global Settings =========================
[global]
workgroup = WORKGROUP
security = share
map to guest = bad user
#======================= Share Definitions =======================
[public]
path = /public
browsable =yes
writable = yes
guest ok = yes
read only = no
Create missing directory:
mkdir -p /public
Set the right permissions for this share:
chmod -R 0777 /public
Restart samba service:
service smb restart
service nmb restart

Tuesday, November 24, 2015

Delete C:\Windows\CSC\v2.0.6\namespace, CscService

Open comand prompt in "Run as administrator" mode:

Stop sync service:
net stop CscService
Disable sync service:
sc config CscService start= disabled
Take ownership of c:\windows\scs:
takeown /f c:\windows\csc /r /a /d y > NUL
Reset permissions:
icacls c:\windows\csc /grant Administrators:(F) /t /l /q
Remove direcotry:
rd c:\windows\csc /q /s
Enable sync service:
sc config CscService start= auto
If something fails you can move to safe mode and repeat the steps.
Make sure you have at least one local administrator account active.
Just hold down shift key and shoose to restart computer:

Monday, November 23, 2015

Friday, November 20, 2015

Reset CentOS 7 root password

At the boot manager press e:

Use your arrow keys and navigate like 10 lines and look for ro

Replace ro with:
rw init=/sysroot/bin/sh
Press Ctrl+x to go further:

Now write down:
chroot /sysroot
passwd root
touch /.autorelabel
exit
exit
reboot

Thursday, November 19, 2015

Wednesday, November 18, 2015

Count windows printer spooler jobs, Zabbix

Create Template with name Printer Spooler

Create item:
system.run[dir C:\WINDOWS\system32\spool\PRINTERS | find /C "SHD"]
Create trigger:
{Printer Spooler:system.run[dir C:\WINDOWS\system32\spool\PRINTERS | find /C "SHD"].last(0)}>2
Set triger name to:
{ITEM.LASTVALUE} printer spooler jobs

Tuesday, November 17, 2015

Monday, November 16, 2015

Set up Internet Explorer proxy settings, command line


reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d "custom.proxy.com:3128" /f

Sunday, November 15, 2015

Get all span tags with class, BeautifulSoup

For Raspberry Pi install BeautifulSoup:
sudo apt-get install python-bs4
import urlparse
import urllib
from bs4 import BeautifulSoup

#define urls you have to work with. seperate multiple values with coma
url = "https://www.salidzini.lv/search.php?q=samsung+evo+850+250gb"

#put all urls in array. this is necesary to learn for future projects
#once every url will be processed from array it will be erased at the end of loop
urls = [url]

#define visited url array
visited = [url]

#start while loop. remember that tabs matter in python
#while something is inside in urls array then do the folowing steps
while len(urls) > 0:
        try:
                #read url
                htmltext = urllib.urlopen(urls[0]).read()
        except:
                #if the link is really broken or can not be reached this time
                #then the link name will be printed on screen
                print urls[0]

        #convert whole html to soup to easy look for everything
        soup = BeautifulSoup(htmltext)

        #decrease urls array. erase element from array
        urls.pop(0)

        #we have still content in soup so we can do whatever we want
        #this time print all urls which has <a></a> tag in html and have something in href
        print soup.findAll('span',{'class':'item_name_h1'})
If you want to seperate each value in next line use:
        for tag in soup.findAll('div',{'class':'item_price'}):
                print tag
Source:
https://www.youtube.com/watch?v=SFas42HBtMg

Saturday, November 14, 2015

Cannot find a valid baseurl for repo: rpmfusion-free, CentOS

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: rpmfusion-free
I was trying to install VLC player on CentOS 6.7 with fedora repo.
Now i broke yum cause it contains invalid repository.

I fix this with:
cd /etc/yum.repos.d/
mv rpmfusion-free* ~

Friday, November 13, 2015

Shutdown Raspberry Pi through GPIO short circuit

This will allow to shutdown your pi by short circuit:
GND (pin 6) and GPIO port 23 (pin 16):

Create GPIO listen instance command:
sudo nano /usr/bin/listen-gpio
Paste content:
#!/usr/bin/env python2.7
# script by Alex Eames http://RasPi.tv/
# http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio
import subprocess
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)

# GPIO 23 set up as input. It is pulled up to stop false signals
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)

print "Make sure you have a button connected so that when pressed"
print "it will connect GPIO port 23 (pin 16) to GND (pin 6)\n"
# raw_input("Press Enter when ready\n>")

print "Waiting for falling edge on port 23"
# now the program will do nothing until the signal on port 23
# starts to fall towards zero. This is why we used the pullup
# to keep the signal high and prevent a false interrupt

print "During this waiting time, your computer is not"
print "wasting resources by polling for a button press.\n"
print "Press your button when ready to initiate a falling edge interrupt."
try:
    GPIO.wait_for_edge(23, GPIO.FALLING)
    print "\nFalling edge detected. Now your program can continue with"
    print "whatever was waiting for a button press."
    subprocess.call(['sudo poweroff'], shell=True)
except KeyboardInterrupt:
    GPIO.cleanup()       # clean up GPIO on CTRL+C exit
GPIO.cleanup()           # clean up GPIO on normal exit

Set file executable:
sudo chmod 755 /usr/bin/listen-gpio
Create service
sudo nano /etc/init.d/shutdown-through-gpio
Paste content:
#!/bin/sh
case "$1" in
start)
sudo /usr/bin/listen-gpio
echo "Listen GPIO started"
;;
stop)
pkill listen-gpio
echo "Listen GPIO terminated"
;;
*)
echo "Usage: /etc/init.d/shutdown-through-gpio {start|stop}"
exit 1
;;
esac

Set service executable:
sudo chmod 755 /etc/init.d/shutdown-through-gpio
Update global configuration - this will read if some changes has been made to startup applicaitions:
sudo update-rc.d shutdown-through-gpio defaults
Reboot and you are ready to use 12mm wrench to shut down your pi.

At the end use this:
cat > /usr/bin/listen-gpio << EOF
#!/usr/bin/env python2.7
# script by Alex Eames http://RasPi.tv/
# http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio
import subprocess
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)

# GPIO 23 set up as input. It is pulled up to stop false signals
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)

print "Make sure you have a button connected so that when pressed"
print "it will connect GPIO port 23 (pin 16) to GND (pin 6)\n"
# raw_input("Press Enter when ready\n>")

print "Waiting for falling edge on port 23"
# now the program will do nothing until the signal on port 23
# starts to fall towards zero. This is why we used the pullup
# to keep the signal high and prevent a false interrupt

print "During this waiting time, your computer is not"
print "wasting resources by polling for a button press.\n"
print "Press your button when ready to initiate a falling edge interrupt."
try:
    GPIO.wait_for_edge(23, GPIO.FALLING)
    print "\nFalling edge detected. Now your program can continue with"
    print "whatever was waiting for a button press."
    subprocess.call(['sudo poweroff'], shell=True)
except KeyboardInterrupt:
    GPIO.cleanup()       # clean up GPIO on CTRL+C exit
GPIO.cleanup()           # clean up GPIO on normal exit
EOF

chmod 755 /usr/bin/listen-gpio

cat > /etc/init.d/shutdown-through-gpio << EOF
#!/bin/sh
case "\$1" in
start)
sudo /usr/bin/listen-gpio
echo "Listen GPIO started"
;;
stop)
pkill listen-gpio
echo "Listen GPIO terminated"
;;
*)
echo "Usage: /etc/init.d/shutdown-through-gpio {start|stop}"
exit 1
;;
esac
EOF

chmod 755 /etc/init.d/shutdown-through-gpio

update-rc.d shutdown-through-gpio defaults

Source:
http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio
https://raw.githubusercontent.com/g0to/misc_scripts/master/raspi_gpio_actions_INT.py

Thursday, November 12, 2015

Wednesday, November 11, 2015

Internet Explorer has stopped working, BEX


Problem signature:
  Problem Event Name: BEX
  Application Name: IEXPLORE.EXE
  Application Version: 11.0.9600.18098
  Application Timestamp: 5633e44a
  Fault Module Name: StackHash_a7aa
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp: 00000000
  Exception Offset: 00000000
  Exception Code: c0000005
  Exception Data: 00000008
  OS Version: 6.1.7601.2.1.0.256.48
  Locale ID: 1033
  Additional Information 1: a7aa
  Additional Information 2: a7aa91f17ea749d42a4de3b390fa5b3d
  Additional Information 3: a7aa
  Additional Information 4: a7aa91f17ea749d42a4de3b390fa5b3d

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
Solution is to turn on "Use software rendering instead of GPU rendering" option in Internet Options:

This can also be enabled via command line:
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v UseSWRender /t REG_DWORD /d 1 /f
For all users in computer use:
reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v UseSWRender /t REG_DWORD /d 1 /f

Tuesday, November 10, 2015

This kernel requires the following features present on the CPU: pae, CentOS


To solve this case you have to invest huge time of work so you better give up now and not in the middle of process.

Is is CentOS 6.7, CentOS 6.6, CentOS 6.5 or CentOS 6.4 download and install:
CentOS-6.4-i386-minimal.iso
6b5c727fa76fcce7c9ab6213ad3df75a
ddb63a0af2c1d63b8e9b7342c7f52a86b1842689
https://googledrive.com/host/0Bw3TNukGToLyUVltaEVXVVpfeVU

Now lauch operating system and execute these commands:
cd /root
yum install -y wget
wget http://www.digitage.co.uk/files/nopaecentos/rebuild20141105.tgz
tar xvfz rebuild20141105.tgz
sh install-rpms.sh
cd /root
sh download-kernel-srpm.sh
rpm -ihv kernel-2.6.*.src.rpm
cd /root
rngd -r /dev/urandom
sh build-kernel.sh
while the kernel is compiling use WinSCP to upload in the /root directory:
CentOS-6.4-i386-minimal.iso
Mount this iso file:
mount -t iso9660 -o loop /root/CentOS-6.4-i386-minimal.iso /mnt
or
mount /dev/cdrom /mnt
Wait an hour for kernel to complete compiling.

Build new iso:
cd /root
sh build-iso.sh
This gil generate file:
/opt/boot.iso
At the end i got:
CentOS-6.7-i868-minimal-nopae.iso
https://googledrive.com/host/0Bw3TNukGToLyY01YZGJNMEk2WWs

Note.
At the splash screen this iso file still says CentOS 6.4:

but when you install it then it is 6.7!:

Source:
http://www.digitage.co.uk/digitage/library/linux/installing-centos-6-4-on-non-pae-hardware

Monday, November 9, 2015

Sunday, November 8, 2015

Unable to mount root fs on unknown-block(0,0), CentOS


If you test closer then one of your grub options is still working:

Solution is to boot with working kernel and reinstall kernel:
yum remove kernel-2.6.32-573.7.1.el6
Reboot and now it should work out of the box.

Now you can try again with new kernel:
yum install kernel-2.6.32-573.7.1.el6
reboot and celebrate!

Saturday, November 7, 2015

Local permission not set for action type configfiles.deploy

Solution:
/usr/bin/rhn-actions-control --enable-all
At the SpaceWalk server side do:
service jabberd stop
service osa-dispatcher stop
rm -f /var/lib/jabberd/db/*
service jabberd start
sleep 10
service osa-dispatcher start
Also check if some local selinux policies are blocked
(this step must be checked multiple times):
audit2allow -a | grep -v "===\|^$" | sed -e '/#!!!!/,+1d'
If blocked the install it:
audit2allow -a -M all && semodule -i all.pp
Wait a few minutes and check again blocked policies..

Friday, November 6, 2015

Show MAC address, windows, command line

for /f "tokens=*" %%a in ('ipconfig -all ^| find "Physical Address"') do (
echo %%a
)
Using custom tools:
for /f "tokens=*" %%a in ('ipconfig -all ^|
find "Physical Address" ^|
head -1 ^| sed "s/^.*: \|-//g"') do (
echo %%a
)

Thursday, November 5, 2015

Install zabbix selinux policies, zabbix_agent_t

This will list all installed and not installed policies:
audit2allow -a
grep zabbix policies template:
grep zabbix /var/log/audit/audit.log | audit2allow -M zabbix.policies
Install policies:
semodule -i zabbix.policies.pp
All together:
audit2allow -a && grep zabbix /var/log/audit/audit.log | audit2allow -M zabbix.policies && semodule -i zabbix.policies.pp && audit2allow -a
You have to execute this command multiple times. An sometime you have to wait between these execution.

At the end all lines shoud have #!!!! This avc is allowed in the current policy
#============= zabbix_agent_t ==============

#!!!! This avc is allowed in the current policy
allow zabbix_agent_t ..................................;

#!!!! This avc is allowed in the current policy
allow zabbix_agent_t ...............................................;

#!!!! This avc is allowed in the current policy
allow zabbix_agent_t .....................................;

#!!!! This avc is allowed in the current policy
allow zabbix_agent_t ........................;
This method solves these cases:
Received value [Failed to get D-Bus connection: An SELinux policy prevents this sender from sending this message to this recipie
Received value [Failed to issue method call: Access denied0] is not suitable for value type [Numeric (unsigned)] and data type

Wednesday, November 4, 2015

Less Than 25% Free In The Configuration Cache, zabbix

Check existing configuration:"
cat /etc/zabbix/zabbix_server.conf | grep "CacheSize="
Output will be similar to this:
# VMwareCacheSize=8M
# HistoryCacheSize=8M
# TrendCacheSize=4M
# HistoryTextCacheSize=16M
# ValueCacheSize=8M
Open file:
vi /etc/zabbix/zabbix_server.conf
Set CacheSize to something like twice as default:
### Option: CacheSize
#       Size of configuration cache, in bytes.
#       Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-2G
# Default:
# CacheSize=8M
CacheSize=16M

Tuesday, November 3, 2015

mount / unmount iso file, see already mounted

See already mounted files:
cat /proc/mounts
or:
cat /etc/mtab
create directory:
mkdir /mnt/iso
mount iso file:
mount -t iso9660 -o loop ~/example.iso /mnt/iso/
umount iso file:
umount /mnt/iso
Note:
umount command is writed without n

Monday, November 2, 2015

cobbler check, xmlrpclib.Fault, login failed

# cobbler check
Traceback (most recent call last):
  File "/usr/bin/cobbler", line 36, in <module>
    sys.exit(app.main())
  File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 657, in main
    rc = cli.run(sys.argv)
  File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 270, in run
    self.token         = self.remote.login("", self.shared_secret)
  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 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed'">
To deal with this message you have to open /etc/cobbler/settings and replace server: 127.0.0.1 with IP address of server.

Blog Archive