Blazar doesn't populate lease user_id

Bug #1709103 reported by Pierre Riteau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
High
Pierre Riteau

Bug Description

Blazar creates leases with the user_id field in the database set to NULL. This results in user_id being displayed as blank in CLI output.

Pierre Riteau (priteau)
Changed in blazar:
milestone: none → 0.4.0
assignee: nobody → Pierre Riteau (priteau)
importance: Undecided → High
Pierre Riteau (priteau)
Changed in blazar:
milestone: 0.4.0 → 0.3.0
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to blazar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/494113

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to blazar (master)

Reviewed: https://review.openstack.org/494113
Committed: https://git.openstack.org/cgit/openstack/blazar/commit/?id=9f832e13fbf83919f5ef95f37d984ebbb53de910
Submitter: Jenkins
Branch: master

commit 9f832e13fbf83919f5ef95f37d984ebbb53de910
Author: Pierre Riteau <email address hidden>
Date: Wed Aug 16 09:25:45 2017 +0100

    Set user_id when creating leases

    The user_id field in leases is set from ctx.user_id, which is always
    None because it is not defined in trusts.create_ctx_from_trust().
    Nevertheless, we cannot use this value since we are in the trustee
    context, which is the blazar user.

    This patch modifies the API handler so that the real user_id is included
    in the lease_values dict passed to create_lease(). Ideally, the context
    would be extended to include a field referring to the trustor user.

    Change-Id: If0ee6efcd30dc56dfd78fbfe566517a8d8aa6ba7
    Closes-Bug: #1709103

Changed in blazar:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.