← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1248037] Re: Duplicate delete the user_project_metadata filter with project_id

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => icehouse-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1248037

Title:
  Duplicate delete the user_project_metadata filter with project_id

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  When assignment backend is sql,duplicate delete the user_project_metadata filter with project_id.
  As follows:
  @sql.handle_conflicts(type='project')
      def delete_project(self, tenant_id):
          session = self.get_session()

          with session.begin():
              tenant_ref = self._get_project(session, tenant_id)

              q = session.query(UserProjectGrant)
              q = q.filter_by(project_id=tenant_id)
              q.delete(False)

              q = session.query(UserProjectGrant)
              q = q.filter_by(project_id=tenant_id)
              q.delete(False)

  No need to delete the data duplicate.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1248037/+subscriptions