[PATCH] Recursively copy files before config test

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Max msuraev at sysmocom.de
Wed Apr 13 08:10:07 UTC 2016


Not directly - the error is not triggered from the code I've added. But
it could be that my code somehow changed/not changed metadata in some
corner case. I'm unable to reproduce this locally - is there way to get
file details from jenkins? Permission, owner, xattr etc from both target
and destination of the copy and upper folders?

On 04/13/2016 02:38 AM, Holger Freyther wrote:
>> On 07 Apr 2016, at 08:11, msuraev at sysmocom.de wrote:
>>
>> From: Max <msuraev at sysmocom.de>
>>
>> Copy all potentially necessary files (like includable configs) before
>> running config test.
> http://jenkins.osmocom.org/jenkins/job/osmo-pcu/731/label=linux_i386_debian_squeeze,sysmobts=no,sysmodsp=no/console
>
> Traceback (most recent call last):
>   File "/usr/local/bin/osmotestconfig.py", line 212, in <module>
>     confpath=confpath, verbose=args.verbose))
>   File "/usr/local/bin/osmotestconfig.py", line 169, in test_all_apps
>     errors |= test_config(app, config, tmpdir, verbose)
>   File "/usr/local/bin/osmotestconfig.py", line 34, in test_config
>     newconfig = copy_config(tmpdir, config)
>   File "/usr/local/bin/osmotestconfig.py", line 87, in copy_config
>     dir=dirname, prefix=prefix, delete=False)
>   File "/usr/lib/python2.6/tempfile.py", line 444, in NamedTemporaryFile
>     (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
>   File "/usr/lib/python2.6/tempfile.py", line 228, in _mkstemp_inner
>     fd = _os.open(file, flags, 0600)
> OSError: [Errno 13] Permission denied: 'writtenconfig/osmo-pcu.cfgayzRgv'
>
> is that related to your patch?
>
>
>

-- 
Max Suraev <msuraev at sysmocom.de> http://www.sysmocom.de/
======================================================================= 
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93 
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B 
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte 




More information about the OpenBSC mailing list