NFS Attach Encrypted fails only on the first attempt

Bug #1982891 reported by Sofia Enriquez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Low
Sofia Enriquez

Bug Description

Description
===========

Plain generic NFS and encrypted NFS do not perform the attach on the first attempt.
The operation is shown as successful "attachment_update completed successfully", but immediately afterward c-vol shows "Terminate volume connection completed successfully" and the volume is not attached to the instance.

This happens only on the first attempt and works as expected when you try a second or third time.

1. Create a nfs/luks1 volume
2. attach it to an instance

c-vol logs:
==========

cinder-volume[358033]: DEBUG cinder.volume.drivers.nfs [req-1835be0e-617b-4694-8357-141e3d7235bb req-1c96f4ba-d140-4365-b3cc-adb0965efb77 admin None] NfsDriver: conn_info: {'driver_volume_type': 'nfs', 'data':
{'export': 'localhost:/srv/nfs1', 'name': 'volume-66354715-b82a-42ee-b41e-661e9f6e7d42', 'options': None, 'format': 'qcow2'}, 'mount_point_base': '/opt/stack/data/cinder/mnt'} {{(pid=358033) initialize_connection /opt/stack/cinder/cinder/
volume/drivers/nfs.py:165}}
cinder-volume[358033]: DEBUG cinder.volume.manager [req-1835be0e-617b-4694-8357-141e3d7235bb req-1c96f4ba-d140-4365-b3cc-adb0965efb77 admin None] Connection info returned from driver {'export': 'localhost:/srv/
nfs1', 'name': 'volume-66354715-b82a-42ee-b41e-661e9f6e7d42', 'options': None, 'format': 'qcow2', 'qos_specs': None, 'access_mode': 'rw', 'encrypted': True, 'cacheable': False, 'driver_volume_type': 'nfs', 'mount_point_base': '/opt/stack/
data/cinder/mnt', 'attachment_id': '3df03703-df69-45ca-81fc-e0567cd11dc8'} {{(pid=358033) _connection_create /opt/stack/cinder/cinder/volume/manager.py:4827}}
cinder-volume[358033]: INFO cinder.volume.manager [req-1835be0e-617b-4694-8357-141e3d7235bb req-1c96f4ba-d140-4365-b3cc-adb0965efb77 admin None] attachment_update completed successfully.
cinder-volume[358033]: INFO cinder.volume.manager [req-1835be0e-617b-4694-8357-141e3d7235bb req-b6c27351-2c86-450b-afe2-093dc8145800 admin None] Terminate volume connection completed successfully.
cinder-volume[358033]: DEBUG cinder.volume.manager [req-1835be0e-617b-4694-8357-141e3d7235bb req-b6c27351-2c86-450b-afe2-093dc8145800 admin None] Deleting attachment 3df03703-df69-45ca-81fc-e0567cd11dc8. {{(pid
=358033) attachment_delete /opt/stack/cinder/cinder/volume/manager.py:4958}}

Tags: drivers nfs
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.