[openstack-dev] [Ceilometer][qa] Tenant isolation - IntegrityError exception
eglynn at redhat.com
Tue Nov 26 14:14:33 UTC 2013
Apologies for the delay in responding, I'm just getting to grips with
So the problem here is nothing to do with whether the tenant
exists in keystone, in fact creating an alarm with a completely
fictitious project_id will work just fine in general.
Rather it appears to be an artifact of how the alarm creation
logic was added to the sqlalchemy driver in such a way as to rely
on sqlalchemy session merge to create the corresponding entries
in the project & user tables.
Then subsequently a *later* migration was added to assert
foreign key constraints for those project & user IDs.
I'm no sqlalchemy expert, but I don't think session merge is a
reliable way to ensure creation of the corresponding rows in the
related tables in order to satisfy the foreign key constraints.
I've filed a bug and will propose a patch to explicitly create
the project & user IDs. This should address the intermittent
failure you're seeing.
----- Original Message -----
> still trying to get https://review.openstack.org/#/c/39237/ through the gate
> As per David Kranz's request, I am now handling client isolation, but about
> 50% of the time the tests fail because of an integrity error, see
> The tenant does get created in keystone and the ids do match up, so I have no
> clue what is causing this. Any ideas?
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
More information about the OpenStack-dev