Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClusterQuorum: Fail if resource already exist #197

Open
lbergeron01 opened this issue Dec 13, 2018 · 2 comments
Open

ClusterQuorum: Fail if resource already exist #197

lbergeron01 opened this issue Dec 13, 2018 · 2 comments
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@lbergeron01
Copy link

lbergeron01 commented Dec 13, 2018

Running xClusterQuorum with NodeAndCloudMajority type fail if Cloud Witness already exists on the Cluster Group.

Validation/Test is required in the function.

Code used :
xClusterQuorum SetQuorumToNodeAndCloudMajority { IsSingleInstance = 'Yes' Type = 'NodeAndCloudMajority' Resource = $Cluster.StorageAccountName StorageAccountAccessKey = $Cluster.StorageAccountKey }

Result :
`
2018-12-13T16:19:37.3595073Z [[xClusterQuorum]SetQuorumToNodeAndCloudMajority::[cCreateCluster]CreateCluster
2018-12-13T16:19:37.3595288Z ] at MS.Internal.ServerClusters.AzureWitnessQuorumSettings.Configure()
2018-12-13T16:19:37.3595384Z
2018-12-13T16:19:37.3595510Z at
2018-12-13T16:19:37.3595648Z Microsoft.FailoverClusters.PowerShell.SetClusterQuorumCommand.WrappedProcessRec
2018-12-13T16:19:37.3595806Z ord()
2018-12-13T16:19:37.3595879Z
2018-12-13T16:19:37.3596029Z at Microsoft.FailoverClusters.PowerShell.FCCmdlet.ProcessRecord()
2018-12-13T16:19:37.5807110Z ##[error]An error occurred while creating resource 'Cloud Witness (2)' for the
clustered role 'Cluster Group'.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : Set-ClusterQuorum,Microsoft.FailoverClusters.Pow
erShell.SetClusterQuorumCommand
+ PSComputerName : localhost

2018-12-13T16:19:37.5823966Z VERBOSE: [wswlcesbxvocd21]: LCM: [ End Set ]
2018-12-13T16:19:37.5824401Z [[xClusterQuorum]SetQuorumToNodeAndCloudMajority::[cCreateCluster]CreateCluster
2018-12-13T16:19:37.5824596Z ] in 0.4060 seconds.
2018-12-13T16:19:37.5981443Z ##[error]The PowerShell DSC resource '[xClusterQuorum]SetQuorumToNodeAndCloudMajority::[
cCreateCluster]CreateCluster' with SourceInfo 'C:\VSTSAgent_work\r1\a\Vertex-E
nv-CI\Environment\dsc\Vertex-DSCScript-ConfigureCluster-VSTS.ps1::86::9::xClust
erQuorum' threw one or more non-terminating errors while running the
Set-TargetResource functionality. These errors are logged to the ETW channel
called Microsoft-Windows-DSC/Operational. Refer to this channel for more
details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
`

@stale
Copy link

stale bot commented Jan 12, 2019

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.

@stale stale bot added the stale The issue or pull request was marked as stale because there hasn't been activity from the community. label Jan 12, 2019
@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. and removed stale The issue or pull request was marked as stale because there hasn't been activity from the community. labels Jan 24, 2019
@johlju
Copy link
Member

johlju commented Jan 24, 2019

Labelling this as a bug.

@SteveL-MSFT SteveL-MSFT added this to Help Wanted in powershell/dscresources May 14, 2019
@SteveL-MSFT SteveL-MSFT removed this from Help Wanted in powershell/dscresources Nov 27, 2019
@johlju johlju changed the title xClusterQuorum: Fail if resource already exist ClusterQuorum: Fail if resource already exist Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants