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

Windows bootstrap should run in a local Elevated session under System account #318

Closed
Annih opened this issue Dec 2, 2015 · 9 comments
Closed

Comments

@Annih
Copy link

Annih commented Dec 2, 2015

Hello,

As cookbook maintainer I receive more and more issues because people are unable to test or bootstrap Windows nodes using the recipes I provide.
Most of the time, this is related to WinRM remote limitation, resulting in an Access denied error.
This issue is clearly related to test-kitchen#876.

And again I think knife bootstrap should use winrm-elevated to apply the recipes under a local session with SYSTEM account.

What do you think @mwrock?

cc: @aboten

@Annih Annih changed the title Windows bootstrap should run in anElevated session under System account Windows bootstrap should run in a local Elevated session under System account Dec 2, 2015
@jvogt
Copy link

jvogt commented Aug 11, 2016

Just curious if anyone has a workaround for this, short of running chef client while logged into the machine?

@jdpc02
Copy link

jdpc02 commented Aug 11, 2016

We have our chef client installed as a service. It checks back with the master server every half an hour.

@mwrock
Copy link
Member

mwrock commented Aug 11, 2016

once WinRb/WinRM#191 is merged, I'd like to do some winrm refactoring here to atleast add a flag to knife winrm that will run commands through winrm-elevated.

@SolverDude
Copy link

@mwrock SWEET! Is this imminent? Can I help?

@mwrock
Copy link
Member

mwrock commented Aug 17, 2016

Just waiting on a green light from @sneal. It's quite a bit to review.

@jptoto
Copy link

jptoto commented Mar 25, 2017

@mwrock did this or something like it ever get merged? Sure would be handy to have a flag for knife bootstrap to run as elevated.

@mwrock
Copy link
Member

mwrock commented Mar 25, 2017

you can now run ad hoc knife winrm commands elevated using --winrm-shell elevated but bootstrap continues on in cmd.exe because we share the same scripts for knife bootstrap ssh.

@jptoto
Copy link

jptoto commented Mar 25, 2017

That'll work for now. Thanks @mwrock much appreciated 👍

@tas50
Copy link
Contributor

tas50 commented Aug 26, 2019

Hey there. In Chef Infra Client 15 we completely rewrote the bootstrap functionality of Chef to use train engine. That rewrite fixed a large number of long standing issues and moves us to a much more robust connection method for bootstrapping. There is high likelihood that this issue has been resolved with that rewrite. I'm going to close this out at this point, but if you encounter the problem with Chef Infra Client 15 please open it up again.

@tas50 tas50 closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants