Permission Issues with `lcmuser` and CSVs (Cluster Shared Volumes) after Deployment
Title: Permission Issues with lcmuser and CSVs (Cluster Shared Volumes)
Bug description
After performing a clean deployment in a nested virtualization environment, the following error occurs in the storage path "UserStorage_1" (provisioned automatically during deployment):
{
"id": "/subscriptions/SUBSCRIPTIONID/resourcegroups/RESOURCEGROUP/providers/microsoft.azurestackhci/storagecontainers/userstorage1-2f3128727c1c464a9a7b371ddfdaecf4",
"name": "UserStorage1-2f3128727c1c464a9a7b371ddfdaecf4",
"type": "microsoft.azurestackhci/storagecontainers",
"location": "westeurope",
"tags": null,
"kind": "",
"sku": null,
"plan": null,
"managedBy": "",
"properties": {
"path": "C:\\ClusterStorage\\UserStorage_1",
"provisioningState": "Failed",
"status": {
"errorCode": "AccessDenied",
"errorMessage": "moc-operator storagecontainer serviceClient returned an error while reconciling: rpc error: code = Unknown desc = mkdir C:\\ClusterStorage\\UserStorage_1: Access is denied."
}
}
}
As a result, errors occur when attempting to perform operations in the base directory C:\ClusterStorage\UserStorage_1\. While it is possible to create subdirectories, listing them in the folder is not allowed.
After the node is rebooted, the problem disappears
Repro steps
Steps to reproduce the behavior:
- Perform a clean deployment in a nested virtualization environment.
- Navigate to the storage path
C:\ClusterStorage\UserStorage_1. - Attempt to list the contents of the directory.
- Observe the error:
Access is denied.
Expected behavior
The directory C:\ClusterStorage\UserStorage_1\ should allow all basic operations, including creating and listing subdirectories, without permission issues.
Environment (please complete the following information):
- Build: 10.2411.0.22
- One-node or multi-node: One-node
- Production or non-production: Non-production
- Region: West Europe
Additional environment details (get-stampInformation | fl *):
OemVersion : 2.1.0.0
StampVersion : 10.2411.0.22
ServicesVersion : 10.2411.0.22
PlatformVersion : 1.0.0.0
InitialDeployedVersion : 10.2411.0.22
NetworkSchemaVersion : 2021
Prefix : HCI01
CompanyName : local
ServerSku : Core
Topology : HyperConverged
Timezone : UTC
HardwareOEM : Microsoft Corporation
HardwareOEMModel : Virtual Machine
RegionName : local
DomainNetBIOSName : azurestack
DomainFQDN : azurestack.local
Timeserver :
NumberOfNodes : 1
RingName : Production
InstallationMethod : Deployment
HardwareClass : Medium
Screenshots
Additional context
The issue only occurs only after the deployment. After the node is rebooted, the problem disappears, and all operations on the directory work as expected.
I am performing the deployment in my lab environment https://schmitt-nieto.com/blog/azure-stack-hci-demolab/ . If there are any issues or suggestions for improvement, please feel free to contact me directly.
Thank you for your time,
Cristian.
Storage Path needs to be redeploy after the reboot 😅