Provide a default for OPENSTACK_IMAGE_BACKEND

Bug #1223427 reported by Julie Pichon
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Julie Pichon

Bug Description

The new OPENSTACK_IMAGE_BACKEND is defined in local_settings.py.example, which can cause confusion for users (such as people upgrading) who suddenly find the Format drop-down empty and cannot create new images.

I thin we should have a reasonable default defined elsewhere, e.g. in settings.py which can then be overridden as needed in the local_settings.py.

OPENSTACK_IMAGE_BACKEND = {
    'image_formats': [
        ('', ''),
        ('aki', _('AKI - Amazon Kernel Image')),
        ('ami', _('AMI - Amazon Machine Image')),
        ('ari', _('ARI - Amazon Ramdisk Image')),
        ('iso', _('ISO - Optical Disk Image')),
        ('qcow2', _('QCOW2 - QEMU Emulator')),
        ('raw', _('Raw')),
        ('vdi', _('VDI')),
        ('vhd', _('VHD')),
        ('vmdk', _('VMDK'))
    ]
}

It's more surprising to the user than the new SECURITY_GROUP_RULES setting, since this is something that used to work but now doesn't.

Julie Pichon (jpichon)
Changed in horizon:
milestone: none → havana-rc1
Revision history for this message
Julie Pichon (jpichon) wrote :

See also bug 1223317 for the related puppet-horizon bug (this problem was initially reported by users who deployed using the puppet module, which uses its own copy of local_settings.py at deployment time).

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Agree. It is better to have the default settings in a separate file from local_settings.py.

@jpich
Are you working on it? It is already targeted to Havana RC1.

Changed in horizon:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Julie Pichon (jpichon) wrote :

Yes, I will submit a patch.

Changed in horizon:
assignee: nobody → Julie Pichon (jpichon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

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

Reviewed: https://review.openstack.org/46045
Committed: http://github.com/openstack/horizon/commit/4609c7a9c265c1d413e5f369a5b32368d7e19a3d
Submitter: Jenkins
Branch: master

commit 4609c7a9c265c1d413e5f369a5b32368d7e19a3d
Author: Julie Pichon <email address hidden>
Date: Wed Sep 11 11:09:42 2013 +0100

    Provide a default for OPENSTACK_IMAGE_BACKEND

    The list of image formats has become customisable, but didn't have a
    default which can cause issues since it's a required field when
    creating a new image. Also document the setting.

    Additionally, mark OpenStack settings documentation as "(Partial)"
    until #1221115 is closed.

    Change-Id: I980c2d61bc9f9ac14fa39e5088c2ce03c48499b2
    Closes-Bug: #1223427

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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