[Spacewalk-list] Invalid cross-device link error

2012-01-23 Thread Pierre Casenove
Hello,
I have spacewalk 1.6 on postgresql and I have the following error log
when trying to reposync packages dowloaded by mrepo:
57/57 : busybox-1.2.0-10.el5_7.1-1.x86_64
(50, 'Package upload failed: [Errno 18] Invalid cross-device link',
'Invalid information uploaded to the server')

Could you please tell me waht is the meaning of such error?

Thanks in advance,

Pierre

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] centos-errata.py and announcement list format changes

2012-01-23 Thread David Nutter
On Thu, Jan 19, 2012 at 12:23:58PM +, David Nutter wrote:
 On Wed, Jan 18, 2012 at 06:54:47PM +, David Nutter wrote:

*snip*

 I've been informed by a couple of people that there's a bug which
 occurs when using multiple architecture flavours of CentOS
 (e.g. x86_64 and i386) together. Essentially you only get errata
 published for the first one listed.
 
 Unfortunately I can't test this scenario as we're x86_64 only here so
 a fix will take a little while as any changes will have to be tested
 by an affected user. Working on it though :)

OK, a new release (0.7) is out which should correct this
problem. Thanks to Stefan F??rster for reporting this issue and testing
the fix.

http://www.bioss.ac.uk/staff/davidn/spacewalk-stuff/

Regards,

-- 
David NutterTel: +44 (0)131 650 4888
BioSS, JCMB, King's Buildings, Mayfield Rd, EH9 3JZ. Scotland, UK 

Biomathematics and Statistics Scotland (BioSS) is formally part of The
James Hutton Institute (JHI), a registered Scottish charity No. SC041796
and a company limited by guarantee No. SC374831


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Invalid cross-device link error

2012-01-23 Thread Pierre Casenove
Some more information:
- reposync also fails with public repositories from internet (like
spacewalk client)
- on my system /usr partition is mounted readonly
- the rpms are stored on a NFS volume

Thanks,

Pierre


2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I have spacewalk 1.6 on postgresql and I have the following error log
 when trying to reposync packages dowloaded by mrepo:
 57/57 : busybox-1.2.0-10.el5_7.1-1.x86_64
 (50, 'Package upload failed: [Errno 18] Invalid cross-device link',
 'Invalid information uploaded to the server')

 Could you please tell me waht is the meaning of such error?

 Thanks in advance,

 Pierre

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Invalid cross-device link error

2012-01-23 Thread Pierre Casenove
Hello,
I've straced spacewalk-repo-sync call.
Here is the error:
stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm,
0x7fff4f62f540) = -1 ENOENT (No such file or directory)
stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73,
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rename(/var/www/html/pub/epel/5/epel5-x86_64/mrepo-0.8.7-2.el5.noarch.rpm,
/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm)
= -1 EXDEV (Invalid cross-device link)

/data/satellite is Spacewalk mount_point
/var/www/html/pub/epel/5/epel5-x86_64 is where the rpm is stored
locally on the server. It gets here using reposync.
Folder 
/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/
is correctly created.

I've also dug a bit in bugzilla and found BZ 676369 being corrected
for spacewalk 1.6. And this commit in particular:
2dbe4deade884d410f93bfcd30947bb77dd18e88
-pkgfd = os.open(packagePath, os.O_WRONLY | os.O_CREAT | os.O_TRUNC)
-os.lseek(fd, 0, 0)
-while 1:
-buffer = os.read(fd, 65536)
-if not buffer:
-break
-n = os.write(pkgfd, buffer)
-if n != len(buffer):
-# Error writing to the file
-raise IOError, Wrote %s out of %s bytes in file %s % (
-n, len(buffer), packagePath)
-os.close(pkgfd)
+os.rename(filename, packagePath)
 # set the path perms readable by all users
-setPermsPath(packagePath, chmod=0644)
+os.chmod(packagePath, 0644)


This patch introduces the use of os.rename command... which seems to
be a problem with local repositories.

Thanks in advance for your help,

Pierre


2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Sorry to spam: it works well with public repositories, it only fails
 with repositories built on the server, in my case:
 - mrepo
 - a subset of EPEL : I use reposync to download and built locally a
 repo with only some rpms of EPEL.

 Pierre

 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Some more information:
 - reposync also fails with public repositories from internet (like
 spacewalk client)
 - on my system /usr partition is mounted readonly
 - the rpms are stored on a NFS volume

 Thanks,

 Pierre


 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I have spacewalk 1.6 on postgresql and I have the following error log
 when trying to reposync packages dowloaded by mrepo:
 57/57 : busybox-1.2.0-10.el5_7.1-1.x86_64
 (50, 'Package upload failed: [Errno 18] Invalid cross-device link',
 'Invalid information uploaded to the server')

 Could you please tell me waht is the meaning of such error?

 Thanks in advance,

 Pierre

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Invalid cross-device link error

2012-01-23 Thread Pierre Casenove
I keep working on my issue,
Here is a working strace, when downloading package osad from spacewalk
client web repository:
stat(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm,
0x7fff36060790) = -1 ENOENT (No such file or directory)
stat(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1,
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rename(/data/satellite/redhat/1/stage/osad-5.10.34-1.el5.noarch.rpm,
/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm)
= 0
chmod(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm,
0644) = 0

It seems that spacewalk-repo-sync behaves differently when a local
repo is used (ie file:///var/...) or a web repo.
With a local repo, the rename is called on the source name to the dest name.
With a web repo, the repo is created in /MOUNT_POINT/redhat/1/stage
and then renamed, which is much better.

Could you please help me with this one? I'm really stuck and have no
idea where to look at in the code.

Pierre



2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I've straced spacewalk-repo-sync call.
 Here is the error:
 stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm,
 0x7fff4f62f540) = -1 ENOENT (No such file or directory)
 stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73,
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 rename(/var/www/html/pub/epel/5/epel5-x86_64/mrepo-0.8.7-2.el5.noarch.rpm,
 /data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm)
 = -1 EXDEV (Invalid cross-device link)

 /data/satellite is Spacewalk mount_point
 /var/www/html/pub/epel/5/epel5-x86_64 is where the rpm is stored
 locally on the server. It gets here using reposync.
 Folder 
 /data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/
 is correctly created.

 I've also dug a bit in bugzilla and found BZ 676369 being corrected
 for spacewalk 1.6. And this commit in particular:
 2dbe4deade884d410f93bfcd30947bb77dd18e88
 -    pkgfd = os.open(packagePath, os.O_WRONLY | os.O_CREAT | os.O_TRUNC)
 -    os.lseek(fd, 0, 0)
 -    while 1:
 -        buffer = os.read(fd, 65536)
 -        if not buffer:
 -            break
 -        n = os.write(pkgfd, buffer)
 -        if n != len(buffer):
 -            # Error writing to the file
 -            raise IOError, Wrote %s out of %s bytes in file %s % (
 -                n, len(buffer), packagePath)
 -    os.close(pkgfd)
 +    os.rename(filename, packagePath)
     # set the path perms readable by all users
 -    setPermsPath(packagePath, chmod=0644)
 +    os.chmod(packagePath, 0644)


 This patch introduces the use of os.rename command... which seems to
 be a problem with local repositories.

 Thanks in advance for your help,

 Pierre


 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Sorry to spam: it works well with public repositories, it only fails
 with repositories built on the server, in my case:
 - mrepo
 - a subset of EPEL : I use reposync to download and built locally a
 repo with only some rpms of EPEL.

 Pierre

 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Some more information:
 - reposync also fails with public repositories from internet (like
 spacewalk client)
 - on my system /usr partition is mounted readonly
 - the rpms are stored on a NFS volume

 Thanks,

 Pierre


 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I have spacewalk 1.6 on postgresql and I have the following error log
 when trying to reposync packages dowloaded by mrepo:
 57/57 : busybox-1.2.0-10.el5_7.1-1.x86_64
 (50, 'Package upload failed: [Errno 18] Invalid cross-device link',
 'Invalid information uploaded to the server')

 Could you please tell me waht is the meaning of such error?

 Thanks in advance,

 Pierre

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Invalid cross-device link error

2012-01-23 Thread Pierre Casenove
Please find attached a partial patch (using diff -u and not git, as I
don't have my development up and running), using shutil.move instead
of os.rename.
Why partial? because in the case of a local repository, the move is
done from the real repository to Spacewalk mount point. So the
original repository gets corrupted after this move (the package
imported in spacewalk is missing). The behavior is correct for remote
repository.
As it allows me to get back a working spacewalk, I go with it. But any
improvement would be really appreciated.


[root@tu-spa-d15 importlib]# diff -u /root/importlib.py.orig importLib.py
--- /root/importlib.py.orig 2012-01-23 15:52:03.649825333 +
+++ importLib.py2012-01-23 15:55:59.625754383 +
@@ -17,6 +17,7 @@
 #

 import os
+import shutil
 from types import IntType, StringType, InstanceType
 from UserDict import UserDict
 from UserList import UserList
@@ -808,7 +809,7 @@
 # Create the directory where the file will reside
 if not os.path.exists(dir):
 createPath(dir)
-os.rename(filename, packagePath)
+   shutil.move(filename, packagePath)
 # set the path perms readable by all users
 os.chmod(packagePath, 0644)


Pierre

2012/1/23 Pierre Casenove pcasen...@gmail.com:
 I keep working on my issue,
 Here is a working strace, when downloading package osad from spacewalk
 client web repository:
 stat(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm,
 0x7fff36060790) = -1 ENOENT (No such file or directory)
 stat(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1,
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 rename(/data/satellite/redhat/1/stage/osad-5.10.34-1.el5.noarch.rpm,
 /data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm)
 = 0
 chmod(/data/satellite/redhat/1/b4f/osad/5.10.34-1.el5/noarch/b4f797216885818ee51d9a01813422a1/osad-5.10.34-1.el5.noarch.rpm,
 0644) = 0

 It seems that spacewalk-repo-sync behaves differently when a local
 repo is used (ie file:///var/...) or a web repo.
 With a local repo, the rename is called on the source name to the dest name.
 With a web repo, the repo is created in /MOUNT_POINT/redhat/1/stage
 and then renamed, which is much better.

 Could you please help me with this one? I'm really stuck and have no
 idea where to look at in the code.

 Pierre



 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I've straced spacewalk-repo-sync call.
 Here is the error:
 stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm,
 0x7fff4f62f540) = -1 ENOENT (No such file or directory)
 stat(/data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73,
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 rename(/var/www/html/pub/epel/5/epel5-x86_64/mrepo-0.8.7-2.el5.noarch.rpm,
 /data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/mrepo-0.8.7-2.el5.noarch.rpm)
 = -1 EXDEV (Invalid cross-device link)

 /data/satellite is Spacewalk mount_point
 /var/www/html/pub/epel/5/epel5-x86_64 is where the rpm is stored
 locally on the server. It gets here using reposync.
 Folder 
 /data/satellite/redhat/1/bbe/mrepo/0.8.7-2.el5/noarch/bbe01b9ea61f85f4892dedc0fbb89b73/
 is correctly created.

 I've also dug a bit in bugzilla and found BZ 676369 being corrected
 for spacewalk 1.6. And this commit in particular:
 2dbe4deade884d410f93bfcd30947bb77dd18e88
 -    pkgfd = os.open(packagePath, os.O_WRONLY | os.O_CREAT | os.O_TRUNC)
 -    os.lseek(fd, 0, 0)
 -    while 1:
 -        buffer = os.read(fd, 65536)
 -        if not buffer:
 -            break
 -        n = os.write(pkgfd, buffer)
 -        if n != len(buffer):
 -            # Error writing to the file
 -            raise IOError, Wrote %s out of %s bytes in file %s % (
 -                n, len(buffer), packagePath)
 -    os.close(pkgfd)
 +    os.rename(filename, packagePath)
     # set the path perms readable by all users
 -    setPermsPath(packagePath, chmod=0644)
 +    os.chmod(packagePath, 0644)


 This patch introduces the use of os.rename command... which seems to
 be a problem with local repositories.

 Thanks in advance for your help,

 Pierre


 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Sorry to spam: it works well with public repositories, it only fails
 with repositories built on the server, in my case:
 - mrepo
 - a subset of EPEL : I use reposync to download and built locally a
 repo with only some rpms of EPEL.

 Pierre

 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Some more information:
 - reposync also fails with public repositories from internet (like
 spacewalk client)
 - on my system /usr partition is mounted readonly
 - the rpms are stored on a NFS volume

 Thanks,

 Pierre


 2012/1/23 Pierre Casenove pcasen...@gmail.com:
 Hello,
 I have spacewalk 1.6 on 

[Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Carlo Filippetto
Hi all,
I have several problem, I need to run the server but I can't
understand what is wrong

Every time I restart the service I receive these 2 mails:
 1 -
Taskomatic bunch kickstartfile-sync-bunch was scheduled to run within
the kickstartfile-sync-default schedule.

Subtask kickstartfile-sync failed.

For more information check
/var/lib/rhn/tasko/sat/kickstartfile-sync-bunch/kickstartfile-sync_170958_err.
 2 --
Taskomatic bunch cobbler-sync-bunch was scheduled to run within the
cobbler-sync-default schedule.

Subtask cobbler-sync failed.

For more information check
/var/lib/rhn/tasko/sat/cobbler-sync-bunch/cobbler-sync_170947_err.
---





What does it means?






In the restart command I have this error:
-
Starting MonitoringScout ...
Starting NPBootstrap ...  2012-01-23 16:58:21 NPBootstrap:
 !! ERROR FROM SHELL COMMAND:
2012-01-23 16:58:21 NPBootstrap:!! STDOUT: Failed to get scout
shared key data for this node.

2012-01-23 16:58:21 NPBootstrap:!! STDERR:
2012-01-23 16:58:21 NPBootstrap:!! EXIT: 256
[ FAIL ]
2012-01-23 16:58:21 NPBootstrap: WARNING: STARTED BUT *NOT* RUNNING
2012-01-23 16:58:21 NPBootstrap: ERRORS ENCOUNTERED DURING LAST ACTION:
2012-01-23 16:58:21 NPBootstrap:!! ERROR FROM SHELL COMMAND:
2012-01-23 16:58:21 NPBootstrap:!! STDOUT: Failed to get scout
shared key data for this node.

2012-01-23 16:58:21 NPBootstrap:!! STDERR:
2012-01-23 16:58:21 NPBootstrap:!! EXIT: 256
--

What I have to do to solve these problems?

What other information I have to check?



Thank's

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Tomas Lestach
On Monday 23 of January 2012 17:09:59 Carlo Filippetto wrote:
 Hi all,
 I have several problem, I need to run the server but I can't
 understand what is wrong
 
 Every time I restart the service I receive these 2 mails:
  1 -
 Taskomatic bunch kickstartfile-sync-bunch was scheduled to run within
 the kickstartfile-sync-default schedule.
 
 Subtask kickstartfile-sync failed.
 
 For more information check
 /var/lib/rhn/tasko/sat/kickstartfile-sync-bunch/kickstartfile-sync_170958_er
 r.  2 --
 Taskomatic bunch cobbler-sync-bunch was scheduled to run within the
 cobbler-sync-default schedule.
 
 Subtask cobbler-sync failed.
 
 For more information check
 /var/lib/rhn/tasko/sat/cobbler-sync-bunch/cobbler-sync_170947_err.
 ---
 
 
 
 
 
 What does it means?

It means, that the cobbler sync (triggered from the taskomatic service) didn't 
succeed.
Usually you receive these e-mails, when cobblerd isn't running. (But 
'spacewalk-service restart' shuts down taskomatic first and then cobber.)

A single sync failure doesn't mean anything, it gets synced every minute to 
keep the data updated. Just make sure other runs finished succesfully:

https://fqdn/rhn/admin/BunchDetail.do?label=cobbler-sync-bunch
https://fqdn/rhn/admin/BunchDetail.do?label=kickstartfile-sync-bunch

Regards,
Tomas
-- 
Tomas Lestach
RHN Satellite Engineering, Red Hat

 
 
 
 
 
 
 In the restart command I have this error:
 -
 Starting MonitoringScout ...
 Starting NPBootstrap ...  2012-01-23 16:58:21 NPBootstrap:
  !! ERROR FROM SHELL COMMAND:
 2012-01-23 16:58:21 NPBootstrap:!! STDOUT: Failed to get scout
 shared key data for this node.
 
 2012-01-23 16:58:21 NPBootstrap:!! STDERR:
 2012-01-23 16:58:21 NPBootstrap:!! EXIT: 256
 [ FAIL ]
 2012-01-23 16:58:21 NPBootstrap: WARNING: STARTED BUT *NOT* RUNNING
 2012-01-23 16:58:21 NPBootstrap: ERRORS ENCOUNTERED DURING LAST ACTION:
 2012-01-23 16:58:21 NPBootstrap:!! ERROR FROM SHELL COMMAND:
 2012-01-23 16:58:21 NPBootstrap:!! STDOUT: Failed to get scout
 shared key data for this node.
 
 2012-01-23 16:58:21 NPBootstrap:!! STDERR:
 2012-01-23 16:58:21 NPBootstrap:!! EXIT: 256
 --

This isn't related to the upper part.
If you use monitoring, try to push again monitoring scout.

 
 What I have to do to solve these problems?
 
 What other information I have to check?
 
 
 
 Thank's
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Carlo Filippetto
2012/1/23 Carlo Filippetto carlo.filippe...@gmail.com:
 Hi all,
 I have several problem, I need to run the server but I can't
 understand what is wrong

 Every time I restart the service I receive these 2 mails:
  1 -
 Taskomatic bunch kickstartfile-sync-bunch was scheduled to run within
 the kickstartfile-sync-default schedule.

 Subtask kickstartfile-sync failed.

 For more information check
 /var/lib/rhn/tasko/sat/kickstartfile-sync-bunch/kickstartfile-sync_170958_err.
  2 --
 Taskomatic bunch cobbler-sync-bunch was scheduled to run within the
 cobbler-sync-default schedule.

 Subtask cobbler-sync failed.

 For more information check
 /var/lib/rhn/tasko/sat/cobbler-sync-bunch/cobbler-sync_170947_err.
 ---





 What does it means?






 In the restart command I have this error:
 -
 Starting MonitoringScout ...
        Starting NPBootstrap ...  2012-01-23 16:58:21 NPBootstrap:
  !! ERROR FROM SHELL COMMAND:
 2012-01-23 16:58:21 NPBootstrap:        !! STDOUT: Failed to get scout
 shared key data for this node.

 2012-01-23 16:58:21 NPBootstrap:        !! STDERR:
 2012-01-23 16:58:21 NPBootstrap:        !! EXIT: 256
 [ FAIL ]
 2012-01-23 16:58:21 NPBootstrap: WARNING: STARTED BUT *NOT* RUNNING
 2012-01-23 16:58:21 NPBootstrap: ERRORS ENCOUNTERED DURING LAST ACTION:
 2012-01-23 16:58:21 NPBootstrap:        !! ERROR FROM SHELL COMMAND:
 2012-01-23 16:58:21 NPBootstrap:        !! STDOUT: Failed to get scout
 shared key data for this node.

 2012-01-23 16:58:21 NPBootstrap:        !! STDERR:
 2012-01-23 16:58:21 NPBootstrap:        !! EXIT: 256
 --

 What I have to do to solve these problems?

 What other information I have to check?



 Thank's




Hi,
I found several error, the bigger was the hostname, I faild this on
the configuration..

After it I disable the monitoring.
Now the restart is out of error

Starting spacewalk services...
Initializing jabberd processes ...
Starting router:   [  OK  ]
Starting sm:   [  OK  ]
Starting c2s:  [  OK  ]
Starting s2s:  [  OK  ]
Starting osa-dispatcher: RHN 903 2012/01/23 17:31:19 +02:00: ('Not
able to reconnect',)
RHN 903 2012/01/23 17:31:19 +02:00: ('Traceback (most recent call
last):\n  File /usr/share/rhn/osad/jabber_lib.py, line 252, in
setup_connection\nc = self._get_jabber_client(js)\n  File
/usr/share/rhn/osad/jabber_lib.py, line 309, in _get_jabber_client\n
   c.connect()\n  File /usr/share/rhn/osad/jabber_lib.py, line 589,
in connect\nraise SSLDisabledError\nSSLDisabledError\n',)
   [  OK  ]
Starting tomcat5:  [  OK  ]
Waiting for tomcat to be ready ...
Avvio di httpd:[  OK  ]
Starting Monitoring ...
Starting InstallSoftwareConfig ...  [ OK ]
Starting NotifEscalator ...  [ OK ]
Starting GenerateNotifConfig ...  [ OK ]
Starting NotifLauncher ...  [ OK ]
Starting Notifier ...  [ OK ]
Starting AckProcessor ...  [ OK ]
Starting TSDBLocalQueue ...  [ OK ]
[ OK ]
Starting MonitoringScout ...
Starting NPBootstrap ...  [ OK ]
Starting SputLite ...  [ OK ]
Starting Dequeuer ...  [ OK ]
Starting Dispatcher ...  [ OK ]
[ OK ]
Starting rhn-search...
Starting cobbler daemon:   [  OK  ]
Starting RHN Taskomatic...
Done.





But this email arrive
--
Taskomatic bunch cobbler-sync-bunch was scheduled to run within the
cobbler-sync-default schedule.

Subtask cobbler-sync failed.

For more information check
/var/lib/rhn/tasko/sat/cobbler-sync-bunch/cobbler-sync_171095_err.


What I have to do?

Thank's

---
Carlo Filippetto

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Carlo Filippetto
2012/1/23 Tomas Lestach tlest...@redhat.com:
 On Monday 23 of January 2012 17:09:59 Carlo Filippetto wrote:
 Hi all,
 I have several problem, I need to run the server but I can't
 understand what is wrong
[..]



 What does it means?

 It means, that the cobbler sync (triggered from the taskomatic service) didn't
 succeed.
 Usually you receive these e-mails, when cobblerd isn't running. (But
 'spacewalk-service restart' shuts down taskomatic first and then cobber.)

 A single sync failure doesn't mean anything, it gets synced every minute to
 keep the data updated. Just make sure other runs finished succesfully:

 https://fqdn/rhn/admin/BunchDetail.do?label=cobbler-sync-bunch
 https://fqdn/rhn/admin/BunchDetail.do?label=kickstartfile-sync-bunch



In these pages I found all FAIL, for the cobber every minutes, and for
the kickstart every 10 minutes!!


What I have to do to solve these problems?


thank's

---
Carlo

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Scott Worthington
 https://fqdn/rhn/admin/BunchDetail.do?label=cobbler-sync-bunch
 https://fqdn/rhn/admin/BunchDetail.do?label=kickstartfile-sync-bunch

Also note that you need to have the role Satellite Administrator and 
not Organization Administrator to access those admin pages.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Help - Problem on first intallation

2012-01-23 Thread Tomas Lestach
On Monday 23 of January 2012 17:57:06 Carlo Filippetto wrote:
 2012/1/23 Tomas Lestach tlest...@redhat.com:
  On Monday 23 of January 2012 17:09:59 Carlo Filippetto wrote:
  Hi all,
  I have several problem, I need to run the server but I can't
  understand what is wrong
 
 [..]
 
  What does it means?
  
  It means, that the cobbler sync (triggered from the taskomatic service)
  didn't succeed.
  Usually you receive these e-mails, when cobblerd isn't running. (But
  'spacewalk-service restart' shuts down taskomatic first and then
  cobber.)
  
  A single sync failure doesn't mean anything, it gets synced every minute
  to keep the data updated. Just make sure other runs finished
  succesfully:
  
  https://fqdn/rhn/admin/BunchDetail.do?label=cobbler-sync-bunch
  https://fqdn/rhn/admin/BunchDetail.do?label=kickstartfile-sync-bunch
 
 In these pages I found all FAIL, for the cobber every minutes, and for
 the kickstart every 10 minutes!!
 
 
 What I have to do to solve these problems?

Check, whether cobblerd is runnig. 95% of these cases is stopped cobblerd.

Regards,
-- 
Tomas Lestach
RHN Satellite Engineering, Red Hat

 
 
 thank's
 
 ---
 Carlo

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


[Spacewalk-list] Channel GPG Key Setup

2012-01-23 Thread RBogle
When configuring a channel in spacewalk there is an option at the bottom
of the configuration screen for the local of the GPG Key and GPG Key ID.
I cannot successfully use these to satisfy the GPG Key requirements for
the channel.

 

For the GPG URL:  http://spacewalk.server.fqdn/pub/keyname and I have
the key in that location.

GPG Key ID: I use the ID for the above key

 

Clients do not pull this information down with the channel to allow the
RPM's to install.  How can I get this to happen without manually adding
the GPG key to each client system?

 

Rich J. Bogle
Infrastructure  Computing Systems
Information Technology



 

WILLIAMS INTERNATIONAL   A COMPANY WITH A VISION
 

This email message and any attachment(s) are for the sole use of the intended
recipient(s) and may contain proprietary and/or confidential information which 
may
be privileged or otherwise protected from disclosure.

Any unauthorized review, use, disclosure or distribution is prohibited. If you 
are
not the intended recipient(s), please contact the sender by reply email and 
destroy
the original message and any copies of the message as well as any attachment(s)
to the original message.

This email message does not form a binding contract or contract amendment with
the sender, unless it clearly states in writing that it is a contract or 
contract amendment.
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Proxy deleted from spacewalk

2012-01-23 Thread Hagberg, Keith
I am running Spacewalk 1.3 with an Oracle backend database.

I recently came across an issue were my spacewalk proxy server record was 
deleted from my spacewalk server.

Assume my proxy server is name abcde123.company.com

I rejoined the server to spacewalk and reactivated the proxy.

A short time later the proxy was gone again. At the time the proxy disappears 
another server named abcde1 was being built. When this server builds it deletes 
the proxy record. I recreated this several times to confirm that.

Building server with name abcde1

Removed all servers that started with abcde1 from spacewalk.

I Found this happened on more than one occasion.
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Proxy deleted from spacewalk

2012-01-23 Thread Hagberg, Keith
Disregard this issue, it was related to poorly written code.



From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Hagberg, Keith
Sent: Monday, January 23, 2012 2:44 PM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] Proxy deleted from spacewalk

I am running Spacewalk 1.3 with an Oracle backend database.

I recently came across an issue were my spacewalk proxy server record was 
deleted from my spacewalk server.

Assume my proxy server is name abcde123.company.com

I rejoined the server to spacewalk and reactivated the proxy.

A short time later the proxy was gone again. At the time the proxy disappears 
another server named abcde1 was being built. When this server builds it deletes 
the proxy record. I recreated this several times to confirm that.

Building server with name abcde1

Removed all servers that started with abcde1 from spacewalk.

I Found this happened on more than one occasion.
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Missing file? (SW 1.6)

2012-01-23 Thread Nilton Moura
Hi everybody.

I recently install SW 1.6 on a RHEL 6.2, and when I upload a package or
sync a repo, whatever, the GUI shows Missing file, but the path is
correct and the file is there.

File System Path:
redhat/1/2ab/anacron/2.3-45.el5.centos/x86_64/2ab8de0329b11d3bdf62a98ecea8e906/anacron-2.3-45.el5.centos.x86_64.rpm
Download: Missing File: anacron-2.3-45.el5.centos.x86_64.rpm

# pwd
/var/satellite
# ls -l
redhat/1/2ab/anacron/2.3-45.el5.centos/x86_64/2ab8de0329b11d3bdf62a98ecea8e906/anacron-2.3-45.el5.centos.x86_64.rpm
-rw-r--r-- 1 apache apache 37345 Jan 23 18:40
redhat/1/2ab/anacron/2.3-45.el5.centos/x86_64/2ab8de0329b11d3bdf62a98ecea8e906/anacron-2.3-45.el5.centos.x86_64.rpm

spacewalk-data-fsck didn't show me anything:

# spacewalk-data-fsck
# echo $?
0

I searched but I could not find anything suspicious in the /var/log/rhn/*
and /var/log/httpd/*.

Does anyone have some idea?

Thanks,
Nilton Moura.
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Problem setting up proxy

2012-01-23 Thread Lopez, Abel
Hey all,
Using the latest version of spacewalk and following the steps on the wiki, I am 
able to install a proxy, but when I click on the
Proxy button under Details of my host, I get

Permission Error

You do not have the appropriate permission set to access the requested page. 
You may have reached this error page in one of several ways:

  1.  Your login session has expired. For security reasons, Red Hat Network 
terminates your login session after 15 minutes of inactivity. To sign in again, 
click herehttps://spacewalk.usa.tribune.com/.
  2.  You've found an error in our site. Please contact your Support 
representative with details of how you received this message.
  3.  Your browser does not have cookies enabled. The Red Hat Network requires 
cookies in order to function; if you have disabled them, please re-enable them 
to use the site.
  4.  You've done something naughty. Stop it.

The logs are somewhat useless, any one have a hint?
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Problem setting up proxy

2012-01-23 Thread Scott Worthington
On 1/23/2012 6:53 PM, Lopez, Abel wrote:
 Hey all,
 Using the latest version of spacewalk and following the steps on the
 wiki, I am able to install a proxy, but when I click on the
 Proxy button under Details of my host, I get


   Permission Error

 You do not have the appropriate permission set to access the requested
 page. You may have reached this error page in one of several ways:

  1. Your login session has expired. For security reasons, Red Hat
 Network terminates your login session after 15 minutes of
 inactivity. To sign in again, click here
 https://spacewalk.usa.tribune.com/.
  2. You've found an error in our site. Please contact your Support
 representative with details of how you received this message.
  3. Your browser does not have cookies enabled. The Red Hat Network
 requires cookies in order to function; if you have disabled them,
 please re-enable them to use the site.
  4. You've done something naughty. Stop it.


 The logs are somewhat useless, any one have a hint?


 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
Abel,

Back on Mon, 16 Jan 2012, Jan Pazdziora suggested the following to me:
 Could you please apply the following patch to
 /etc/httpd/conf.d/zz-spacewalk-www.conf, restart httpd and see
 if it fixes the problem for you?

 diff --git a/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf 
 b/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
 index cde64a3..33fcaeb 100644
 --- a/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
 +++ b/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
 @@ -161,7 +161,7 @@ PerlModule PXT::ApacheAuth
   Files proxy.pxt
   ForceType text/pxt
   SetHandler perl-script
 - require acl mixin RHN::Access::System user_role(org_admin); 
 system_feature(ftr_proxy_capable); org_channel_family(rhn-proxy); 
 child_channel_candidate(rhn-proxy)
 + require acl mixin RHN::Access::System user_role(org_admin); 
 system_feature(ftr_proxy_capable) or system_is_proxy(); 
 org_channel_family(rhn-proxy) or system_is_proxy(); 
 child_channel_candidate(rhn-proxy) or system_is_proxy()
   /Files
  
   Files activation.pxt

 -- 
 Jan Pazdziora
 Principal Software Engineer, Satellite Engineering, Red Hat
However, after applying the patch, the 500 Error message changed to
the following:
 I tried clicking on the Proxy link for the System that 
 is a Spacewalk Proxy and received the following traceback 
 via e-mail as well as a 500 Error - Internal Server Error, 
 but this time only listing one item: 
 1. You've found an error in the site. Please report this error 
 to your local administrator with details of how you received this message.

 The following exception occurred while executing this request:
  GET /network/systems/details/proxy.pxt?sid=110042 HTTP/1.1 (from 
 browser)  /network/systems/details/proxy.pxt (from Apache)

 Date:
   Mon Jan 16 09:36:20 2012

 Headers:
   Accept: 
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Accept-Encoding: gzip, deflate
   Accept-Language: en-us,en;q=0.5
   Connection: keep-alive
   Cookie: pxt-session-cookie=33165x905d9829f5f732eeada9d0bf770694ba
   Host: tpa-spacewalk-01.example.local
   Referer: 
 https://tpa-spacewalk-01.example.local/rhn/systems/details/Overview.do?sid=110042
   User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) 
 Gecko/20100101 Firefox/9.0.1
   X-ClickOnceSupport: ( .NET CLR 3.5.30729; .NET4.0E)

 Form variables:
   sid = 110042

 User Information:
   User alocaluser (id 2, org_id 1)

 Error notes:
   (none)

 Initial Request:
   Yes

 Error message:
   RHN::Exception: User '2' attempted to access proxy interface without 
 permission.
   Sniglets::Servers /usr/share/perl5/vendor_perl/Sniglets/Servers.pm 
 150 RHN::Exception::throw
   PXT::Parser /usr/share/perl5/vendor_perl/PXT/Parser.pm 160 
 Sniglets::Servers::proxy_entitlement_form
   PXT::Parser /usr/share/perl5/vendor_perl/PXT/Parser.pm 72 
 PXT::Parser::expand_tag
   PXT::ApacheHandler /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 
 500 PXT::Parser::expand_tags
   PXT::ApacheHandler /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 
 103 PXT::ApacheHandler::pxt_parse_data
   PXT::ApacheHandler /usr/share/perl5/vendor_perl/PXT/ApacheHandler.pm 
 103 (eval)
   main -e 0 PXT::ApacheHandler::handler
   main -e 0 (eval)
 
 My account alocaluser is an Organizational Administrator.

 Thinking that the error may be tied to Organizational Administrator 
 permission, I logged in with
 my user that is the Satellite Administrator.  I received the same 
 e-mail traceback error as above.

 The /var/log/httpd/error_log contains:

 [Mon Jan 16 09:41:39 2012] [error] Execution of 
 /var/www/html/network/systems/details/proxy.pxt
 failed at Mon Jan 16 

[Spacewalk-list] changing a label

2012-01-23 Thread Edward Perry
I was wondering  if there is a way of changing the label for a channel?

I typed  centos6-1-base-i386though my other channels are
centos6.1-updates-i386


is there any easy way of renaming this label?  Otherwise I'll just delete
and redo the channel
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list