mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #50651 from itowlson/log-azure-share-name
Automatic merge from submit-queue (batch tested with PRs 46317, 48922, 50651, 50230, 47599) Log name if Azure file share cannot be created **What this PR does / why we need it**: If the Azure storage provider fails to create a file share, it logs and error message 'failed to create share in account _foo_: _error-msg_'. A user on the Slack azure-sig channel reported an error of "The specified resource name length is not within the permissible limits". This PR adds logging of the name so that this error can be diagnosed in future. **Which issue this PR fixes**: This was raised on Slack and has not been created as a GitHub issue. **Special notes for your reviewer**: None **Release note**: ```release-note Changed the error log format when creating an Azure file share to include the name of the share. ```
This commit is contained in:
commit
7a58f55423
@ -48,7 +48,7 @@ func (az *Cloud) CreateFileShare(name, storageAccount, storageType, location str
|
||||
|
||||
err = az.createFileShare(account.Name, key, name, requestGB)
|
||||
if err != nil {
|
||||
glog.V(2).Infof("failed to create share in account %s: %v", account.Name, err)
|
||||
glog.V(2).Infof("failed to create share %s in account %s: %v", name, account.Name, err)
|
||||
continue
|
||||
}
|
||||
glog.V(4).Infof("created share %s in account %s", name, account.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user