Hi
Has anybody else experienced a problem with channel keys and associating
"child channels" to the channel key?
I modified the "create_channel.py" script so that it accepts the parent
channel option, that way I could create a parent channel and then create
child channels
under the parent.
I then ran the script and it created my channel and the child channels,
as can be seen from the below "rhn-satellite-exporter --list-channels":
B centos-5.4-x86_64-server
C centos-5.4-x86_64-centosplus
C centos-5.4-x86_64-extras
C centos-5.4-x86_64-updates
I then used spacewalk-repo-sync and populated the 4 channels.
Everything appeared to work flawlessly.
I then created a channel key, specifying the (B)ase channel
"centos-5.4-x86_64-server" which also worked fine. I then clicked on
"Activation keys", then selected the key and then
clicked "child Channels" and thats when I get a "500 Error - Internal
Server Error"
I appear to be missing: var/www/html/javascript/prototype-1.js
I have attached my scripts in case someone finds them usefull.
The logs:
/var/log/httpd/ssl_access_log:
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/PendingActionsRenderer.renderAsync.dwr HTTP/1.1"
200 917
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/InactiveSystemsRenderer.renderAsync.dwr
HTTP/1.1" 200 727
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/SystemGroupsRenderer.renderAsync.dwr HTTP/1.1"
200 1364
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/CriticalSystemsRenderer.renderAsync.dwr
HTTP/1.1" 200 1812
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/TasksRenderer.renderAsync.dwr HTTP/1.1" 200 2005
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/LatestErrataRenderer.renderAsync.dwr HTTP/1.1"
200 813
10.44.83.95 - - [16/Feb/2010:11:21:01 +0000] "POST
/rhn/dwr/call/plaincall/RecentSystemsRenderer.renderAsync.dwr HTTP/1.1"
200 3910
10.44.83.95 - - [16/Feb/2010:11:21:03 +0000] "GET
/rhn/software/channels/All.do HTTP/1.1" 200 26682
10.44.83.95 - - [16/Feb/2010:11:21:06 +0000] "GET
/rhn/systems/Overview.do HTTP/1.1" 200 19823
10.44.83.95 - - [16/Feb/2010:11:21:08 +0000] "GET
/rhn/activationkeys/List.do HTTP/1.1" 200 12894
10.44.83.95 - - [16/Feb/2010:11:21:09 +0000] "GET
/rhn/activationkeys/Edit.do?tid=1 HTTP/1.1" 200 11397
10.44.83.95 - - [16/Feb/2010:11:21:26 +0000] "GET
/network/account/activation_keys/child_channels.pxt?tid=1 HTTP/1.1" 500
3053
10.44.83.95 - - [16/Feb/2010:11:21:26 +0000] "GET
/javascript/prototype-1.js HTTP/1.1" 404 2832
/var/log/httpd/ssl_error_log:
[Tue Feb 16 11:21:26 2010] [alert] [client 10.44.83.95]
/var/www/html/network/.htaccess: Can't locate PXT/Debug.pm in @INC (@INC
contains: /var/www/lib
/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl . /etc/httpd) at
/usr/lib/perl5/vendor_perl/5.10.0/RHN/DB/Org.pm line 29.\nBEGIN
failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/RHN/DB/Org.pm line 29.\nCompilation
failed in require at /usr/lib/perl5/vendor_perl/5.10.0/RHN/Org.pm line
20.\nBEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/RHN/Org.pm line 20.\nCompilation
failed in require at /usr/lib/perl5/vendor_perl/5.10.0/RHN/DB/User.pm
line 33.\nBEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/RHN/DB/User.pm line 33.\nCompilation
failed in require at /usr/lib/perl5/vendor_perl/5.10.0/RHN/User.pm line
20.\nBEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/RHN/User.pm line 20.\nCompilation
failed in require at /usr/lib/perl5/vendor_perl/5.10.0/PXT/Request.pm
line 21.\nBEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/PXT/Request.pm line 21.\nCompilation
failed in require at
/usr/lib/perl5/vendor_perl/5.10.0/PXT/ApacheHandler.pm line 40.\nBEGIN
failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/PXT/ApacheHandler.pm line
40.\nCompilation failed in require at (eval 9) line 3.\n, referer:
https://spacewalk/rhn/activationkeys/Edit.do?tid=1
[Tue Feb 16 11:21:26 2010] [error] [client 10.44.83.95] File does not
exist: /var/www/html/javascript/prototype-1.js, referer:
https://spacewalk/network/account/activation_keys/child_channels.pxt?tid
=1
<https://spacewalk/network/account/activation_keys/child_channels.pxt?ti
d=1>
I've been using the nightly build:
r...@spacewalk:/var/log/httpd > rpm -qa | grep -i spacewalk | grep back
spacewalk-backend-package-push-server-0.8.43-1.fc12.noarch
spacewalk-backend-xmlrpc-0.8.43-1.fc12.noarch
spacewalk-backend-config-files-0.8.43-1.fc12.noarch
spacewalk-backend-iss-0.8.43-1.fc12.noarch
spacewalk-backend-iss-export-0.8.43-1.fc12.noarch
spacewalk-backend-server-0.8.43-1.fc12.noarch
spacewalk-backend-applet-0.8.43-1.fc12.noarch
spacewalk-backend-sql-0.8.43-1.fc12.noarch
spacewalk-backend-xp-0.8.43-1.fc12.noarch
spacewalk-backend-libs-0.8.43-1.fc12.noarch
spacewalk-backend-config-files-common-0.8.43-1.fc12.noarch
spacewalk-backend-config-files-tool-0.8.43-1.fc12.noarch
spacewalk-backend-xml-export-libs-0.8.43-1.fc12.noarch
spacewalk-backend-app-0.8.43-1.fc12.noarch
spacewalk-backend-tools-0.8.43-1.fc12.noarch
spacewalk-backend-0.8.43-1.fc12.noarch
Bruce Bushby
Unix Engineering
Technology Group
Man Investments, 100 Lower Thames Street, London,EC3R 6DL
Desk: +44 (0) 207 144 3903
Mobile: +44 (0) 7887711769
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only. It contains
information which may be confidential and privileged. If you are not the
intended recipient, please notify the sender immediately, destroy this email
and any attachments and do not otherwise disclose or use them. Email
transmission is not a secure method of communication and Man Investments cannot
accept responsibility for the completeness or accuracy of this email or any
attachments. Whilst Man Investments makes every effort to keep its network free
from viruses, it does not accept responsibility for any computer virus which
might be transferred by way of this email or any attachments. This email does
not constitute a request, offer, recommendation or solicitation of any kind to
buy, subscribe, sell or redeem any investment instruments or to perform other
such transactions of any kind. Man Investments reserves the right to monitor,
record and retain all electronic communications through its network to ensure
the integrity of its systems, for record keeping and regulatory purposes.
Visit us at: www.maninvestments.com
TG0908
**********************************************************************
#!/bin/bash
sync_centos()
{
# CentOS 5.3
URL="http://mirror.liteserver.nl/pub/centos/5.3"
/usr/bin/spacewalk-repo-sync --channel centos-5.3-x86_64-server --url
$URL/os/x86_64/ --type yum --label centos5-base
/usr/bin/spacewalk-repo-sync --channel centos-5.3-x86_64-centosplus
--url $URL/centosplus/x86_64/ --type yum --label centos5-centosplus
/usr/bin/spacewalk-repo-sync --channel centos-5.3-x86_64-extras --url
$URL/extras/x86_64/ --type yum --label centos5-extras
/usr/bin/spacewalk-repo-sync --channel centos-5.3-x86_64-updates --url
$URL/updates/x86_64/ --type yum --label centos5-updates
# CentOS 5.4
URL="http://mirror.liteserver.nl/pub/centos/5.4"
/usr/bin/spacewalk-repo-sync --channel centos-5.4-x86_64-server --url
$URL/os/x86_64/ --type yum --label centos5-base
/usr/bin/spacewalk-repo-sync --channel centos-5.4-x86_64-centosplus
--url $URL/centosplus/x86_64/ --type yum --label centos5-centosplus
/usr/bin/spacewalk-repo-sync --channel centos-5.4-x86_64-extras --url
$URL/extras/x86_64/ --type yum --label centos5-extras
/usr/bin/spacewalk-repo-sync --channel centos-5.4-x86_64-updates --url
$URL/updates/x86_64/ --type yum --label centos5-updates
}
sync_fedora()
{
# Fedora 12
URL="http://mirror.switch.ch/ftp/mirror/fedora/linux"
/usr/bin/spacewalk-repo-sync --channel fedora-12-x86_64 --url
$URL/releases/12/Everything/x86_64/os/ --type yum --label fedora12
/usr/bin/spacewalk-repo-sync --channel fedora-12-x86_64-updates --url
$URL/updates/12/x86_64/ --type yum --label fedora12-updates
}
sync_centos
sync_fedora
#!/usr/bin/env python
#
# Copyright (c) 2008 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
# Red Hat trademarks are not licensed under GPLv2. No permission is
# granted to use or replicate Red Hat trademarks that are incorporated
# in this software or its documentation.
#
import xmlrpclib
from optparse import OptionParser
SPACEWALK_HOST = "localhost" # or FQDN
SPACEWALK_LOGIN = "spacewalk"
SPACEWALK_PASSWORD = "spacewalk"
parent=""
# options parsing
usage = "usage: %prog [options] --label <channel label> --name <channel name>"
parser = OptionParser(usage=usage, description="")
parser.add_option("--user", dest="user", help="username",
default=SPACEWALK_LOGIN)
parser.add_option("--password", dest="password", help="password",
default=SPACEWALK_PASSWORD)
parser.add_option("--host", dest="host", help="FQDN of your server",
default=SPACEWALK_HOST)
parser.add_option("--label", dest="label", help="channel label")
parser.add_option("--parent", dest="parent", help="channel parent", default="")
parser.add_option("--name", dest="name", help="channel name")
parser.add_option("--summary", dest="summary", help="channel summary")
parser.add_option("--channel-arch", dest="arch", help="channel architecture",
default="channel-ia32")
parser.add_option("--debug", action="store_true", dest="debug", default=False,
help="enable debug output")
(options, terms) = parser.parse_args()
if not options.label:
print parser.print_help()
parser.exit()
SPACEWALK_URL = "http://%s/rpc/api" % options.host
client = xmlrpclib.Server(SPACEWALK_URL, verbose=0)
def login(name = SPACEWALK_LOGIN, password = SPACEWALK_PASSWORD):
return client.auth.login(name, password)
def logout(key):
client.auth.logout(key)
def create(key, label, name, summary, arch, parent):
print "Parent: %s" %parent
return client.channel.software.create(key, label, name, summary, arch,
parent)
def main():
key = login(options.user,options.password)
create(key, label = options.label, name = options.name,
summary = options.summary, arch = options.arch, parent =
options.parent)
logout(key)
if __name__ == "__main__":
main()#!/bin/bash
PATH="/usr/local/spacewalk/bin:$PATH"
create_centos_64()
{
LOGIN="--user administrator --password=xxxxxxx --host=spacewalk"
# CentOS 5.3
ARCH=" --channel-arch=\"channel-x86_64\""
PARENT=" --parent=\"centos-5.3-x86_64-server\""
ID_STRING="--name=\"CentOS Enterprise Linux (v. 5.3 for 64-bit
x86_64)\" --summary=\"CentOS Enterprise Linux (v. 5.3 for 64-bit x86_64)\""
create_channel.py $LOGIN --label="centos-5.3-x86_64-server" --parent=""
ID_STRING="--name=\"CentOS Enterprise Linux CentOSPlus (v. 5.3)\"
--summary=\"CentOS Enterprise Linux CentOSPlus (v. 5.3)\""
create_channel.py $LOGIN --label="centos-5.3-x86_64-centosplus" $PARENT
$ID_STRING $ARCH
ID_STRING="--name=\"CentOS Enterprise Linux Extras (v. 5.3)\"
--summary=\"CentOS Enterprise Linux Extras (v. 5.3)\""
create_channel.py $LOGIN --label="centos-5.3-x86_64-extras" $PARENT
$ID_STRING $ARCH
ID_STRING="--name=\"CentOS Enterprise Linux Updates (v. 5.3)\"
--summary=\"CentOS Enterprise Linux Updates (v. 5.3)\""
create_channel.py $LOGIN --label="centos-5.3-x86_64-updates" $PARENT
$ID_STRING $ARCH
# CentOS 5.4
ARCH=" --channel-arch=\"channel-x86_64\""
PARENT=" --parent=\"centos-5.4-x86_64-server\""
ID_STRING="--name=\"CentOS Enterprise Linux (v. 5.4 for 64-bit
x86_64)\" --summary=\"CentOS Enterprise Linux (v. 5.4 for 64-bit x86_64)\""
create_channel.py $LOGIN --label="centos-5.4-x86_64-server" --parent=""
$ID_STRING $ARCH
ID_STRING="--name=\"CentOS Enterprise Linux CentOSPlus (v. 5.4)\"
--summary=\"CentOS Enterprise Linux CentOSPlus (v. 5.4)\""
create_channel.py $LOGIN --label="centos-5.4-x86_64-centosplus" $PARENT
$ID_STRING $ARCH
ID_STRING="--name=\"CentOS Enterprise Linux Extras (v. 5.4)\"
--summary=\"CentOS Enterprise Linux Extras (v. 5.4)\""
create_channel.py $LOGIN --label="centos-5.4-x86_64-extras" $PARENT
$ID_STRING $ARCH
ID_STRING="--name=\"CentOS Enterprise Linux Updates (v. 5.4)\"
--summary=\"CentOS Enterprise Linux Updates (v. 5.4)\""
create_channel.py $LOGIN --label="centos-5.4-x86_64-updates" $PARENT
$ID_STRING $ARCH
}
create_fedora_64()
{
LOGIN="--user administrator --password=xxxxxxx --host=spacewalk"
ARCH="--channel-arch=\"channel-x86_64\""
PARENT="--parent=\"fedora-12-x86_64\""
ID_STRING="--name=\"Fedora Linux (v. 12 for 64-bit x86_64)\"
--summary=\"Fedora Linux (v. 12 for 64-bit x86_64)\""
create_channel.py $LOGIN --label="fedora-12-x86_64" --parent=""
$ID_STRING $ARCH
ID_STRING="--name=\"Fedora Linux Updates (v. 12)\" --summary=\"Fedora
Linux Updates (v. 12)\""
create_channel.py $LOGIN --label="fedora-12-x86_64-updates" $PARENT
$ID_STRING $ARCH
}
create_centos_64
create_fedora_64
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list