← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1031807] Re: nova.volume.san.HpSanISCSIDriver can't ssh to HP/Lefthand Units

 

** Changed in: cinder
       Status: Incomplete => Invalid

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

Title:
  nova.volume.san.HpSanISCSIDriver can't ssh to HP/Lefthand Units

Status in Cinder:
  Invalid
Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  HP/Lefthand storage requires password-interactive authentication. (The
  Windows command-line tool can generate an encrypted hash of the user-
  password, but even with that there is no provision for saving a public
  key to the SAN.)

  There are several workarounds in various places on the net for faking keyboard-interactive with paramiko. Without a workaround, any attempt to create or remove a volume results in:
  2012-08-01 10:25:53 TRACE nova.rpc.amqp BadAuthenticationType: Bad authentication type (allowed_types=['publickey', 'keyboard-interactive'])

  Full trace:
  2012-08-01 10:25:53 INFO nova.volume.manager [req-d03338a9-9115-48a3-8dfc-35cdfcdc15a7 3bf04474f3294b319ace534f930939b0 1d0e530882654962aed9ae9fd122c178] volume volume-00000002: creating
  2012-08-01 10:25:53 DEBUG nova.volume.manager [req-d03338a9-9115-48a3-8dfc-35cdfcdc15a7 3bf04474f3294b319ace534f930939b0 1d0e530882654962aed9ae9fd122c178] volume volume-00000002: creating lv of size 10G from (pid=2799) create_volume /usr/lib/python2.7/dist-packages/nova/volume/manager.py:120
  2012-08-01 10:25:53 ERROR nova.rpc.amqp [req-d03338a9-9115-48a3-8dfc-35cdfcdc15a7 3bf04474f3294b319ace534f930939b0 1d0e530882654962aed9ae9fd122c178] Exception during message handling
  2012-08-01 10:25:53 TRACE nova.rpc.amqp Traceback (most recent call last):
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, **node_args)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 138, in create_volume
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     volume_ref['id'], {'status': 'error'})
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     self.gen.next()
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 122, in create_volume
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     model_update = self.driver.create_volume(volume_ref)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/san.py", line 565, in create_volume
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     self._cliq_run_xml("createVolume", cliq_args)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/san.py", line 450, in _cliq_run_xml
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     (out, _err) = self._cliq_run(verb, cliq_args)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/san.py", line 445, in _cliq_run
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     return self._run_ssh(cmd)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/san.py", line 126, in _run_ssh
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     ssh = self._connect_to_ssh()
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/volume/san.py", line 103, in _connect_to_ssh
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     password=FLAGS.san_password)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 332, in connect
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     self._auth(username, password, pkey, key_filenames, allow_agent, look_for_keys)
  2012-08-01 10:25:53 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 493, in _auth
  2012-08-01 10:25:53 TRACE nova.rpc.amqp     raise saved_exception
  2012-08-01 10:25:53 TRACE nova.rpc.amqp BadAuthenticationType: Bad authentication type (allowed_types=['publickey', 'keyboard-interactive'])

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