image import: 500 for web-download import-method

Bug #1750205 reported by Brian Rosmaita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Brian Rosmaita

Bug Description

This is in the log:

Feb 17 23:18:00 br-virtual-machine glance-api[22952]: ERROR glance.common.wsgi [None req-59d8c68b-8fc9-4b04-9215-6f64abd55532 demo demo] Caught error: no such option import_filtering_opts in group [DEFAULT]: NoSuchOptError: no such option import_filtering_opts in group [DEFAULT]

Pretty sure the problem is that when the uri validating function was moved to common.utils, the import filtering options are no longer guaranteed to be registered at the point when the request hits the ImagesController.

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

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

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

Reviewed: https://review.openstack.org/545649
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=156ba81c2fad2844af1ad21b24c771cf66522932
Submitter: Zuul
Branch: master

commit 156ba81c2fad2844af1ad21b24c771cf66522932
Author: Brian Rosmaita <email address hidden>
Date: Sat Feb 17 23:48:18 2018 -0500

    Fix config group not found error

    Two parts to this fix:

    * add a call to oslo.config.cfg.import_group so that the function
      that checks a uri against the configured white/blacklists can
      access them
    * move the location where these options are defined into the
      module's __init__ so that they can be imported without causing a
      circular import (which happens if you import them from their
      current location)

    Change-Id: I6363faba0c4cbe75e6e4d0cbf0209a62c10474ef
    Closes-bug: #1750205

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/546546

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/queens)

Reviewed: https://review.openstack.org/546546
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=1a3beb22874490e8d24750aa15e667b309db7a3c
Submitter: Zuul
Branch: stable/queens

commit 1a3beb22874490e8d24750aa15e667b309db7a3c
Author: Brian Rosmaita <email address hidden>
Date: Sat Feb 17 23:48:18 2018 -0500

    Fix config group not found error

    Two parts to this fix:

    * add a call to oslo.config.cfg.import_group so that the function
      that checks a uri against the configured white/blacklists can
      access them
    * move the location where these options are defined into the
      module's __init__ so that they can be imported without causing a
      circular import (which happens if you import them from their
      current location)

    Change-Id: I6363faba0c4cbe75e6e4d0cbf0209a62c10474ef
    Closes-bug: #1750205
    (cherry picked from commit 156ba81c2fad2844af1ad21b24c771cf66522932)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 16.0.0.0rc3

This issue was fixed in the openstack/glance 16.0.0.0rc3 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 17.0.0.0b1

This issue was fixed in the openstack/glance 17.0.0.0b1 development milestone.

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.