- From: "Fouts, Chris" <
>
- To: "
" <
>
- Subject: [chef] RE: Re: Pleae help with windows bootstrap
- Date: Wed, 14 Jan 2015 21:38:32 +0000
- Accept-language: en-US
But It DOES resolve, that's why I'm able to do this (IPs changed)
nslookup mynode.domain.com
Server: 10.x.x.x
Address: 10.x.x.x
Name: mynode.domain.com
Address: 10.x.x.x
ping mynode.domain.com -c 1
PING mynode.domain.com (10.x.x.x) 56(84) bytes of data.
64 bytes from mynode.domain.com (10.x.x.x): icmp_seq=1 ttl=128 time=0.167 ms
--- mynode.domain.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.167/0.167/0.167/0.000 ms
knife winrm 'mynode.domain.com' 'dir C:\Users\Administrator' -m -x
domain\\administrator -P 'password' –p 5985
mynode.domain.com Volume in drive C has no label.
mynode.domain.com Volume Serial Number is 4085-33CD
mynode.domain.com leeds-dc Directory of C:\Users\Administrator
mynode.domain.com
mynode.domain.com 01/16/2014 10:07 PM <DIR> .
mynode.domain.com 01/16/2014 10:07 PM <DIR> ..
mynode.domain.com 09/19/2014 09:54 AM <DIR> Contacts
mynode.domain.com 09/19/2014 09:54 AM <DIR> Desktop
mynode.domain.com 09/19/2014 09:54 AM <DIR> Documents
mynode.domain.com 09/19/2014 09:54 AM <DIR> Downloads
mynode.domain.com 09/19/2014 09:54 AM <DIR> Favorites
mynode.domain.com 09/19/2014 09:54 AM <DIR> Links
mynode.domain.com 09/19/2014 09:54 AM <DIR> Music
mynode.domain.com 09/19/2014 09:54 AM <DIR> Pictures
mynode.domain.com 09/19/2014 09:54 AM <DIR> Saved Games
mynode.domain.com 09/19/2014 09:54 AM <DIR> Searches
mynode.domain.com 09/19/2014 09:54 AM <DIR> Videos
mynode.domain.com
mynode.domain.com Directory of C:\Users\Administrator
mynode.domain.com
mynode.domain.com
mynode.domain.com Directory of C:\Users\Administrator
mynode.domain.com
mynode.domain.com 0 File(s) 0 bytes
mynode.domain.com 13 Dir(s) 45,180,260,352 bytes free
-----Original Message-----
From: AJ Christensen
[mailto:
Sent: Wednesday, January 14, 2015 4:28 PM
To:
Subject: [chef] Re: Pleae help with windows bootstrap
mynode.domain.com does not resolve, thus knife cannot connect to the machine
that supposedly is behind that fqdn a record. maybe use an ip address if an
fqdn does not exist / is not resolvable.
cheers,
aj
On Thu, Jan 15, 2015 at 10:26 AM, Fouts, Chris
<
>
wrote:
>
With the help of this group I was able to get this working when I had
>
chef-client v11.x, and chef-server v11.x. I moved to chef-client v12.0
>
and Chef 12 Enterprise. Again, as before, I followed these instructions:
>
https://docs.chef.io/plugin_knife_windows.html to set up winrm on the
>
Windows box, which checks out.
>
>
>
>
I do…
>
>
>
>
knife bootstrap windows winrm 'mynode.domain.com' -x
>
domain\\Administrator -P password -p 5985 -VV
>
>
INFO: Using configuration from
>
/opt/jenkins/workspace/Chef-Deploy-RNIs/chef-deploy-leeds/.chef/knife.
>
rb
>
>
>
>
Waiting for remote response before bootstrap
>
>
>
>
..DEBUG:
>
>
Adding leed-dc.davis.sensus.lab
>
>
DEBUG: :session => :init
>
>
DEBUG: :relay_to_servers => echo . & echo Response received.
>
>
DEBUG: :relayed => mynode.domain.com
>
>
DEBUG: leed-dc.davis.sensus.lab => :run_command
>
>
>
>
(above lines repeated 12 times)
>
>
>
>
ERROR: No response received from remote node after 1.84 minutes, giving up.
>
>
ERROR: Network Error: getaddrinfo: Name or service not known
>
(http://mynode.domain.com:5985)
>
>
Check your knife configuration and network settings
>
>
>
>
Here’s my knife.rb (secret values changed)
>
>
>
>
current_dir = File.dirname(__FILE__)
>
>
log_level :info
>
>
log_location STDOUT
>
>
node_name "jenkins"
>
>
client_key "#{current_dir}/jenkins.pem"
>
>
validation_client_name "chef-validator"
>
>
validation_key "#{current_dir}/chef-validator.pem"
>
>
chef_server_url
>
"https://mychefserver.domain.com/organizations/myorg"
>
>
cache_type 'BasicFile'
>
>
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
>
>
cookbook_path ["#{current_dir}/../chef-repo/cookbooks"]
>
>
knife[:editor]="vim"
>
>
Archive powered by MHonArc 2.6.16.