Azure / azure-iot-operations

The official repo for Azure IoT Operations.
MIT License
20 stars 16 forks source link

[bug] AksEdgeQuickStartForAio.ps1 continues on failed VM deployment #36

Open derbl4ck opened 5 months ago

derbl4ck commented 5 months ago

Describe the bug While deploying Azure IoT Operations on a clean installed Windows Server 2022 the deployment of the VM fails, since less than 50GB Disk is available but the Script continues with the next steps.

Steps to reproduce Run the, in january 2024, new released AksEdgeQuickStartForAio.ps1 -Skript on a Windows Server with less than 50GB Disk available.

Log

HostOS  : Microsoft Windows Server 2022 Standard
Version : 10.0.20348.2227
Lang    : en-US
Name    : xxxx
Total CPUs              : 4
Free RAM / Total RAM    : 14 GB / 16 GB
Free Disk / Total Disk  : 47 GB / 69 GB
Network Adapters        : Ethernet0(Up),
VPN Profile             : None
AKS Edge Essentials - K3s 1.4.109.0 is installed.
Loading AksEdge module..
AksEdge version         : 1.4.109.0
AksEdgeShell  version   : 1.0.230221.1000
AksEdgeDeploy version   : 1.0.231205.1000
Hyper-V is enabled
Step 2: Download, install and deploy AKS Edge Essentials
AksEdgeDeploy version: 1.0.231205.1000
HostOS  : Microsoft Windows Server 2022 Standard
Version : 10.0.20348.2227
Lang    : en-US
Name    : xxxx
Total CPUs              : 4
Free RAM / Total RAM    : 14 GB / 16 GB
Free Disk / Total Disk  : 47 GB / 69 GB
Network Adapters        : Ethernet0(Up),
VPN Profile             : None
AKS Edge Essentials - K3s 1.4.109.0 is installed.
AksEdge version         : 1.4.109.0
Running Install-AksEdgeHostFeatures
- Checking host for required features
- Checking the status of 'Microsoft-Hyper-V'
- Checking the status of 'Microsoft-Hyper-V-Management-PowerShell'
- Checking the status of 'VirtualMachinePlatform'
- Checking the status of 'OpenSSH.Client*'
- Checking power management settings of the Host
- Checking HNS version of the Host
- Checking OpenSSH version of the Host
- Checking Nested Virtualization of the Host
SingleMachine cluster uses internal switch. Nothing to test.
--- Verifying AksEdge VM Deployment Configuration...
--- Verifying EULA...
* EULA accepted.
* Optional telemetry accepted.
*** No errors found in the Deployment Configuration.
Starting AksEdge VM deployment...
- Checking host for required features
- Checking the status of 'Microsoft-Hyper-V'
- Checking the status of 'Microsoft-Hyper-V-Management-PowerShell'
- Checking the status of 'VirtualMachinePlatform'
- Checking the status of 'OpenSSH.Client*'
- Checking power management settings of the Host
- Checking HNS version of the Host
- Checking OpenSSH version of the Host
- Checking Nested Virtualization of the Host

All required host features are installed
Validating AksEdge network parameters...
*** 0 errors found in the deployment configuration.
Attempting to remove vmms single machine cluster network
Verifying Host Requirements for Linux node(s)
- Verifying host requirements for selected configuration (50.5 GB disk size, 10740 MB memory, 4 CPUs)
Verifying Host OS can support requested configuration
Verifying required storage, RAM and number of cores are available

- Drive 'C:' has 47 GB free
- A minimum of 50 GB disk space is required on drive 'C:'

Exception Caught!!!
- Not enough disk space is available on drive 'C:'. (AksEdge-Core.psm1: line 6883)
Host machine does not fulfill system requirements for Linux deployment

Error: AksEdge VM deployment failed with the below error message.
Error message : .
Deployment Successful.
Step 3: Connect the cluster to Azure
...

Developer Environment

chgennar commented 4 months ago

Thank you for reporting this @derbl4ck. We're looking into it.

chgennar commented 4 months ago

@derbl4ck, does the latest release of the AksEdgeQuickStartForAio.ps1 script fix this issue for you?

meenag16 commented 3 months ago

@derbl4ck following up, did the latest release fix the issue?