New backend not work

Solution In Progress - Updated -

Issue

  • After we added a new backend to the cinder configuration and ran openstack overcloud deploy -e [...], the command cinder get-pools --detail does not show the new backend. Although the process to create the new volume type was executed according to 16.2 documentation third party storage, the creation of new volume finish with error state.

  • Here is the cinder configuration we provide to director:

# cinder-hitachi-config.yaml sample for Fibre Channel # 
parameter_defaults: 
  CinderEnableIscsiBackend: false
  CinderEnableRbdBackend: false
  CinderEnableNfsBackend: false
  NovaEnableRbdBackend: false
  CinderDefaultVolumeType: 'HDBE'
  ControllerExtraConfig: 
    cinder::config::cinder_config: 
      HDBE/volume_driver: 
        value: cinder.volume.drivers.hitachi.hbsd_fc.HBSDFCDriver 
      HDBE/hitachi_storage_id: 
        value: HIDDEN 
      HDBE/san_ip: 
        value: 10.10.10.10
      HDBE/san_api_port: 
        value: 23451
      HDBE/san_login: 
        value: username 
      HDBE/san_password: 
        value: password 
      HDBE/hitachi_pool: 
        value: 5 
      HDBE/hitachi_target_ports: 
        value: CL5-A,CL6-A 
      HDBE/driver_ssl_cert_verify: 
        value: False
      HDBE/volume_backend_name: 
        value: HDBE 

      SST03/volume_driver:
        value: cinder.volume.drivers.hitachi.hbsd.hbsd_fc.HBSDFCDriver
      SST03/hitachi_storage_id:
        value: HIDDEN
      SST03/san_ip:
        value: 10.10.10.10
      SST03/san_api_port:
        value: 23451
      SST03/san_login:
        value: username
      SST03/san_password:
        value: password
      SST03/hitachi_pool:
        value: 11
      SST03/hitachi_target_port:
        value:  CL5-A,CL6-A
      SST03/driver_ssl_cert_verify:
        value: False
      SST03/volume_backend_name:
        value: SST03

    cinder_user_enabled_backends: ['SST03','HDBE']
  • cinder get-pools --detail does not show the new backend:
+-----------------------------+----------------------------+
| Property                    | Value                      |
+-----------------------------+----------------------------+
| QoS_support                 | False                      |
| allocated_capacity_gb       | 8490                       |
| backend_state               | up                         |
| driver_version              | 2.0.0                      |
| filter_function             | None                       |
| free_capacity_gb            | 106156.189453125           |
| goodness_function           | None                       |
| max_over_subscription_ratio | 20.0                       |
| multiattach                 | True                       |
| name                        | hostgroup@HDBE#HDBE        |
| pool_name                   | HDBE                       |
| provisioned_capacity_gb     | 31750.154296875            |
| reserved_percentage         | 0                          |
| storage_protocol            | FC                         |
| thick_provisioning_support  | False                      |
| thin_provisioning_support   | True                       |
| timestamp                   | 2022-11-04T15:31:14.184786 |
| total_capacity_gb           | 109410.65625               |
| vendor_name                 | Hitachi                    |
| volume_backend_name         | HDBE                       |
+-----------------------------+----------------------------+
  • We see the following error in /var/log/containers/cinder/volume.log:
2022-11-14 15:16:14.935 62 INFO cinder.volume.manager [req-2470562b-d61a-441b-9370-38529b6f10b9 - - - - -] Starting volume driver HBSDFCDriver (2.0.0)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.drivers.hitachi.hbsd_utils [req-2470562b-d61a-441b-9370-38529b6f10b9 - - - - -] MSGID0601-E: A parameter is invalid. (hitachi_target_ports or hitachi_compute_target_ports)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager [req-2470562b-d61a-441b-9370-38529b6f10b9 - - - - -] Failed to initialize driver.: cinder.volume.drivers.hitachi.hbsd_utils.HBSDError: HBSD error occurred. A parameter is invalid. (hitachi_target_ports or hitachi_compute_target_ports)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager Traceback (most recent call last):
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/volume/manager.py", line 467, in _init_host
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     self.driver.do_setup(ctxt)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/utils.py", line 784, in trace_logging_wrapper
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     return f(*args, **kwargs)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/hitachi/hbsd_fc.py", line 170, in do_setup
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     self.common.do_setup(context)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/hitachi/hbsd_common.py", line 598, in do_setup
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     self.check_param()
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/hitachi/hbsd_rest.py", line 387, in check_param
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     super(HBSDREST, self).check_param()
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager   File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/hitachi/hbsd_common.py", line 469, in check_param
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager     raise utils.HBSDError(msg)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager cinder.volume.drivers.hitachi.hbsd_utils.HBSDError: HBSD error occurred. A parameter is invalid. (hitachi_target_ports or hitachi_compute_target_ports)
2022-11-14 15:16:14.936 62 ERROR cinder.volume.manager

Environment

  • Red Hat OpenStack Platform 16.2 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content