locked
Brokernode change Script RRS feed

  • Question

  • Hey guys so I am working on a script to take one broker offline, then remove it from the HPC console, then take another Node offline, assign broker role then bring back online.  I have the following script:

    Set-HpcNodeState -Name "AP0720Alyn" -State "offline"


    Remove-HpcNode -Name "AP0720Alyn"


    Set-HpcNodeState -Name "ap0004abli" -State "offline"




    Set-HPCNode -Name "ap0004abli" -Role brokernode


    Set-HpcNodeState -Name "ap0004abli" -State "online"

    During the Set-HPCNode -Name "ap0004abli" -Role brokernode step:

    the following error occurs and for the life of me I cannot find a away around it :

    PS D:\Microsoft HPC Pack 2016\Bin> Set-HPCNode -Name "ap0004abli" -Role BrokerNode
    Set-HpcNode : Cannot bind parameter 'Role' to the target. Exception setting "Role": "Node roles can only be None,
    ComputeNode, BrokerNode."
    At line:1 char:38
    + Set-HPCNode -Name "ap0004abli" -Role BrokerNode
    +                                      ~~~~~~~~~~
        + CategoryInfo          : WriteError: (:) [Set-HpcNode], ParameterBindingException
        + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.ComputeCluster.CCPPSH.SetHpcNodeCommand

    Can someone point me in the right direction here?

      
    • Edited by kenjar0497 Wednesday, January 16, 2019 8:13 PM spelling
    Wednesday, January 16, 2019 8:12 PM

All replies

  • Hi kenjar0497,

    Which version of HPC Pack 2016 are you using? You may check it in HPC Cluster Manager -> Help -> About. Were you running the script on a client machine? Can the same powershell cmdlet run from on the head node? Suppose the node "ap0004abli" was already installed as a broker node?

    Regards,

    Yutong Sun

    Friday, January 18, 2019 9:37 AM
  • this looks to be fixed with HPC 2016 update 2 fixes  Thanks!
    Thursday, February 7, 2019 7:23 PM