PowerStore volume attach fails when LUN is higher than 255

Solution Verified - Updated -

Issue

  • This error can be seen in cinder logs:
2024-08-19 11:11:49.282 147 DEBUG oslo.privsep.daemon [-] privsep: Exception during request[139622879339264]: Unexpected error while running command.
  Command: tee -a /sys/class/scsi_host/host11/scan
  Exit code: 1
  Stdout: '0 0 11974'
  Stderr: 'tee: /sys/class/scsi_host/host11/scan: Invalid argument\n' _process_cmd /usr/lib/python3.9/site-packages/oslo_privsep/daemon.py:490
  Traceback (most recent call last):
    File "/usr/lib/python3.9/site-packages/oslo_privsep/daemon.py", line 487, in _process_cmd
      ret = func(*f_args, **f_kwargs)
    File "/usr/lib/python3.9/site-packages/oslo_privsep/priv_context.py", line 255, in _wrap
      return func(*args, **kwargs)
    File "/usr/lib/python3.9/site-packages/os_brick/privileged/rootwrap.py", line 197, in execute_root
      return custom_execute(*cmd, shell=False, run_as_root=False, **kwargs)
    File "/usr/lib/python3.9/site-packages/os_brick/privileged/rootwrap.py", line 145, in custom_execute
      return putils.execute(on_execute=on_execute,
    File "/usr/lib/python3.9/site-packages/oslo_concurrency/processutils.py", line 438, in execute
      raise ProcessExecutionError(exit_code=_returncode,
  oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
  Command: tee -a /sys/class/scsi_host/host11/scan
  Exit code: 1
  Stdout: '0 0 11974'
  Stderr: 'tee: /sys/class/scsi_host/host11/scan: Invalid argument\n'
  • In the previous trace it was trying to use LUN 11974

Environment

  • Red Hat Openstack Platform 16.X
  • Red Hat Openstack Platform 17.X
  • Red Hat Openstack Platform 18.X
  • Host Bus Adapter
  • Emulex Drivers
  • Dell PowerStore

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