iceberg-project / ICEBERG-middleware

This repo contains the ICEBERG middleware as it is agreed by the members of the ICEBERG project.
MIT License
2 stars 1 forks source link

Generating session ID's error (unknown pattern in template) #27

Closed AymenFJA closed 4 years ago

AymenFJA commented 4 years ago

Hello All,

During the integration process of the penguins use case with the middlewaree, i have faced the following error :

Traceback (most recent call last):
  File "/home/aymen/iceberg/bin/iceberg", line 20, in <module>
    mode=ru.ID_PRIVATE, namespace='seals'),
  File "/home/aymen/iceberg/local/lib/python2.7/site-packages/radical/utils/ids.py", line 188, in generate_id
    return _generate_id(template, prefix, namespace)
  File "/home/aymen/iceberg/local/lib/python2.7/site-packages/radical/utils/ids.py", line 272, in _generate_id
    raise ValueError('unknown pattern in template (%s)' % template)
ValueError: unknown pattern in template (%(prefix)s.%(host)s.%(user)s.%(days)06d.%(day_counter)04d)

My environment information :

  python               : 2.7.12
  pythonpath           : 
  virtualenv           : /home/aymen/iceberg

  radical.entk         : 0.72.0
  radical.pilot        : 0.73.1
  radical.saga         : 0.72.1
  radical.utils        : 0.72.0

I have proposed a small fix under the feature/penguins branch here if that would be OK.

bspitzbart commented 4 years ago

Do you need: exec_obj = Penguins(name = ru.generate_id('penguins.search', mode = ru.ID_PRIVATE, namespace = 'penguins'), or more generally exec_obj = Seals(name=ru.generate_id('penguins.%(item_counter)04d', mode=ru.ID_PRIVATE, namespace='penguins'),

Just a guess, based on seals.

iparask commented 4 years ago

Check middleware issue by Aymen

iparask commented 4 years ago

Check middleware issue by Aymen

AymenFJA commented 4 years ago

This is issue is solved.