[Bug 857610] New: osc up/co fails in osc/core.py
https://bugzilla.novell.com/show_bug.cgi?id=857610 https://bugzilla.novell.com/show_bug.cgi?id=857610#c0 Summary: osc up/co fails in osc/core.py Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: novel_ns@linhard.dk QAContact: adrian@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 When trying to check out or update a package from my home project (home:torhans) osc fail with Invalid argument for os.utime Reproducible: Always Steps to Reproduce: 1. osc up <package> 2. 3. Actual Results: torhans@linux-u6oj:~/remote/osc/home:torhans/salome-sources> osc up Traceback (most recent call last): File "/usr/bin/osc", line 26, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 60, in run return prg.main(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main return self.cmd(args) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 484, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1214, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 4462, in do_update p.update(rev, opts.server_side_source_service_files, opts.limit_size) File "/usr/lib/python2.7/site-packages/osc/core.py", line 2062, in update self.__update(kept, added, deleted, services, fm, root.get('rev')) File "/usr/lib/python2.7/site-packages/osc/core.py", line 2126, in __update self.updatefile(f.name, rev, f.mtime) File "/usr/lib/python2.7/site-packages/osc/core.py", line 1456, in updatefile revision=revision, progress_obj=self.progress_obj, mtime=mtime, meta=self.meta) File "/usr/lib/python2.7/site-packages/osc/core.py", line 4056, in get_source_file download(u, targetfilename, progress_obj, mtime) File "/usr/lib/python2.7/site-packages/osc/core.py", line 4046, in download os.utime(filename, (-1, mtime)) OSError: [Errno 22] Invalid argument: '/home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec' torhans@linux-u6oj:~/remote/osc/home:torhans/salome-sources> ls '/home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec' /home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec torhans@linux-u6oj:~/remote/osc/home:torhans/salome-sources> Expected Results: package being updated ~/remote is a nfs-share -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857610 https://bugzilla.novell.com/show_bug.cgi?id=857610#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |suse-tux@gmx.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857610 https://bugzilla.novell.com/show_bug.cgi?id=857610#c1 --- Comment #1 from Marcus Hüwe <suse-tux@gmx.de> 2014-01-07 08:42:31 UTC --- Hmm this looks strange. Can you run the following python script: python -c "import os; os.utime('/home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec', (-1, 1389051666))" If this fails, can you also try to run: python -c "import os; os.utime('/home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec', (-1, -1))" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857610 https://bugzilla.novell.com/show_bug.cgi?id=857610#c2 --- Comment #2 from Torben Mikael Hansen <novel_ns@linhard.dk> 2014-01-07 22:23:39 UTC --- Thanks, Well both fails with the same error as above also $touch '/home/torhans/remote/osc/home:torhans/salome-sources/.osc/salome-sources.spec' has no effect, while $touch local-file does give the expected result. I guess it is a nfs problem, but whether server (debian) or client (openSuSE) I don't know. Leads would be appreciated, but otherwise I'll investigate further and file a new and more appropriate bug-report -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=857610 https://bugzilla.novell.com/show_bug.cgi?id=857610#c3 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Marcus Hüwe <suse-tux@gmx.de> 2014-01-09 13:18:46 UTC --- I just added a workaround to osc in commit 9a8679a21e198beff7a2d8b66b305cf1912f14c4 because osc itself does not depend on a correct utime. Now osc silently ignores the EINVAL. So I think we can close this bug (if not please reopen). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com