3^3: Pilot3/python3/v7r3

10 views
Skip to first unread message

Daniela Bauer

unread,
Oct 26, 2021, 8:33:50 AM10/26/21
to diracgrid-forum
Hi All,

This might be just one of my "what have I done wrong now" questions.
I have a preprod server with a freshly installed v7.3.5 release.  
I have set
Operations/GridPP/Pilot/Version to v7.3.5
and
Systems/WorkloadManagement/Devel/Agents/SiteDirector
Pilot3=True
Python3Pilots=True

The pilot are submitted, but fail on the nodes with the error below:
WARNING: dirac 7.3.5 does not provide the extra 'pilot'

Traceback (most recent call last):
  File "dirac-pilot.py", line 71, in <module>
    command.execute()
  File "/srv/localstage/condor/dir_69927/DIRAC_Vpuv4Kpilot/pilotCommands.py", line 458, in execute
    if LooseVersion(self.releaseVersion) >= self.cfgOptionDIRACVersion:
  File "/usr/lib64/python2.7/distutils/version.py", line 296, in __cmp__
    return cmp(self.version, other.version)
AttributeError: LooseVersion instance has no attribute 'version'

Does anyone know what happened here (beyond the obvious) and what I could do about it ?
As a bonus point: I tried a different site this morning, got the same error, but the WARNING changed to:
WARNING: dirac 7.3.7 does not provide the extra 'pilot'
(note the version number!) even though I didn't do any updates on my server.

Daniela

Chris Burr

unread,
Oct 26, 2021, 8:47:50 AM10/26/21
to Daniela Bauer, diracgrid-forum
Hi Daniela,

The only way that I can think of to trigger this is that
self.cfgOptionDIRACVersion is LooseVersion(""), i.e.

>>> LooseVersion("v7.3.5") >= LooseVersion("")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/distutils/version.py", line 296, in __cmp__
return cmp(self.version, other.version)
AttributeError: LooseVersion instance has no attribute 'version'

That seems to be impossible in the vanilla pilot files but perhaps
you're overriding something in GridPP?

https://github.com/DIRACGrid/Pilot/blob/master/Pilot/pilotTools.py#L380-L394

Cheers,

Chris
> --
> You received this message because you are subscribed to the Google
> Groups "diracgrid-forum" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to diracgrid-for...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/diracgrid-forum/48709653-7f8a-4fb8-b2b8-a8cbd464ab34n%40googlegroups.com
> [1].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/diracgrid-forum/48709653-7f8a-4fb8-b2b8-a8cbd464ab34n%40googlegroups.com?utm_medium=email&utm_source=footer

Daniela Bauer

unread,
Oct 26, 2021, 10:47:55 AM10/26/21
to Chris Burr, diracgrid-forum
So, the hint was in the 'why  did the DIRAC version change' when I didn't change it.
I had forgotten to set the SaveDirectory location in the PilotSyncAgent (the config had been inherited from the previous v7r1 install). Not being able to get the pilot.json DIRAC then falls back to get the latest and greatest version of cvmfs, but seemingly without the correct configuration servers.
Not sure that fallback is a good idea, but at least the rest seems to work now. 

Cheers,
Daniela
Reply all
Reply to author
Forward
0 new messages