Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scram build problems on afs with tmp softlinked to local dir #33698

Closed
slava77 opened this issue May 12, 2021 · 5 comments · Fixed by cms-sw/cmsdist#7033
Closed

scram build problems on afs with tmp softlinked to local dir #33698

slava77 opened this issue May 12, 2021 · 5 comments · Fixed by cms-sw/cmsdist#7033

Comments

@slava77
Copy link
Contributor

slava77 commented May 12, 2021

The following problem started happening in my build setup (here #33645 is tested, but it probably doesn't matter)

Traceback (most recent call last):
  File "/cvmfs/cms-ib.cern.ch/week0/share/lcg/SCRAMV1/V3_00_23/bin/scram.py", line 114, in <module>
    main()
  File "/cvmfs/cms-ib.cern.ch/week0/share/lcg/SCRAMV1/V3_00_23/bin/scram.py", line 109, in main
    if not execcommand(args, opts):
  File "/cvmfs/cms-ib.cern.ch/week0/share/lcg/SCRAMV1/V3_00_23/bin/scram.py", line 103, in execcommand
    return eval('scram_commands.cmd_%s' % cmds[0])(args, opts)
  File "/cvmfs/cms-ib.cern.ch/nweek-02680/share/lcg/SCRAMV1/V3_00_23/SCRAM/Core/CMD.py", line 28, in cmd_build
    return process(args, opts)
  File "/cvmfs/cms-ib.cern.ch/nweek-02680/share/lcg/SCRAMV1/V3_00_23/SCRAM/Core/Commands/build.py", line 402, in process
    dircache.write_gmake()
  File "/cvmfs/cms-ib.cern.ch/nweek-02680/share/lcg/SCRAMV1/V3_00_23/SCRAM/Core/Commands/build.py", line 337, in write_gmake
    self.dir_make()
  File "/cvmfs/cms-ib.cern.ch/nweek-02680/share/lcg/SCRAMV1/V3_00_23/SCRAM/Core/Commands/build.py", line 269, in dir_make
    self.buildrules.process(pkgclass.branch["template"], pkgclass, self.cache['DIRCACHE'])
  File "/myafspath/CMSSW_12_0_X_2021-05-11-1100-test33645/config/SCRAM/Plugins/BuildRules.py", line 70, in process
    rename(ofile, nfile)
OSError: [Errno 18] Invalid cross-device link: '/myafspath/CMSSW_12_0_X_2021-05-11-1100-test33645/.SCRAM/slc7_amd64_gcc900/MakeData/DirCache/src_RecoHGCal.mk' -> '/myafspath/CMSSW_12_0_X_2021-05-11-1100-test33645/tmp/slc7_amd64_gcc900/MakeData/DirCache/src_RecoHGCal.mk'

here /myafspath/CMSSW_12_0_X_2021-05-11-1100-test33645/tmp is a softlink to a local filesystem

I think that this is related to scram v3

@cmsbuild
Copy link
Contributor

A new Issue was created by @slava77 Slava Krutelyov.

@Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@slava77
Copy link
Contributor Author

slava77 commented May 12, 2021

assign core

@cmsbuild
Copy link
Contributor

New categories assigned: core

@Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@smuzaffar
Copy link
Contributor

cms-sw/cmsdist#7033 shoudl fix this issue

@smuzaffar
Copy link
Contributor

yes it is related to SCRAMV3. python os.rename(src, des) does not work if src and des are on different devices. I have updated scram to use shutils.move which works cross-devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants