rajeshkumar created the topic: ERROR: Network Error: getaddrinfo: nodename nor servname provided, or
Issues –
knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo --node-name firefox Doing old-style registration with the validation key at /Users/rajesh.kumar/.chef/scmgalaxy-validator.pem... Delete your validation key in order to use your user credentials instead Connecting to uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr > Existing Chef installation detected uvo1t75faaktzc532w6.vm.cld.sr Starting first Chef Client run... uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:10:17-04:00] WARN: uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * uvo1t75faaktzc532w6.vm.cld.sr SSL validation of HTTPS requests is disabled. HTTPS connections are still uvo1t75faaktzc532w6.vm.cld.sr encrypted, but chef is not able to detect forged replies or man in the middle uvo1t75faaktzc532w6.vm.cld.sr attacks. uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr To fix this issue add an entry like this to your configuration file: uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr ``` uvo1t75faaktzc532w6.vm.cld.sr # Verify all HTTPS connections (recommended) uvo1t75faaktzc532w6.vm.cld.sr ssl_verify_mode :verify_peer uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr # OR, Verify only connections to chef-server uvo1t75faaktzc532w6.vm.cld.sr verify_api_cert true uvo1t75faaktzc532w6.vm.cld.sr ``` uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr To check your SSL configuration, or troubleshoot errors, you can use the uvo1t75faaktzc532w6.vm.cld.sr `knife ssl check` command like so: uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr ``` uvo1t75faaktzc532w6.vm.cld.sr knife ssl check -c /etc/chef/client.rb uvo1t75faaktzc532w6.vm.cld.sr ``` uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr Starting Chef Client, version 11.16.2 uvo1t75faaktzc532w6.vm.cld.sr Creating a new client identity for firefox using the validator key. uvo1t75faaktzc532w6.vm.cld.sr resolving cookbooks for run list: [] uvo1t75faaktzc532w6.vm.cld.sr Synchronizing Cookbooks: uvo1t75faaktzc532w6.vm.cld.sr Compiling Cookbooks... uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:10:21-04:00] WARN: Node firefox has an empty run list. uvo1t75faaktzc532w6.vm.cld.sr Converging 0 resources uvo1t75faaktzc532w6.vm.cld.sr uvo1t75faaktzc532w6.vm.cld.sr Running handlers: uvo1t75faaktzc532w6.vm.cld.sr Running handlers complete uvo1t75faaktzc532w6.vm.cld.sr Chef Client finished, 0/0 resources updated in 4.732276995 seconds MAMSIT1026467:.chef rajesh.kumar$ knife bootstrap {{uvo1t75faaktzc532w6.vm.cld.sr}} --ssh-user {{root}} --ssh-password '{{Br356YS0iy}}' --sudo --use-sudo-password --node-name firefox1 Doing old-style registration with the validation key at /Users/rajesh.kumar/.chef/scmgalaxy-validator.pem... Delete your validation key in order to use your user credentials instead Connecting to {{uvo1t75faaktzc532w6.vm.cld.sr}} ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known Check your knife configuration and network settings
Solution –
I am not able to find the problem with the above commands but following commands is working perfectly.... knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo --node-name firefox
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
Latest posts by scmgalaxy K (see all)
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018