Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to attach volume: iscsiadm set authmethod: exit status 21 #21

Open
kumy opened this issue Feb 4, 2019 · 0 comments
Open

Fail to attach volume: iscsiadm set authmethod: exit status 21 #21

kumy opened this issue Feb 4, 2019 · 0 comments

Comments

@kumy
Copy link

kumy commented Feb 4, 2019

I'm trying to attach some volume from the OVH cloudstack but it fails with error below:

# docker volume create -d cinder --name test3 -o size=1 -o type=classic test3
# docker run -it --rm -v test3:/data ubuntu bash
docker: Error response from daemon: error while mounting volume '': VolumeDriver.Mount: exit status 21.

Here are the log output of cdd.

2019/02/04 17:44:43 Entering go-plugins-helpers getPath
INFO[0171] Get volume: test3                            
DEBU[0171] getVolByName: `test3`                        
ERRO[0171] Failed to retrieve volume named: %!(EXTRA string=test3, string=during Get operation, <nil>) 
2019/02/04 17:44:43 Entering go-plugins-helpers createPath
INFO[0171] Create volume test3 on Cinder                
DEBU[0171] getVolByName: `test3`                        
DEBU[0171] Option: size = 1                             
DEBU[0171] Option: type = classic                       
DEBU[0171] Creating with options: {AvailabilityZone: ConsistencyGroupID: Description:Docker volume. Metadata:map[] Name:test3 Size:1 SnapshotID: SourceReplica: SourceVolID: ImageID: VolumeType:classic} 



2019/02/04 17:45:07 Entering go-plugins-helpers getPath
INFO[0196] Get volume: test3                            
DEBU[0196] getVolByName: `test3`                        
DEBU[0196] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
 
DEBU[0196] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58 
2019/02/04 17:45:08 Entering go-plugins-helpers getPath
INFO[0196] Get volume: test3                            
DEBU[0196] getVolByName: `test3`                        
DEBU[0197] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
 
DEBU[0197] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58 
2019/02/04 17:45:08 Entering go-plugins-helpers mountPath
INFO[0197] Mounting volume &{Name:test3 ID:9ce9fe993d2e5c780758300227dc20b677f895ebdbede4865a83162ffe2093ae} on xxxmyhostxxx 
DEBU[0197] getVolByName: `test3`                        
DEBU[0197] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
 
DEBU[0197] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58 
DEBU[0197] iface: <nil>
 Addrs: [127.0.0.1/8 10.31.6.26/24 172.17.0.1/16 172.18.0.1/16] 
DEBU[0197] Gather up initiator IQNs...                  
DEBU[0197] output and err from cat... InitiatorName=iqn.1994-05.com.redhat:fb15cd8a16f4
, %!s(<nil>) 
DEBU[0197] Inspect line: InitiatorName=iqn.1994-05.com.redhat:fb15cd8a16f4 
DEBU[0197] Inspect line:                                
DEBU[0197] Found the following iqns: [iqn.1994-05.com.redhat:fb15cd8a16f4] 
DEBU[0197] Value of IPs is=[127.0.0.1/8 10.31.6.26/24 172.17.0.1/16 172.18.0.1/16]
 
DEBU[0197] Issue InitializeConnection...                
DEBU[0197] Response from InitializeConnection: {commonResult:{Result:{Body:map[connection_info:map[driver_volume_type:rbd data:map[name:volumes/volume-f97b8207-ede9-4835-b5f4-323e81859d58 encrypted:false secret_uuid:fdccf5c0-0daa-424e-8a70-d9d2d30f557e ports:[6789 6789 6789] secret_type:ceph keyring:#
# Do not edit, this is generated by puppet
# Cluster name: ceph_cloud_volumes_6
#
[client.cinder]
    key = AQBhxxxxxxxxxxRAA6dWW3L7ak+smxxq+lSJxx==
 qos_specs:map[write_iops_sec:250 read_iops_sec:250] hosts:[10.69.68.49 10.69.76.49 10.69.80.49] volume_id:f97b8207-ede9-4835-b5f4-323e81859d58 cluster_name:ceph auth_enabled:true discard:true access_mode:rw auth_username:cinder]]] Header:map[] Err:<nil>}}}
 
DEBU[0197] Connector is: &{AccessMode:rw AuthUser:cinder AuthPass: AuthMethod: TgtDisco:false TgtIQN: TgtPortal: VolumeID:f97b8207-ede9-4835-b5f4-323e81859d58 TgtLun:0 Encrypted:false} 
INFO[0197] Waiting for path                             
DEBU[0198] Create the node entry using args:  [-m node -T  -p ] 
ERRO[0198] Error running iscsiadm set authmethod: exit status 21{[105 115 99 115 105 97 100 109 58 32 78 111 32 114 101 99 111 114 100 115 32 102 111 117 110 100 10]} 
ERRO[0198] exit status 21                               
DEBU[0198] iSCSI connection done                        
ERRO[0198] Failed to perform iscsi attach of volume test3: exit status 21 

@j-griffith Any idea on what can be wrong? Thanks :)

@kumy kumy changed the title Fail to attache volume: iscsiadm set authmethod: exit status 21 Fail to attach volume: iscsiadm set authmethod: exit status 21 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant