← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1262223] [NEW] Wrap call to extension_supported on Launch Instance with try/except

 

Public bug reported:


https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#L142

        if api.nova.extension_supported("BlockDeviceMappingV2Boot",
                                        request):
            source_type_choices.append(("volume_image_id",
                    _("Boot from image (creates a new volume).")))
        source_type_choices.append(("volume_snapshot_id",


extension_supported call can fail, we need to wrap this with try-except

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1262223

Title:
  Wrap call to extension_supported on Launch Instance with try/except

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#L142

          if api.nova.extension_supported("BlockDeviceMappingV2Boot",
                                          request):
              source_type_choices.append(("volume_image_id",
                      _("Boot from image (creates a new volume).")))
          source_type_choices.append(("volume_snapshot_id",

  
  extension_supported call can fail, we need to wrap this with try-except

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1262223/+subscriptions


Follow ups

References