domain name from id lookups return empty

Bug #1492843 reported by Richard Megginson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
Fix Released
High
Richard Megginson

Bug Description

When using the method `domain_name_from_id(id)`, sometimes the return value is `nil`. This function should never return `nil`. The domain should always exist for a given `id`.

Changed in puppet-keystone:
assignee: nobody → Richard Megginson (rmeggins)
Changed in puppet-keystone:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-keystone (master)

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

Changed in puppet-keystone:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (master)

Reviewed: https://review.openstack.org/221119
Committed: https://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=74f01da92f8de2fcb471ec5f9833ead1bff2dee1
Submitter: Jenkins
Branch: master

commit 74f01da92f8de2fcb471ec5f9833ead1bff2dee1
Author: Rich Megginson <email address hidden>
Date: Sat Sep 5 15:55:09 2015 -0600

    domain name from id lookups return empty

    If the given domain id is not available in the @domain_hash,
    look it up in Keystone and add it to the hash. Do not assume
    the @domain_hash can be populated once. It must take into
    account domains that are created later.
    This consolidates the various bits of code that reset the class
    variables in the provider superclass into spec_helper.rb - we must
    be consistent about resetting the variables to ensure the spec
    tests return consistent results.

    Closes-Bug: #1492843
    Change-Id: Ic475ca7f33c49784a0e5f4a432220cbf8b3ce635

Changed in puppet-keystone:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-keystone (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/222428

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (stable/kilo)

Reviewed: https://review.openstack.org/222428
Committed: https://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=31d519a86a24bb20b01a6251c3084ad57cd22564
Submitter: Jenkins
Branch: stable/kilo

commit 31d519a86a24bb20b01a6251c3084ad57cd22564
Author: Rich Megginson <email address hidden>
Date: Sat Sep 5 15:55:09 2015 -0600

    domain name from id lookups return empty

    If the given domain id is not available in the @domain_hash,
    look it up in Keystone and add it to the hash. Do not assume
    the @domain_hash can be populated once. It must take into
    account domains that are created later.
    This consolidates the various bits of code that reset the class
    variables in the provider superclass into spec_helper.rb - we must
    be consistent about resetting the variables to ensure the spec
    tests return consistent results.

    Closes-Bug: #1492843
    Change-Id: Ic475ca7f33c49784a0e5f4a432220cbf8b3ce635
    (cherry picked from commit 74f01da92f8de2fcb471ec5f9833ead1bff2dee1)

tags: added: in-stable-kilo
Changed in puppet-keystone:
status: Fix Committed → 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.