yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47576
[Bug 1554184] [NEW] Attaching Volume fails due to unsupported operand type
Public bug reported:
When attempting to attach any volume to an instance using either manage
attachments, or create new instance receive error indicating TypeError:
unsupported operand type(s) for &: 'unicode' and 'int'
Steps to Reproduce:
Create a volume in cinder (any volume)
Attempt to attach to instance/launch instance with volume attached
Expected Results:
Volume to be attached to instance
Actual Results:
Volume shows as available in gui, or if starting instance, instance
fails to start
Running OpenStack Mikata
openstack-nova-api-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-compute-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-scheduler-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-console-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-conductor-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-cert-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-novncproxy-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-common-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
2016-03-07 13:52:00.705 11526 DEBUG oslo_concurrency.processutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m session execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:326
2016-03-07 13:52:00.843 11526 DEBUG oslo_concurrency.processutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] CMD "sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m session" returned: 0 in 0.138s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:356
2016-03-07 13:52:00.844 11526 DEBUG os_brick.initiator.connector [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] iscsiadm ['-m', 'session']: stdout=tcp: [7] 192.168.20.5:3260,0 iqn.1994-05.com.redhat:Test (non-flash)
stderr= _run_iscsiadm_bare /usr/lib/python2.7/site-packages/os_brick/initiator/connector.py:1289
2016-03-07 13:52:00.845 11526 DEBUG oslo_concurrency.lockutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] Lock "connect_volume" released by "os_brick.initiator.connector.connect_volume" :: held 0.294s inner /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:282
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] [instance: 452ed662-df79-4cba-a103-52bb06854820] Driver failed to attach volume da83c95f-fbbf-4234-bc4d-2029094f8b4b at /dev/vdb
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] Traceback (most recent call last):
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 279, in attach
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] device_type=self['device_type'], encryption=encryption)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1333, in attach_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._connect_volume(connection_info, disk_info)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1274, in _connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] vol_driver.connect_volume(connection_info, disk_info)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/iscsi.py", line 87, in connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] device_info = self.connector.connect_volume(connection_info['data'])
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] return f(*args, **kwargs)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 861, in connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] connection_properties)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 673, in _get_potential_volume_paths
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] host_devices = self._get_device_path(props)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 1006, in _get_device_path
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._get_all_targets(connection_properties)]
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 1000, in _munge_portal
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._linuxscsi.process_lun_id(lun))
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 420, in process_lun_id
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] processed = self._format_lun_id(lun_ids)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 428, in _format_lun_id
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] (lun_id & 0xffff, lun_id >> 16 & 0xffff))
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] TypeError: unsupported operand type(s) for &: 'unicode' and 'int'
** Affects: nova
Importance: Undecided
Status: New
** Tags: cinder nova
--
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/1554184
Title:
Attaching Volume fails due to unsupported operand type
Status in OpenStack Compute (nova):
New
Bug description:
When attempting to attach any volume to an instance using either
manage attachments, or create new instance receive error indicating
TypeError: unsupported operand type(s) for &: 'unicode' and 'int'
Steps to Reproduce:
Create a volume in cinder (any volume)
Attempt to attach to instance/launch instance with volume attached
Expected Results:
Volume to be attached to instance
Actual Results:
Volume shows as available in gui, or if starting instance, instance
fails to start
Running OpenStack Mikata
openstack-nova-api-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-compute-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-scheduler-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-console-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-conductor-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-cert-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-novncproxy-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
openstack-nova-common-13.0.0.0b4-0.20160304162843.c5a45a2.el7.centos.noarch
2016-03-07 13:52:00.705 11526 DEBUG oslo_concurrency.processutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m session execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:326
2016-03-07 13:52:00.843 11526 DEBUG oslo_concurrency.processutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] CMD "sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m session" returned: 0 in 0.138s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:356
2016-03-07 13:52:00.844 11526 DEBUG os_brick.initiator.connector [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] iscsiadm ['-m', 'session']: stdout=tcp: [7] 192.168.20.5:3260,0 iqn.1994-05.com.redhat:Test (non-flash)
stderr= _run_iscsiadm_bare /usr/lib/python2.7/site-packages/os_brick/initiator/connector.py:1289
2016-03-07 13:52:00.845 11526 DEBUG oslo_concurrency.lockutils [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] Lock "connect_volume" released by "os_brick.initiator.connector.connect_volume" :: held 0.294s inner /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:282
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [req-be5be823-3622-47c8-a375-2c0efb6a2a1d cefa991623654a068fc3f230d0e1c780 25c1958ebd094cb5ab382929665f8b50 - - -] [instance: 452ed662-df79-4cba-a103-52bb06854820] Driver failed to attach volume da83c95f-fbbf-4234-bc4d-2029094f8b4b at /dev/vdb
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] Traceback (most recent call last):
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 279, in attach
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] device_type=self['device_type'], encryption=encryption)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1333, in attach_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._connect_volume(connection_info, disk_info)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1274, in _connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] vol_driver.connect_volume(connection_info, disk_info)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/iscsi.py", line 87, in connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] device_info = self.connector.connect_volume(connection_info['data'])
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] return f(*args, **kwargs)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 861, in connect_volume
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] connection_properties)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 673, in _get_potential_volume_paths
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] host_devices = self._get_device_path(props)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 1006, in _get_device_path
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._get_all_targets(connection_properties)]
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connector.py", line 1000, in _munge_portal
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] self._linuxscsi.process_lun_id(lun))
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 420, in process_lun_id
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] processed = self._format_lun_id(lun_ids)
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 428, in _format_lun_id
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] (lun_id & 0xffff, lun_id >> 16 & 0xffff))
2016-03-07 13:52:00.846 11526 ERROR nova.virt.block_device [instance: 452ed662-df79-4cba-a103-52bb06854820] TypeError: unsupported operand type(s) for &: 'unicode' and 'int'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1554184/+subscriptions
Follow ups