narval #2060967 If narval user already exists add_cube('narval') crashes [open]

Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/cubicweb/server/migractions.py", line 649, in cmd_add_cube
  self.cmd_add_cubes( (cube,), update_database)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/migractions.py", line 680, in cmd_add_cubes
  self.cmd_exec_event_script('precreate', cube)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/migractions.py", line 375, in cmd_exec_event_script
  return self.cmd_process_script(apc, funcname, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/migractions.py", line 153, in cmd_process_script
  migrscript, funcname, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/migration.py", line 346, in cmd_process_script
  execfile(migrscript, scriptlocals)
File "/usr/share/cubicweb/cubes/narval/migration/precreate.py", line 2, in <module>
  create_entity('CWUser', login=_('narval'), upassword='narval0')
File "/usr/lib/python2.6/dist-packages/cubicweb/server/migractions.py", line 1422, in cmd_create_entity
  entity = self._cw.create_entity(etype, **kwargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/req.py", line 143, in create_entity
  return cls.cw_instantiate(self.execute, **kwargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/entity.py", line 325, in cw_instantiate
  created = execute(rql, qargs).get_entity(0, 0)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/session.py", line 911, in execute
  rset = self._execute(self, rql, kwargs, build_descr)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 731, in execute
  results = plan.execute()
File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 202, in execute
  result = step.execute()
File "/usr/lib/python2.6/dist-packages/cubicweb/server/ssplanner.py", line 507, in execute
  result = self.plan.insert_entity_defs()
File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 553, in insert_entity_defs
  for edef in row])
File "/usr/lib/python2.6/dist-packages/cubicweb/server/repository.py", line 1275, in glob_add_entity
  self.hm.call_hooks('before_add_entity', session, entity=entity)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/hook.py", line 415, in call_hooks
  registry.call_hooks(event, session, **kwargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/hook.py", line 337, in call_hooks
  hook()
File "/usr/lib/python2.6/dist-packages/cubicweb/hooks/integrity.py", line 236, in __call__
  raise ValidationError(entity.eid, {qname: msg % val})
ValidationError: 1476 (login-subject): the value "narval" is already used, use another one
prioritynormal
typebug
done in<not specified>
closed by<not specified>