PortBindingFailed while creating Openstack VM

asked 2019-01-21 11:24:46 -0600

Vysakh-SN gravatar image

updated 2019-01-21 23:50:41 -0600

I am facing error while creating VM in Openstack dashboard. The compute log has this entry:

WARNING os_brick.initiator.connectors.iscsi [req-dfef7348-e2be-4467-865e-c98e1bd35482 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Couldn't find iSCSI nodes because iscsiadm err: iscsiadm: No records found : PortBindingFailed: Binding failed for port 2057384c-c7c0-476b-8f01-f8c560bbe530, please check neutron logs for more information.

No errors are logged in neutron for troubleshooting. Any idea where to check and how to solve this?

Edited with Cinder logs (end to end - VM creation to the error scenario):

2019-01-22 11:15:34.542 23749 WARNING stevedore.named [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Could not load cinder.keymgr.conf_key_mgr.ConfKeyManager

2019-01-22 11:15:34.545 23749 WARNING castellan.key_manager [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Deprecation Warning : cinder.keymgr.conf_key_mgr.ConfKeyManager is not a stevedore based driver, trying to load it as a class: NoMatches: No 'castellan.drivers' driver found, looking for 'cinder.keymgr.conf_key_mgr.ConfKeyManager'

2019-01-22 11:15:36.638 23749 INFO cinder.volume.flows.manager.create_volume [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Volume e4f36128-67ee-4b27-886e-99ebe9866895: being created as image with specification: {'status': u'creating', 'image_location': (None, None), 'volume_size': 20, 'volume_name': u'volume-e4f36128-67ee-4b27-886e-99ebe9866895', 'image_id': u'93aba14e-026d-4264-a1a0-bd499bed0195', 'image_service': <cinder.image.glance.glanceimageservice object="" at="" 0x7f915640df50="">, 'image_meta': {u'status': u'active', u'file': u'/v2/images/93aba14e-026d-4264-a1a0-bd499bed0195/file', u'id': u'93aba14e-026d-4264-a1a0-bd499bed0195', u'name': u'ubuntu', u'tags': [], u'container_format': u'bare', u'created_at': datetime.datetime(2018, 12, 17, 8, 36, 47, tzinfo=<iso8601.utc>), u'disk_format': u'qcow2', u'updated_at': datetime.datetime(2018, 12, 17, 8, 37, 11, tzinfo=<iso8601.utc>), u'visibility': u'public', u'os_hash_algo': u'sha512', u'owner': u'dc0a7d19472f4c73aab4c22e71b5d0e9', u'protected': False, u'os_hash_value': u'36e1a95e4282429f87b8d93ef08bb473a7cb17782b4da5ee48cc62200ba01f4ce7615a435a2f4ad7f4aa2749ac2ef6bd36811c0cbe65654259d38ad6a79b741c', u'min_ram': 0, u'checksum': u'640e4e3929648ccdc204870f28abdc96', u'min_disk': 0, u'os_hidden': False, u'virtual_size': None, 'properties': {}, u'size': 297009152}}

2019-01-22 11:15:39.617 23749 INFO cinder.image.image_utils [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Image download 283.00 MB at 95.10 MB/s

2019-01-22 11:16:28.517 23749 INFO cinder.image.image_utils [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Converted 2252.00 MB image at 51.62 MB/s

2019-01-22 11:16:28.752 23749 INFO cinder.volume.flows.manager.create_volume [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Volume volume-e4f36128-67ee-4b27-886e-99ebe9866895 (e4f36128-67ee-4b27-886e-99ebe9866895): created successfully

2019-01-22 11:16:28.779 23749 INFO cinder.volume.manager [req-07e4d0dc-31eb-4a92-a334-ad7df0174299 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Created volume successfully.

2019-01-22 11:16:30.451 23749 INFO cinder.volume.targets.lio [req-b4ba09b0-3812-4029-a32a-ef1fe79d9b7a 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Creating iscsi_target for volume: volume-e4f36128-67ee-4b27-886e-99ebe9866895

2019-01-22 11:16:35.629 23749 INFO cinder.volume.manager [req-b4ba09b0-3812-4029-a32a-ef1fe79d9b7a 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Initialize volume connection completed successfully.

2019-01-22 11:16:35.942 23749 INFO cinder.volume.manager [req-e281e398-30a0-4371-99cf-2201fa40d6a6 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Attaching volume e4f36128-67ee-4b27-886e-99ebe9866895 to instance 7927206f-200e-4df3-a899-0244dd70ca3e at mountpoint /dev/vda on host None.

2019-01-22 11:16:36.099 23749 INFO cinder.volume.manager [req-e281e398-30a0-4371-99cf-2201fa40d6a6 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Attach volume completed successfully.

2019-01-22 11:16:40.821 23749 INFO cinder.volume.manager [req-32921fcc-ac91-43ee-9b92-2003a5d45d3f 78a77fc87a614e398ef4d34f5438be54 c377d92f2739416ab04267179c04a24d - default default] Terminate volume connection completed successfully.

2019-01-22 11:16:41.181 23749 INFO cinder.volume.manager [req-fd9121ed-eb52-4a2b-930d-7ed6b23d82e5 78a77fc87a614e398ef4d34f5438be54 ... (more)

edit retag flag offensive close merge delete

Comments

Volume attachment fails. Check if there are other iscsiadm messages, and check the Cinder logs.

As a workaround, try launching the instance with ephemeral storage instead of a volume as root disk. There is a button for this in the source section of the launch dialog.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-21 16:14:51 -0600 )edit

@Bernd Bausch, Please check the edited part in question.

Vysakh-SN gravatar imageVysakh-SN ( 2019-01-21 23:51:04 -0600 )edit