[Glance] Interoperable image import should be disabled by default on 3 node HA setup

Bug #1765439 reported by Pranali Deore on 2018-04-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alan Bishop

Bug Description

Glance added the support for interoperable image imports. Image uploads are done using a two-step approach: first uploading it to the Glance API using a local staging area, and then triggering an upload from the staging area to the storage backend.

In the case of an HA setup (ie with 3 controller nodes) this requires a shared consistent filesystem across the controller nodes. Otherwise it might happen that the image is uploaded to one node, and triggering the import is executed on a different node - where the image does not exist.

Therefore we need to disable this by default, thus operators need to enable it explicitly if they have a shared filesystem across the controller nodes (for example using NFS).

We need to do:
1. Set enabled_import_methods = web-download by default in glance-api.conf
2. Make this option changeable in t-h-t

Changed in tripleo:
assignee: nobody → Pranali Deore (pranali-deore)

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

Changed in tripleo:
status: New → In Progress
description: updated
description: updated

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

Changed in tripleo:
assignee: Pranali Deore (pranali-deore) → Alan Bishop (alan-bishop)
Changed in tripleo:
assignee: Alan Bishop (alan-bishop) → Pranali Deore (pranali-deore)
Changed in tripleo:
assignee: Pranali Deore (pranali-deore) → Alan Bishop (alan-bishop)

Reviewed: https://review.openstack.org/567667
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=31475839502059587af67ae05f11414a84f9400e
Submitter: Zuul
Branch: master

commit 31475839502059587af67ae05f11414a84f9400e
Author: Alan Bishop <email address hidden>
Date: Thu May 10 14:08:06 2018 -0400

    Add ability to control Glance's enabled_import_methods

    Add GlanceEnabledImportMethods parameter, and set the default value to
    restrict Glance from using its 'glance-direct' import method. The
    glance-direct method requires a special configuration when deployed in
    an HA environment, and that capability will be added in a later release.

    Closes-Bug: #1765439
    Depends-On: https://review.openstack.org/568366
    Change-Id: I7038601d7505a60df2a1fb7fd8db818efa105341

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

Other bug subscribers