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

WinRM execution expired (HTTPClient::ConnectTimeoutError) #269

Open
lmayorga1980 opened this issue Jan 19, 2021 · 0 comments
Open

WinRM execution expired (HTTPClient::ConnectTimeoutError) #269

lmayorga1980 opened this issue Jan 19, 2021 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@lmayorga1980
Copy link

user_data

<powershell>

#Create Kitchen Administrator User

cmd /c net user kitchen **** /add /y
cmd /c 'wmic UserAccount where Name="kitchen" set PasswordExpires=False'
cmd /c net localgroup administrators kitchen /add
 
Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile ConfigureRemotingForAnsible.ps1
Powershell -ExecutionPolicy RemoteSigned .\ConfigureRemotingForAnsible.ps1

</powershell>

kitchen.yml

...

transport:
  name: winrm
  username: kitchen
  password: <%= ENV['KITCHEN_PWD'] %>
  port: 5986
  elevated: true
  winrm_transport: ssl

platforms:
  - name: windows

verifier:
  name: terraform
  systems:
    - name: windowsapp
      backend: winrm
      ssl: true
      self_signed: true
      password: <%= ENV['KITCHEN_PWD'] %>
      hosts_output: aws_instance_ip
      controls:
        - operating_system
      user: kitchen

suites:
  - name: windowsapp
➜  kitchen-windows bundle exec kitchen verify -l debug
-----> Starting Test Kitchen (v2.10.0)
D      winrm requested, loading winrm gem (["~> 2.0"])
D      winrm was already loaded.
D      winrm-fs requested, loading winrm-fs gem (["~> 1.0"])
D      winrm-fs is loaded.
D      winrm-elevated requested, loading winrm-elevated gem (["~> 1.0"])
D      winrm-elevated is loaded.
-----> Verifying <windowsapp-windows>...
$$$$$$ Reading the Terraform input variables from the Kitchen instance state...
$$$$$$ Finished reading the Terraform input variables from the Kitchen instance state.
$$$$$$ Reading the Terraform output variables from the Kitchen instance state...
$$$$$$ Finished reading the Terraform output variables from the Kitchen instance state.
$$$$$$ Verifying the systems...
$$$$$$ Verifying the 'windowsapp' system...
D      winrm-fs requested, loading WinRM::FS gem (~> 1.0)
D      winrm-fs previously loaded
D      winrm-elevated requested, loading WinRM-elevated gem (~> 1.2.2)
D      winrm-elevated previously loaded
Option backend_cache is disabled
Resolve /Users/lmayorga/repos/kitchen-windows/test/integration/windowsapp into cache /Users/lmayorga/.inspec/cache
Dependency does not exist in the cache /Users/lmayorga/repos/kitchen-windows/test/integration/windowsapp
D      [WinRM] @52.90.82.48<{:transport=>:negotiate, :disable_sspi=>false, :basic_auth_only=>false, :endpoint=>"https://52.90.82.48:5986/wsman", :user=>"kitchen", :password=>"<hidden>", :no_ssl_peer_verification=>true, :realm=>nil, :service=>nil, :ca_trust_file=>nil, :ssl_peer_fingerprint=>nil}> (cmd.exe /c ver)
D      [WinRM] opening remote shell on https://52.90.82.48:5986/wsman
D      [WinRM] opening remote shell on https://52.90.82.48:5986/wsman
D      [WinRM] opening remote shell on https://52.90.82.48:5986/wsman
D      [WinRM] opening remote shell on https://52.90.82.48:5986/wsman
D      [WinRM] opening remote shell on https://52.90.82.48:5986/wsman
Traceback (most recent call last):
	30: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
	29: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/train-winrm-0.2.11/lib/train-winrm/connection.rb:127:in `block in run_command_via_connection'
	28: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/base.rb:79:in `run'
	27: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/base.rb:128:in `with_command_shell'
	26: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/base.rb:168:in `open'
	25: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/retryable.rb:35:in `retryable'
	24: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/base.rb:170:in `block in open'
	23: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:123:in `open_shell'
	22: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:166:in `open_shell_payload'
	21: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:166:in `map'
	20: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:167:in `block in open_shell_payload'
	19: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:203:in `fragmenter'
	18: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:78:in `max_fragment_blob_size'
	17: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/shells/power_shell.rb:153:in `max_envelope_size_kb'
	16: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/http/transport.rb:168:in `send_request'
	15: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/winrm-2.3.5/lib/winrm/http/transport.rb:236:in `init_auth'
	14: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
	13: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:856:in `request'
	12: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
	11: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
	10: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
	 9: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
	 8: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
	 7: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
	 6: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
	 5: from /Users/lmayorga/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/timeout.rb:103:in `timeout'
	 4: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:752:in `block in connect'
	 3: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:21:in `create_socket'
	 2: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `create_socket'
	 1: from /Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `new'
/Users/lmayorga/.rvm/gems/ruby-2.6.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `initialize': execution expired (HTTPClient::ConnectTimeoutError)

gems

*** LOCAL GEMS ***

activesupport (6.0.3.4, 5.2.4.4)
addressable (2.7.0)
ansi (1.5.0)
aws-eventstream (1.1.0)
aws-partitions (1.416.0)
aws-sdk-apigateway (1.58.0)
aws-sdk-apigatewayv2 (1.30.0)
aws-sdk-athena (1.33.0)
aws-sdk-autoscaling (1.22.0)
aws-sdk-budgets (1.36.0)
aws-sdk-cloudformation (1.46.0)
aws-sdk-cloudfront (1.47.0)
aws-sdk-cloudhsm (1.27.0)
aws-sdk-cloudhsmv2 (1.31.0)
aws-sdk-cloudtrail (1.31.0)
aws-sdk-cloudwatch (1.47.0)
aws-sdk-cloudwatchlogs (1.38.0)
aws-sdk-codecommit (1.40.0)
aws-sdk-codedeploy (1.37.0)
aws-sdk-codepipeline (1.39.0)
aws-sdk-configservice (1.55.0)
aws-sdk-core (3.111.1, 3.111.0)
aws-sdk-costandusagereportservice (1.28.0)
aws-sdk-dynamodb (1.58.0)
aws-sdk-ec2 (1.220.0)
aws-sdk-ecr (1.40.0)
aws-sdk-ecs (1.72.0)
aws-sdk-efs (1.36.0)
aws-sdk-eks (1.46.0)
aws-sdk-elasticache (1.50.0, 1.49.0)
aws-sdk-elasticbeanstalk (1.40.0)
aws-sdk-elasticloadbalancing (1.29.0)
aws-sdk-elasticloadbalancingv2 (1.56.0)
aws-sdk-elasticsearchservice (1.46.0)
aws-sdk-firehose (1.35.0)
aws-sdk-guardduty (1.43.0)
aws-sdk-iam (1.46.0)
aws-sdk-kafka (1.32.0)
aws-sdk-kinesis (1.30.0)
aws-sdk-kms (1.41.0)
aws-sdk-lambda (1.57.0)
aws-sdk-organizations (1.17.0)
aws-sdk-rds (1.110.0)
aws-sdk-redshift (1.52.0)
aws-sdk-route53 (1.45.0)
aws-sdk-route53domains (1.28.0)
aws-sdk-route53resolver (1.22.0)
aws-sdk-s3 (1.87.0)
aws-sdk-securityhub (1.37.0)
aws-sdk-ses (1.36.0)
aws-sdk-sms (1.27.0)
aws-sdk-sns (1.37.0, 1.36.0)
aws-sdk-sqs (1.35.0)
aws-sdk-ssm (1.102.0, 1.101.0)
aws-sigv4 (1.2.2)
azure_graph_rbac (0.17.2)
azure_mgmt_key_vault (0.17.7)
azure_mgmt_resources (0.18.1)
azure_mgmt_security (0.19.0)
azure_mgmt_storage (0.22.0)
bcrypt_pbkdf (1.1.0, 1.0.1)
bigdecimal (default: 1.4.1)
builder (3.2.4)
bundler (default: 1.17.3)
bundler-unload (1.0.2)
chef-config (16.9.20, 16.9.17)
chef-telemetry (1.0.14)
chef-utils (16.9.20, 16.9.17, 16.5.77)
childprocess (3.0.0)
cmath (default: 1.0.0)
coderay (1.1.3)
concurrent-ruby (1.1.7)
csv (default: 3.0.9)
cucumber (5.1.3)
cucumber-core (8.0.1)
cucumber-create-meta (2.0.2)
cucumber-cucumber-expressions (10.3.0)
cucumber-gherkin (15.0.2)
cucumber-html-formatter (9.0.0)
cucumber-messages (13.1.0)
cucumber-tag-expressions (2.0.4)
cucumber-wire (4.0.1)
date (default: 2.0.0)
dbm (default: 1.0.0)
declarative (0.0.20)
declarative-option (0.1.0)
delegate (0.1.0)
did_you_mean (1.3.0)
diff-lcs (1.4.4)
docker-api (2.0.0)
domain_name (0.5.20190701)
dry-configurable (0.12.0)
dry-container (0.7.2)
dry-core (0.5.0)
dry-equalizer (0.3.0)
dry-inflector (0.2.0)
dry-logic (0.6.1)
dry-types (0.14.1)
dry-validation (0.13.3)
e2mmap (default: 0.1.0)
ed25519 (1.2.4)
erubi (1.10.0, 1.9.0)
etc (default: 1.0.1)
excon (0.78.1)
executable-hooks (1.6.0)
faraday (1.3.0, 1.1.0)
faraday-cookie_jar (0.0.7)
faraday-net_http (1.0.1)
faraday_middleware (1.0.0)
fcntl (default: 1.0.0)
ffi (1.14.2, 1.13.1)
ffi-yajl (2.3.4)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
fuzzyurl (0.9.0)
gdbm (default: 2.0.0)
gem-wrappers (1.4.0)
google-api-client (0.52.0)
googleauth (0.14.0)
gssapi (1.3.1, 1.3.0)
gyoku (1.3.1)
hashie (4.1.0)
http-cookie (1.0.3)
httpclient (2.8.3)
i18n (1.8.7, 1.8.5)
inifile (3.0.0)
inspec (4.24.32, 4.24.28)
inspec-bin (4.24.28)
inspec-core (4.24.32, 4.24.28)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
jmespath (1.4.0)
json (2.5.1, default: 2.1.0)
jwt (2.2.2)
kitchen (0.0.3)
kitchen-ec2 (3.8.0)
kitchen-inspec (2.2.2)
kitchen-terraform (5.6.0)
libyajl2 (1.2.0)
license-acceptance (2.1.13, 2.1.2)
little-plugger (1.1.4)
logger (default: 1.3.0)
logging (2.3.0)
matrix (default: 0.1.0)
memoist (0.16.2)
method_source (1.0.0)
middleware (0.1.0)
mini_mime (1.0.2)
minitest (5.14.3, 5.11.3)
mixlib-config (3.0.9)
mixlib-install (3.12.5, 3.12.3)
mixlib-log (3.0.9)
mixlib-shellout (3.2.2, 3.1.6)
mixlib-versioning (1.2.12)
ms_rest (0.7.6)
ms_rest_azure (0.12.0)
multi_json (1.15.0)
multi_test (0.1.2)
multipart-post (2.1.1)
mustermann (1.1.1)
mutex_m (default: 0.1.0)
net-scp (3.0.0)
net-ssh (6.1.0)
net-ssh-gateway (2.0.0)
net-telnet (0.2.0, 0.1.1)
nori (2.6.0)
openssl (default: 2.1.2)
os (1.1.1)
ostruct (default: 0.1.0)
parallel (1.20.1)
parslet (2.0.0)
pastel (0.8.0)
power_assert (1.1.3)
prime (default: 0.1.0)
protobuf-cucumber (3.10.8)
pry (0.13.1)
psych (default: 3.1.0)
public_suffix (4.0.6)
rack (2.2.3)
rack-protection (2.1.0, 2.0.8.1)
rake (12.3.3)
rdoc (default: 6.1.2)
representable (3.0.4)
retriable (3.1.2)
retryable (3.0.5)
rexml (3.2.4, default: 3.1.9)
rspec (3.10.0, 3.9.0)
rspec-core (3.10.1, 3.9.3)
rspec-expectations (3.10.1, 3.9.2)
rspec-its (1.3.0)
rspec-mocks (3.10.1, 3.9.1)
rspec-support (3.10.1, 3.9.3)
rss (default: 0.2.7)
ruby-progressbar (1.10.1)
ruby2_keywords (0.0.2)
rubygems-bundler (1.4.5)
rubyntlm (0.6.2)
rubyzip (2.3.0)
rvm (1.11.3.9)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
selenium-webdriver (3.142.7)
semverse (3.0.0)
serverspec (2.41.5)
sfl (2.3)
shell (default: 0.7)
signet (0.14.0)
sinatra (2.1.0, 2.0.8.1)
specinfra (2.82.22)
sslshake (1.3.1)
stringio (default: 0.0.2)
strings (0.2.0)
strings-ansi (0.2.0)
strscan (default: 1.0.0)
sync (default: 0.5.0)
sys-uname (1.2.1)
test-kitchen (2.10.0, 2.9.0, 2.7.2)
test-unit (3.3.6, 3.2.9)
thor (1.0.1)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tilt (2.0.10)
timeliness (0.3.10)
tomlrb (1.3.0)
tracer (default: 0.1.0)
train (3.4.7)
train-aws (0.1.18)
train-core (3.4.7)
train-habitat (0.2.13)
train-winrm (0.2.11)
tty-box (0.7.0, 0.6.0)
tty-color (0.6.0, 0.5.2)
tty-cursor (0.7.1)
tty-prompt (0.23.0, 0.22.0)
tty-reader (0.9.0, 0.8.0)
tty-screen (0.8.1)
tty-table (0.12.0)
tty-which (0.4.2)
tzinfo (1.2.9, 1.2.7)
uber (0.1.0)
unf (0.1.4)
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
unicode_utils (1.4.0)
watir-webdriver (0.9.9)
webrick (default: 1.4.2)
winrm (2.3.5, 2.3.4)
winrm-elevated (1.2.3, 1.2.2)
winrm-fs (1.3.5)
wisper (2.0.1)
xmlrpc (0.3.0)
zeitwerk (2.4.0)
zlib (default: 1.0.0)
@lmayorga1980 lmayorga1980 added the Status: Untriaged An issue that has yet to be triaged. label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant