Gorka Eguileor 6dbd08b491 Brocade: Fix AttributeError when raising exception
When we moved Brocade exceptions from cinder.exception to
cinder.zonemanager.drivers.broade.exception we missed one file,
brcd_rest_fc_zone_client, so when we use that file (setting
`fc_southbound_protocol = REST_HTTP`) if it tries to raise an exception
we end up seeing:

  AttributeError: module 'cinder.exception' has no attribute
  'BrocadeZoningRestException'

The CI didn't catch it because there are no unit tests for the
brcd_rest_fc_zone_client.py file.

This patch fixes the issue by changing the import so it gets the
exceptions from the Brocade file and it also adds some tests for the
first half (211 lines) of the code in the brcd_rest_fc_zone_client.py
file.

TrivialFix
Closes-Bug: #1866860
Change-Id: Idfdb8796d5f4b650aa762e54a189c9ab48f93d1a
2020-07-29 10:14:12 +02:00
2020-04-24 09:23:52 +02:00
2020-02-15 14:15:18 -06:00
2019-04-19 19:26:48 +00:00
2017-10-10 00:46:42 +00:00
2020-06-30 18:58:03 -04:00
2020-01-28 15:52:44 -05:00
2012-05-03 10:48:26 -07:00
2020-01-22 11:44:36 +00:00
2020-02-15 14:15:18 -06:00
2020-04-17 14:47:10 +02:00

OpenStack Cinder

image

OpenStack Cinder is a storage service for an open cloud computing service.

You can learn more about Cinder at:

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://opendev.org/openstack/cinder

If you'd like to contribute, please see the information in CONTRIBUTING.rst

You can raise bugs on Launchpad

Python client

Python Cinderclient

Description
OpenStack Block Storage (Cinder)
Readme 912 MiB
Languages
Python 99.7%
Smarty 0.3%