Horizon default container name 'volumebackups' for volume backups could be invalid

Bug #1631930 reported by Paul Karikh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Paul Karikh

Bug Description

Currently Horizon uses 'volumebackups' name as a default name for container if user ignored thid field in CreateBackup form: https://github.com/openstack/horizon/blob/stable/newton/openstack_dashboard/dashboards/project/volumes/backups/forms.py#L46

And in some cases `volumebackups` could be wrong name. For example, if Ceph is used as a backend: https://github.com/openstack/cinder/blob/b67d13ef4b9ac7d0bba92250ac5a77c15d8e9e68/cinder/backup/drivers/ceph.py#L84

If Horizon passes wrong default value, Cinder will fail creation of backup with an error like this: `oslo_messaging.rpc.dispatcher ObjectNotFound: error opening pool 'volumebackups'`

And since Cinder is able to fill missing value with correct default name it is better to remove this Hardcode from Horizon side.

Paul Karikh (pkarikh)
Changed in horizon:
assignee: nobody → Paul Karikh (pkarikh)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/384466

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/newton)

Change abandoned by Paul Karikh (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/384466
Reason: Wrong branch.

Changed in horizon:
status: New → In Progress
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/384469

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

Reviewed: https://review.openstack.org/384469
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1d13a052468ef1b66d1c75f98f52cc356ba81365
Submitter: Jenkins
Branch: master

commit 1d13a052468ef1b66d1c75f98f52cc356ba81365
Author: Paul Karikh <email address hidden>
Date: Mon Oct 10 15:20:36 2016 +0300

    Remove hardcode of container_name in backups

    If user doesn't set container name
    for volume backup, Horizon sets default
    value 'volumebackups'. If Cinder is configured
    with different default value, this behaviour
    will cause an error.

    Since Cinder is able to handle case when
    container name for backup is not set,
    we should remove this hardcode from Horizon.

    Change-Id: Ib121ac1d38f11e967ef059de57a8198c5e890198
    Closes-Bug: #1631930

Changed in horizon:
status: In Progress → Fix Released
tags: added: newton-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/386300

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

Reviewed: https://review.openstack.org/386300
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=9d0473d403bb068ee49c112ce696feb5e6966fca
Submitter: Jenkins
Branch: stable/newton

commit 9d0473d403bb068ee49c112ce696feb5e6966fca
Author: Paul Karikh <email address hidden>
Date: Mon Oct 10 15:20:36 2016 +0300

    Remove hardcode of container_name in backups

    If user doesn't set container name
    for volume backup, Horizon sets default
    value 'volumebackups'. If Cinder is configured
    with different default value, this behaviour
    will cause an error.

    Since Cinder is able to handle case when
    container name for backup is not set,
    we should remove this hardcode from Horizon.

    Change-Id: Ib121ac1d38f11e967ef059de57a8198c5e890198
    Closes-Bug: #1631930
    (cherry picked from commit 1d13a052468ef1b66d1c75f98f52cc356ba81365)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 10.0.1

This issue was fixed in the openstack/horizon 10.0.1 release.

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

This issue was fixed in the openstack/horizon 11.0.0.0b1 development milestone.

Changed in horizon:
milestone: none → ocata-1
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 10.0.1

This issue was fixed in the openstack/horizon 10.0.1 release.

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.