[Spacewalk-list] deploy config files in symlinked directory

Jens Neu jens.neu at biotronik.com
Wed Jul 11 10:25:58 UTC 2012


> > Dear all,
> > 
> > i am observing some weird behavior with my Spacewalk 1.5 when
> > deploying config channels that include symlinks.
> > 
> > I have a config channel consisting of three items:
> > 
> > 1) dir: /opt/$USER/
> > 2) symlink: /usr/local/home/$USER -> /opt/$USER
> > 3) file: /usr/local/home/$USER/.foo
> > 
> > intentions and pathnames are out of scope. Sticking point is,
> > the channel includes a symlink as well as files that have the
> > symlink in their absolute path.
> > When I schedule a "deploy all" action on this, it fails with:
> > 
> > # rhn_check -vv
> > [...]
> > [Errno 2] No such file or directory
> > D: Sending back response ((6,), 'Fatal error in Python code
> > occured', {}) D: do_call packages.checkNeedUpdate ('rhnsd=1',)
> > {} D: local action status:  ((6,), 'Fatal error in Python code
> > occured', {}) D: rpcServer: Calling XMLRPC
> > registration.welcome_message Exception
> > exceptions.AttributeError: "'YumAction' object has no
> > attribute 'preconf'" in <bound method YumAction.__del__ of
> > <actions.packages.YumAction object at 0x8dbb790>> ignored
> > 
> > Funny thing is, when I split this in two "deploy selected"
> > actions with 1) and 2) first, and 3) afterwards, all works
> > well. But: the error also occurs not only on the initial,
> > first deploy, but also when all files deployed correctly
> > anyway. Worse, it breaks the working setup and leaves me with
> > something like this:
> > 
> > # cd /usr/local/home
> > # ls -la
> > lrwxrwxrwx  1 root root   12 Jul  4
> > 12:30 .rhn-cfg-tmp-18017-Lc9cJQ -> /opt/$USER/
> > #
> > 
> > Thoughts on this? Known limitation? Bug?
> > 
> > 
> > best regards from Berlin!
> > Jens Neu
> 
> Hello,
> Dimitar Yordanov checked this and he believes you are hitting
> this bug (or similar one):
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=627490
> 
> It was resolved in Spacewalk 1.6.
> 
> Regards,
> Jan
> 

I upgraded to Spacewalk 1.7 (1.7.3-1.el5), spacewalk client 1.7.14-1.el5 
and rhncfg 5.10.27-1.el5, unfortunately the behaviour is unchanged:
1.7.14-1.el5

[root at oracle home]# pwd
/usr/local/home
[root at oracle home]# ls -la
total 12
drwxr-xr-x  2 root root 4096 Jul 11 12:16 .
drwxr-xr-x 15 root root 4096 Jul 11 12:16 ..
lrwxrwxrwx  1 root root   11 Jul 11 12:16 .rhn-cfg-tmp-20608-S8vSWE -> 
/opt/oracle

[...]
{'config_channel': '0.5-global-db', 'username': '', 'encoding': '', 
'checksum': '', 'filetype': 'symlink', 'delim_start': '', 'modified': '', 
'symlink': '/opt/oracle', 'groupname': '', 'delim_end': '', 'selinux_ctx': 
'', 'filemode': '', 'file_contents': '', 'checksum_type': '', 'path': 
'/usr/local/home/oracle', 'revision': 1}]},){'cache_only': None}
[Errno 2] No such file or directory
D: Sending back response((6,), 'Fatal error in Python code occured', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
Loaded plugins: fastestmirror, rhnplugin
D: rpcServer: Calling XMLRPC up2date.listChannels
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
D: local action status: (0, 'rpm database not modified since last update 
(or package list recently updated)', {})
D: rpcServer: Calling XMLRPC registration.welcome_message




www.biotronik.com

BIOTRONIK SE & Co. KG
Woermannkehre 1, 12359 Berlin, Germany
Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRA 6501

Vertreten durch ihre Komplementärin:
BIOTRONIK MT SE
Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRB 118866 B
Geschäftsführende Direktoren: Christoph Böhmer, Dr. Werner Braun, Dr. 
Lothar Krings, Dr. Torsten Wolf

BIOTRONIK - A global manufacturer of advanced Cardiac Rhythm Management 
systems and Vascular Intervention devices. Quality, innovation, and 
reliability define BIOTRONIK and our growing success. We are innovators of 
technologies like the first wireless remote monitoring system - Home 
Monitoring®, Closed Loop Stimulation and coveted lead solutions as well as 
state-of-the-art stents, balloons and guide wires for coronary and 
peripheral indications. We highly invest in the development of drug 
eluting devices and are leading the industry with our drug eluting 
absorbable metal scaffold program.

This e-mail and the information it contains including attachments are 
confidential and meant only for use by the intended recipient(s); 
disclosure or copying is strictly prohibited. If you are not addressed, 
but in the possession of this e-mail, please notify the sender immediately 
and delete the document.





More information about the Spacewalk-list mailing list