{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/30167","labels_url":"https://api.github.com/repos/saltstack/salt/issues/30167/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/30167/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/30167/events","html_url":"https://github.com/saltstack/salt/issues/30167","id":125092615,"number":30167,"title":"Salt-Cloud: Windows EC2 provisioning.","user":{"login":"amitshipra","id":516352,"avatar_url":"https://avatars.githubusercontent.com/u/516352?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshipra","html_url":"https://github.com/amitshipra","followers_url":"https://api.github.com/users/amitshipra/followers","following_url":"https://api.github.com/users/amitshipra/following{/other_user}","gists_url":"https://api.github.com/users/amitshipra/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshipra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshipra/subscriptions","organizations_url":"https://api.github.com/users/amitshipra/orgs","repos_url":"https://api.github.com/users/amitshipra/repos","events_url":"https://api.github.com/users/amitshipra/events{/privacy}","received_events_url":"https://api.github.com/users/amitshipra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":345,"closed_issues":708,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-01-06T18:18:04Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-06T01:47:50Z","updated_at":"2016-01-06T18:29:34Z","closed_at":null,"body":"This is related to year back issue - #18308. It seems fixed (as suggested) but still getting similar errors. Any pointers would help.\r\n\r\n### Issue:\r\n  * Provider: EC2\r\n  * Description: *While trying to provision EC2 windows machine (with settings of win_deploy_auth_retry_delay is set as 120 and total number of retires are set as 10), I am getting below error - no matter how many times I run. Above setting should give sufficient time for password generation and setting. (doc says 4 minutes).*\r\n\r\n### Log:\r\n```\r\n[INFO    ] Running command under pid 10609: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10610: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10614: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10615: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10616: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10617: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10618: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10619: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10631: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n[INFO    ] Running command under pid 10632: 'winexe -U \\'Administrator%XXX-REDACTED-XXX\\' //52.90.114.73 \"hostname\"'\r\n```\r\n`Error: There was a profile error: Failed to authenticate against remote windows host`\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/169411839","html_url":"https://github.com/saltstack/salt/issues/30167#issuecomment-169411839","issue_url":"https://api.github.com/repos/saltstack/salt/issues/30167","id":169411839,"user":{"login":"amitshipra","id":516352,"avatar_url":"https://avatars.githubusercontent.com/u/516352?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshipra","html_url":"https://github.com/amitshipra","followers_url":"https://api.github.com/users/amitshipra/followers","following_url":"https://api.github.com/users/amitshipra/following{/other_user}","gists_url":"https://api.github.com/users/amitshipra/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshipra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshipra/subscriptions","organizations_url":"https://api.github.com/users/amitshipra/orgs","repos_url":"https://api.github.com/users/amitshipra/repos","events_url":"https://api.github.com/users/amitshipra/events{/privacy}","received_events_url":"https://api.github.com/users/amitshipra/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T18:29:33Z","updated_at":"2016-01-06T18:29:33Z","body":"Thanks @jfindlay \r\n\r\nFew details (master IP etc) are masked but it will not change anything :)\r\n\r\n* Provider Config\r\n```\r\nagup-cloud:\r\n  # Set up the location of the salt master\r\n  #\r\n  minion:\r\n    master: 11.22.33.44\r\n\r\n  # Set up grains information, which will be common for all nodes\r\n  # using this provider\r\n  grains:\r\n    node_type: broker\r\n    release: 1.0.1\r\n    rf.class: example\r\n\r\n  # Specify whether to use public or private IP for deploy script.\r\n  #\r\n  # Valid options are:\r\n  #     private_ips - The salt-cloud command is run inside the EC2\r\n  #     public_ips - The salt-cloud command is run outside of EC2\r\n  #\r\n  ssh_interface: public_ips\r\n\r\n  # Optionally configure the Windows credential validation number of\r\n  # retries and delay between retries.  This defaults to 10 retries\r\n  # with a one second delay betwee retries\r\n  win_deploy_auth_retries: 10\r\n  win_deploy_auth_retry_delay: 120\r\n\r\n  # Set the EC2 access credentials (see below)\r\n  #\r\n  id: 'someid'\r\n  key: 'somekey'\r\n\r\n  # Make sure this key is owned by root with permissions 0400.\r\n  #\r\n  private_key: /etc/salt/aws-singular-key.pem\r\n  keyname: aws-singular-key\r\n  securitygroup: launch-wizard-27-Salt\r\n\r\n  # Optionally configure default region\r\n  # Use salt-cloud --list-locations <provider> to obtain valid regions\r\n  #\r\n  location: us-east-1\r\n  availability_zone: us-east-1b\r\n\r\n  # Configure which user to use to run the deploy script. This setting is\r\n  # dependent upon the AMI that is used to deploy. It is usually safer to\r\n  # configure this individually in a profile, than globally. Typical users\r\n  # are:\r\n  #\r\n  # Amazon Linux -> ec2-user\r\n  # RHEL         -> ec2-user\r\n  # CentOS       -> ec2-user\r\n  # Ubuntu       -> ubuntu\r\n  #\r\n  ssh_username:\r\n    - ec2-user\r\n    - ubuntu\r\n\r\n  # Optionally add an IAM profile\r\n  iam_profile: 'some-profile'\r\n\r\n  driver: ec2\r\n\r\n  del_all_vols_on_destroy: True\r\n  rename_on_destroy: True\r\n```\r\n\r\nCloud Profile:\r\n```\r\nrf-developers-machine:\r\n  provider: agup-cloud\r\n  image: ami-e171098b\r\n  size: t2.large\r\n  securitygroup: salt-cloud-windows\r\n  keyname: aws-singular-key\r\n  private_key: /etc/salt/aws-singular-key.pem\r\n  userdata_file: /etc/salt/windows/windows-firewall.ps1\r\n  win_installer: /etc/salt/windows/Salt-Minion-2015.8.3-x86-Setup.exe\r\n  win_username: Administrator\r\n  win_password: auto\r\n\r\n```"}}