AzureLocal-Supportability icon indicating copy to clipboard operation
AzureLocal-Supportability copied to clipboard

Permission Issues with `lcmuser` and CSVs (Cluster Shared Volumes) after Deployment

Open schmittnieto opened this issue 2 years ago • 1 comments

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:

  1. Perform a clean deployment in a nested virtualization environment.
  2. Navigate to the storage path C:\ClusterStorage\UserStorage_1.
  3. Attempt to list the contents of the directory.
  4. 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
Image Image Image

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.

schmittnieto avatar Nov 30 '24 13:11 schmittnieto

Image Storage Path needs to be redeploy after the reboot 😅

schmittnieto avatar Nov 30 '24 14:11 schmittnieto