Skip to content

[BUG] Write-Error: Cannot add a member with the name "ControlPlane" even though its the first installation #225

@DenizYueksel98

Description

@DenizYueksel98

Describe the bug
When we have the .msi installed and call the "New-AksEdgeDeployment" for the first time, we receive the following Error Message:

At C:\Program Files\WindowsPowerShell\Modules\AksEdge\1.9.262\AksEdge.psm1:12222 char:37
+ ... LinuxNode | Add-Member -MemberType NoteProperty -Name "ControlPlane" ...
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{ControlPlant=...ssthough=True}:PSObject) [Add-Member], InvalidOperationException
+ FullyQualifiedErrorld: MemberAlreadyExists,Microsoft.PowerShell.Commands.AddMemberCommand

To Reproduce
Steps to reproduce the behavior:

  1. Fresh Windows Installation
  2. Installed AksEdge-K3s-1.29.6-1.9.262.0.msi as well as the Powershell Modules
  3. Run command "New-AksEdgeDeployment" for an offline cluster deployment

Expected behavior
The execution of the command is successful and the offline cluster gets deployed as expected. However, an error is thrown indicating that a control plane already exists, which should not be the case on a fresh installation.

Screenshots
Image

Environment (please complete the following information):

  • AKS Edge Essentials Version 1.9.262.0
  • Kubernetes version K3s 1.29.6
  • Windows Host OS (please complete the following information):
    • Edition: Windows 10 IoT Enterprise LTSC
    • Version: 21H2 19044.1288
    • Virtual Machine: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions