IBMi LPAR provisioning failed

Bug #1769919 reported by Vlad Sorokin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-powervm
Fix Released
Undecided
Taylor Jakobson

Bug Description

Got the following error when creating the IBMi VM on the nova-powervm with https://review.openstack.org/#/c/566420/ patch installed:

2018-05-07 16:40:12.507 48530 INFO nova.virt.block_device [req-f33915e6-2f76-40ef-b428-d73
e2acb5ee3 00b63e516b6043fbab2ec87a976bf70c 86d919dd7c984631aefd9dddb828a5bc - default defa
ult] [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] Booting with blank volume at /dev/sd
a
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [req-1c0061fa-bf66-45c3-b1f0-bdb5
e5cf5ea8 49a5562df86f4952a274e7deebaffc68 b57ded455d3b4e458aab759dcfa6836b - default defau
lt] [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] Instance failed block device setup: T
ypeError: cannot concatenate 'str' and 'VIOS' objects
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] Traceback (most recent call last):
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 15
79, in _prep_block_device
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] wait_func=self._await_block_device_map_created)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line
823, in attach_block_devices
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] _log_and_attach(device)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line
820, in _log_and_attach
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] bdm.attach(*attach_args, **attach_kwargs)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line
716, in attach
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] context, instance, volume_api, virt_driver)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-969
4-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line
46, in wrapped
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] ret_val = method(obj, context, *args, **kwargs)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 613, in attach
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] virt_driver, do_driver_attach)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 277, in inner
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] return f(*args, **kwargs)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 610, in _do_locked_attach
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] self._do_attach(*args, **_kwargs)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 586, in _do_attach
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] connector = virt_driver.get_volume_connector(instance)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/local/lib/python2.7/dist-packages/nova_powervm/virt/powervm/driver.py", line 1106, in get_volume_connector
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] initiator_dict = iscsi.get_iscsi_initiators(self.adapter)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/local/lib/python2.7/dist-packages/nova_powervm/virt/powervm/volume/iscsi.py", line 88, in get_iscsi_initiators
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] discover_initiator(vios_id)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] File "/usr/local/lib/python2.7/dist-packages/nova_powervm/virt/powervm/volume/iscsi.py", line 67, in discover_initiator
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] @lockutils.synchronized('inititator-lookup-' + vios_id)
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] TypeError: cannot concatenate 'str' and 'VIOS' objects
2018-05-07 16:40:18.354 48530 ERROR nova.compute.manager [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f]
2018-05-07 16:40:18.638 48530 ERROR nova.compute.manager [req-1c0061fa-bf66-45c3-b1f0-bdb5e5cf5ea8 49a5562df86f4952a274e7deebaffc68 b57ded455d3b4e458aab759dcfa6836b - default default] [instance: 961bbd1f-7e2a-49c6-9694-d89e900c622f] Build of instance 961bbd1f-7e2a-49c6-9694-d89e900c622f aborted: cannot concatenate 'str' and 'VIOS' objects: BuildAbortException: Build of instance 961bbd1f-7e2a-49c6-9694-d89e900c622f aborted: cannot concatenate 'str' and 'VIOS' objects

Changed in nova-powervm:
assignee: nobody → Taylor Jakobson (tjakobs)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-powervm (master)

Fix proposed to branch: master
Review: https://review.openstack.org/566955

Changed in nova-powervm:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-powervm (master)

Reviewed: https://review.openstack.org/566955
Committed: https://git.openstack.org/cgit/openstack/nova-powervm/commit/?id=21f54185c6b1a51d22f154f1c3279d51ad2b77ae
Submitter: Zuul
Branch: master

commit 21f54185c6b1a51d22f154f1c3279d51ad2b77ae
Author: Taylor Jakobson <email address hidden>
Date: Tue May 8 12:24:47 2018 -0500

    Properly set vios_ids when discovering initiator

    If vios_ids were not passed to discover_initiator, they get set to
    a list of vioses instead of a list of the ids.

    Change-Id: If4e2329022f4fb9b81c7b64238defc256bc00f66
    Closes-bug: 1769919

Changed in nova-powervm:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova-powervm 7.0.0.0b2

This issue was fixed in the openstack/nova-powervm 7.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.