error 500 when responsible user is selected when updating object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Alexander Lomski |
Bug Description
Detailed bug description:
Error 500 when responsible user is selected when updating object.
Steps to reproduce:
Update object when responsible user is created.
Expected results:
Update works.
Actual result:
It fails with 500 error:
Internal Server Error: /56/edit
Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
return self.dispatch(
File "/usr/lib/
return bound_func(*args, **kwargs)
File "/usr/lib/
return view_func(request, *args, **kwargs)
File "/usr/lib/
return func(self, *args2, **kwargs2)
File "./inventory/
return super(CRUDMixin, self).dispatch(
File "/usr/lib/
return handler(request, *args, **kwargs)
File "./inventory/
obj = form.save()
File "/usr/lib/
construct=
File "/usr/lib/
save_m2m()
File "/usr/lib/
f.save_
File "/usr/lib/
a
setattr(
File "/usr/lib/
manager.
File "/usr/lib/
self.
File "/usr/lib/
for obj_id in new_ids
File "/usr/lib/
self.
File "/usr/lib/
using=self.db)
File "/usr/lib/
return insert_
File "/usr/lib/
return query.get_
File "/usr/lib/
cursor.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
six.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
self.
File "/usr/lib/
raise errorclass, errorvalue
IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`racks`.`invent
ory_inventoryob
ser_id`) REFERENCES `auth_user` (`id`))')
Reproducibility:
Always.
Workaround:
Not adding responsible user.
Impact:
It hurts.
Description of the environment:
https:/
python-django-racks 0.1+git123-gc88afb1
tags: | added: area-pxetool |
information type: | Private → Public |
Changed in fuel: | |
importance: | Undecided → High |
assignee: | Fuel Infra Apps (fuel-infra-apps) → Alexander Lomski (aliaksandr-lomski) |
status: | New → Incomplete |
Sorry I can't reproduce this bug, can you provide more detailed steps.
What I have done:
- open editing object
- select user
- press save
Works fine.