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

Reproducible issues with Get-DbaCmObject #4096

Closed
potatoqualitee opened this issue Sep 29, 2018 · 5 comments · Fixed by #5214
Closed

Reproducible issues with Get-DbaCmObject #4096

potatoqualitee opened this issue Sep 29, 2018 · 5 comments · Fixed by #5214
Assignees
Labels
bugs life confirmed Label to be used by maintainers that confirm a bug does exist for the given issue

Comments

@potatoqualitee
Copy link
Member

potatoqualitee commented Sep 29, 2018

can repro in our lab

$computer = "sqlb"
$credential = $null
Get-DbaCmObject -ComputerName $computer -Credential $Credential -Namespace root\MSCluster -ClassName MSCluster_Disk

works! fab. let me examine another class.

Get-DbaCmObject -ComputerName $computer -Credential $Credential -Namespace root\MSCluster -ClassName MSCluster_ValidationStatus
WARNING: [12:11:07][Get-DbaCmObject] [sqlb] Unable to find a connection to the target system. Ensure the name is typed correctly, and the server allows any of the following
 protocols: CimRM, CimDCOM | Exception calling "GetConnectionType" with "2" argument(s): "No connectiontypes left to try."

broken, okay nbd, wait, what did MSCluster_Disk say again?

Get-DbaCmObject -ComputerName $computer -Credential $Credential -Namespace root\MSCluster -ClassName MSCluster_Disk
WARNING: [12:11:10][Get-DbaCmObject] [sqlb] Unable to find a connection to the target system. Ensure the name is typed correctly, and the server allows any of the following
 protocols: CimRM, CimDCOM | Exception calling "GetConnectionType" with "2" argument(s): "No connectiontypes left to try."

But that just worked? Maybe the server went offline?

Close PS, Open PS

image

Our caching is too aggressive I guess? I did the above twice with reproducible issues.

@potatoqualitee
Copy link
Member Author

image

forgot the last pic

@FriedrichWeinmann
Copy link
Member

Thanks for the update and sorry for the delay, will look into it this evening when I return from work.
Looks like there is indeed still some need for improvement 👍 (sorry about the inconvenience)

@potatoqualitee
Copy link
Member Author

Thanks so very much, and I totally understand. I know you're super busy and appreciate the time you'll take fixing it.

I'm also curious if we can make the error message more informative. For instance, in our lab, kerberos is super broken on sqlcluster. Cim will give me an informative message, but our cm commands do not:

image

@stale
Copy link

stale bot commented Jan 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. If you would like this issue to remain open:

  • Verify that you can still reproduce the issue in the latest version of dbatools
  • Comment that the issue is still reproducible and include:
    • What version of dbatools you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

@stale stale bot added the wontfix label Jan 8, 2019
@stale
Copy link

stale bot commented Feb 7, 2019

This issue has been automatically closed because it has not had activity in the last three months. If this issue is still valid, please add a comment

@stale stale bot closed this as completed Feb 7, 2019
@wsmelton wsmelton added the confirmed Label to be used by maintainers that confirm a bug does exist for the given issue label Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs life confirmed Label to be used by maintainers that confirm a bug does exist for the given issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants