Error creating Cluster on windows 2012 R2 Server through Ansible

17 views
Skip to first unread message

ashish chanda

unread,
Nov 28, 2016, 7:05:57 PM11/28/16
to Ansible Project
Hi,

I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like 

access denied on new cluster command on adding the second node to the cluster.


I am using kerberos authentication since i needed to login using domain account as opposed to local account. Also i am using PYWINRM to connect.


s = winrm.Session('192.X.X.X',auth=('Administrator@CORP.LOCAL', 'anything'), transport='kerberos') 

r = s.run_ps("""New-Cluster -Name mycluster -Node firstcomputer.CORP.LOCAL,secondcomputer.CORP.LOCAL  -StaticAddress 192.X.X.X""")

Please help.

Thanks,
Ashish 

J Hawkesworth

unread,
Nov 29, 2016, 3:44:36 AM11/29/16
to Ansible Project
Hello,

I think you need to allow delegation of credentials in order to avoid the 'second hop' issue.  See my answer here: https://groups.google.com/forum/#!topic/ansible-project/BbKicPxQztI

Hope this helps,

Jon
Reply all
Reply to author
Forward
0 new messages