chef / knife-azure

Chef knife plug-in for Microsoft Azure
https://github.com/chef/knife-azure
Apache License 2.0
72 stars 89 forks source link

server create command is giving error for winrm enabled images #10

Closed snallami closed 11 years ago

snallami commented 11 years ago

"Knife azure server create" is giving error when using winrm enabled images

Below is the error message

Waiting for winrm on 168.62.204.89:5985......ERROR: knife encountered an unexpected error This may be a bug in the 'azure server create' knife command or plugin Please collect the output of this command with the -VV option before filing a bug report. Exception: NoMethodError: undefined method `id' for #Azure::Role:0x000000041af820.

After the VM is provisioned i tried manually below command and it worked knife bootstrap windows winrm chef15sur.cloudapp.net --winrm-user Administrator -P a1B2C3D4@

My Knife.rb

current_dir = File.dirname(FILE) log_level :info log_location STDOUT node_name "arunapadala" client_key "#{current_dir}/arunapadala.pem" validation_client_name "aruna1-validator" validation_key "#{current_dir}/aruna1-validator.pem" chef_server_url "https://api.opscode.com/organizations/aruna1" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] knife[:azure_subscription_id] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" knife[:azure_mgmt_cert] = "publishsettings_decoded.pem" knife[:azure_host_name] = "management.core.windows.net" knife[:service_location] = 'West US' knife[:hosted_service_name]='chef11sur' knife[:role_name]='chef11sur' knife[:host_name]='chef11sur' knife[:storage_account]='sureshtest' knife[:tcp_endpoints]='66,80' knife[:udp_endpoints]='77,88,99' knife[:run_list]='recipe[getting-started]' knife[:source_image]='win2k8winrm2' knife[:role_size]='Medium' knife[:bootstrap_protocol]='winrm' knife[:winrm_password]='a1B2C3D4@' knife[:winrm_transport]='plaintext' knife[:winrm_port]='5985' knife[:distro]='windows-chef-client-msi'

chirag-jog commented 11 years ago

Hello Suresh, Can you run the knife server create command with -VV option and share the stacktrace ?

Regards, Chirag Jog Chief Technology Officer, Clogeny Technologies | http://clogeny.com (M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 21, 2012 at 1:50 PM, sureshreddygithub <notifications@github.com

wrote:

"Knife azure server create" is giving error when using winrm enabled images

Below is the error message

Waiting for winrm on 168.62.204.89:5985......ERROR: knife encountered an unexpected error This may be a bug in the 'azure server create' knife command or plugin Please collect the output of this command with the -VV option before filing a bug report. Exception: NoMethodError: undefined method `id' for # Azure::Role:0x000000041af820.

After the VM is provisioned i tried manually below command and it worked knife bootstrap windows winrm chef15sur.cloudapp.net --winrm-user Administrator -P a1B2C3D4@

My Knife.rb

current_dir = File.dirname(FILE) log_level :info log_location STDOUT node_name "arunapadala" client_key "#{current_dir}/arunapadala.pem" validation_client_name "aruna1-validator" validation_key "#{current_dir}/aruna1-validator.pem" chef_server_url "https://api.opscode.com/organizations/aruna1" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path ["#{current_dir}/../cookbooks"] knife[:azure_subscription_id] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" knife[:azure_mgmt_cert] = "publishsettings_decoded.pem" knife[:azure_host_name] = "management.core.windows.net" knife[:service_location] = 'West US' knife[:hosted_service_name]='chef11sur' knife[:role_name]='chef11sur' knife[:host_name]='chef11sur' knife[:storage_account]='sureshtest' knife[:tcp_endpoints]='66,80' knife[:udp_endpoints]='77,88,99' knife[:run_list]='recipe[getting-started]' knife[:source_image]='win2k8winrm2' knife[:role_size]='Medium' knife[:bootstrap_protocol]='winrm' knife[:winrm_password]='a1B2C3D4@' knife[:winrm_transport]='plaintext' knife[:winrm_port]='5985' knife[:distro]='windows-chef-client-msi'

— Reply to this email directly or view it on GitHubhttps://github.com/opscode/knife-azure/issues/10.

snallami commented 11 years ago

Hi Chirag,

Below is the output with -VV option. Also copied the output @ http://pslstorage.blob.core.windows.net/sureshpsl/serverCreate.txt

root@sureshopsch1:/home/azureuser/chef-repo/.chef# knife azure server create -VV
DEBUG: Using configuration from /home/azureuser/chef-repo/.chef/knife.rb
INFO: validating...
INFO: creating...
INFO: Using the winrm protocol for bootstrapping
INFO: calling get images
.INFO: calling get hostedservices
.INFO: calling post hostedservices
DEBUG: 

  chef35sur
  
  Explicitly created hosted service
  West US

.INFO: Waiting while status returns InProgress
DEBUG: not InProgress : 

  0828b7fc-bc91-4b78-b197-db20ce5d9912
  Succeeded
  200

INFO: calling get storageservices
.INFO: calling get hostedservices
.INFO: calling get hostedservices/chef26sur/deploymentslots/Production
.INFO: calling get hostedservices/chef35sur/deploymentslots/Production
.WARN: ResourceNotFound : No deployments were found.
INFO: calling get hostedservices/marcinsservice3/deploymentslots/Production
.WARN: ResourceNotFound : No deployments were found.
INFO: calling get hostedservices/sureshopsch1/deploymentslots/Production
.INFO: calling post hostedservices/chef35sur/deployments
DEBUG: 

  chef35sur
  Production
  
  
    
      chef35sur
      
      PersistentVMRole
      
  
    WindowsProvisioningConfiguration
    chef35sur
    a1B2C3D4@
    false
    false
  
  
    NetworkConfiguration
    
      
        5985
        WinRM
        5985
        TCP
      
      
        66
        tcpport_66_chef35sur
        66
        TCP
      
      
        80
        tcpport_80_chef35sur
        80
        TCP
      
      
        3389
        tcpport_3389_chef35sur
        3389
        TCP
      
      
        77
        udpport_77_chef35sur
        77
        UDP
      
      
        88
        udpport_88_chef35sur
        88
        UDP
      
      
        99
        udpport_99_chef35sur
        99
        UDP
      
    
  

      
      
  http://sureshtest.blob.core.windows.net/vhds/disk_2012_11_27
  win2k8winrm2

      Medium
    
  

.INFO: Waiting while status returns InProgress
....................................DEBUG: not InProgress : 15b0ae49-af47-469b-8321-f64bae37e595
  Succeeded
  200

INFO: calling get hostedservices
.INFO: calling get hostedservices/chef26sur/deploymentslots/Production
.INFO: calling get hostedservices/chef35sur/deploymentslots/Production
.INFO: calling get hostedservices/marcinsservice3/deploymentslots/Product
.WARN: ResourceNotFound : No deployments were found.
INFO: calling get hostedservices/sureshopsch1/deploymentslots/Production
.
INFO: calling get images
.
Waiting for winrm on 168.61.9.229:5985......ERROR: knife encountered an u                                                                                               nexpected error
This may be a bug in the 'azure server create' knife command or plugin
Please collect the output of this command with the `-VV` option before fi                                                                                               ling a bug report.
Exception: NoMethodError: undefined method `id' for #
chirag-jog commented 11 years ago

Hello Suresh, Looks like certain portions of the log is missing including the XMLs payloads. Can you resend that?

Regards, Chirag Jog Chief Technology Officer, Clogeny Technologies | http://clogeny.com (M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 28, 2012 at 1:49 AM, sureshreddygithub <notifications@github.com

wrote:

Hi Chirag,

Below is the output with -VV option root@sureshopsch1:/home/azureuser/chef-repo/.chef# knife azure server create -VV DEBUG: Using configuration from /home/azureuser/chef-repo/.chef/knife.rb INFO: validating... INFO: creating... INFO: Using the winrm protocol for bootstrapping INFO: calling get images .INFO: calling get hostedservices .INFO: calling post hostedservices DEBUG: <?xml version="1.0"?>

chef35sur Y2hlZjM1c3Vy

Explicitly created hosted service West US

.INFO: Waiting while status returns InProgress DEBUG: not InProgress : <?xml version="1.0"?>

0828b7fc-bc91-4b78-b197-db20ce5d9912 Succeeded 200

INFO: calling get storageservices .INFO: calling get hostedservices .INFO: calling get hostedservices/chef26sur/deploymentslots/Production .INFO: calling get hostedservices/chef35sur/deploymentslots/Production .WARN: ResourceNotFound : No deployments were found. INFO: calling get hostedservices/marcinsservice3/deploymentslots/Production .WARN: ResourceNotFound : No deployments were found. INFO: calling get hostedservices/sureshopsch1/deploymentslots/Production .INFO: calling post hostedservices/chef35sur/deployments DEBUG: <?xml version="1.0"?>

chef35sur Production Y2hlZjM1c3Vy

chef35sur

PersistentVMRole

WindowsProvisioningConfiguration chef35sur a1B2C3D4@ false false

NetworkConfiguration

5985 WinRM 5985 TCP

66 tcpport_66_chef35sur 66 TCP

80 tcpport_80_chef35sur 80 TCP

3389 tcpport_3389_chef35sur 3389 TCP

77 udpport_77_chef35sur 77 UDP

88 udpport_88_chef35sur 88 UDP

99 udpport_99_chef35sur 99 UDP

Y2hlZjM1c3Vy

http://sureshtest.blob.core.windows.net/vhds/disk_2012_11_27 win2k8winrm2

Medium

.INFO: Waiting while status returns InProgress ....................................DEBUG: not InProgress : <?xml version

— Reply to this email directly or view it on GitHubhttps://github.com/opscode/knife-azure/issues/10#issuecomment-10775010.

snallami commented 11 years ago

Hi Chirag,

Get the entire log from http://pslstorage.blob.core.windows.net/sureshpsl/serverCreate.txt

Thanks, Suresh

chirag-jog commented 11 years ago

Right. thats a legit bug. I have pushed a fix for it to master

Regards, Chirag Jog Chief Technology Officer, Clogeny Technologies | http://clogeny.com (M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 28, 2012 at 8:08 AM, sureshreddygithub <notifications@github.com

wrote:

Hi Chirag,

Get the entire log from http://pslstorage.blob.core.windows.net/sureshpsl/serverCreate.txt

Thanks, Suresh

— Reply to this email directly or view it on GitHubhttps://github.com/opscode/knife-azure/issues/10#issuecomment-10787445.

snallami commented 11 years ago

Great! BTW please let me know when this gets reflected in ruby gem http://rubygems.org/gems/knife-azure

snallami commented 11 years ago

Hi Chirag,

Just now tested , able to bootstarp. However it looks like linux receipe of chef-client is getting executed in Windows.

Waiting for winrm on 168.62.217.82:5985......Bootstrapping Chef on 168.62.217.82 168.62.217.82 ) was unexpected at this time. 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 2" 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 3" 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 4" 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.imrOuJ59V3zLbaJ/J/isFmElf4RZ4svER1UvPbZ14vv7EQy5heTj5aOlZpOwt98w 168.62.217.82 imrOuJ59V3zLbaJ/J/isFmElf4RZ4svER1UvPbZ14vv7EQy5heTj5aOlZpOwt98w 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.2g+Kpfr4NglkPVutLfCKCzSeLOBC9DzumQdR932xwmRodLhqnBt+ZBNdCEPn7l8c 168.62.217.82 2g+Kpfr4NglkPVutLfCKCzSeLOBC9DzumQdR932xwmRodLhqnBt+ZBNdCEPn7l8c 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.GUUVnje8ndTYFO/bjXFrCQnB08rd2TUntdTywojbHwKQG75+PT9qvg4AmYK+yScw 168.62.217.82 GUUVnje8ndTYFO/bjXFrCQnB08rd2TUntdTywojbHwKQG75+PT9qvg4AmYK+yScw 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.HGSWtLWvm/9vBtAc4XIbsuLfDDvxSmnwxIOo+3r9a46sk+fhXvNEYQDVRyf2a4m3 168.62.217.82 HGSWtLWvm/9vBtAc4XIbsuLfDDvxSmnwxIOo+3r9a46sk+fhXvNEYQDVRyf2a4m3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.4ckeI940Z0OlmvbJ2ODgCW07V8EqKrIMbiogewIDAQABAoIBAAGWj6lkeJUH7ph0 168.62.217.82 4ckeI940Z0OlmvbJ2ODgCW07V8EqKrIMbiogewIDAQABAoIBAAGWj6lkeJUH7ph0 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Ucs1KKFNuHQ4Yrl5AAWCkMpCwwKuz22nqRS54XVOpa26W0if8ljzRMma/IB3S2C3 168.62.217.82 Ucs1KKFNuHQ4Yrl5AAWCkMpCwwKuz22nqRS54XVOpa26W0if8ljzRMma/IB3S2C3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.1xtSqvkQ06j4BwOtegjhp45Ov4d2HJxNoe4dhJ4FCXGNOdqXD+KImu9s/bU2IbC6 168.62.217.82 1xtSqvkQ06j4BwOtegjhp45Ov4d2HJxNoe4dhJ4FCXGNOdqXD+KImu9s/bU2IbC6 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo./x+iQJwGLzrTO2kXeoI2ik5zGc7Axn+qiIHJkhrcYq21NH7LIMy/VaqPOP38WeYs 168.62.217.82 /x+iQJwGLzrTO2kXeoI2ik5zGc7Axn+qiIHJkhrcYq21NH7LIMy/VaqPOP38WeYs 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.67kimZqZYn20QmoGtOXIZ5+O1oMJbIRwScmsO5H6okQtQSxBnxL7xSiMhN2tnGU3 168.62.217.82 67kimZqZYn20QmoGtOXIZ5+O1oMJbIRwScmsO5H6okQtQSxBnxL7xSiMhN2tnGU3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Fzdrdrh9E4m3JJkqlPjFp8zPJ9qFMyOYfbP4PQThjwEdH6c9fpFBxUK1wS/zKkHc 168.62.217.82 Fzdrdrh9E4m3JJkqlPjFp8zPJ9qFMyOYfbP4PQThjwEdH6c9fpFBxUK1wS/zKkHc 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.qVWh/lECgYEA1XaSNDCH5dgrI/iHArc6aAOLLL5l1Yvk6pbQmNGzudDIqxpdKA1O 168.62.217.82 qVWh/lECgYEA1XaSNDCH5dgrI/iHArc6aAOLLL5l1Yvk6pbQmNGzudDIqxpdKA1O 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.xo1c+Pqaj+lAljj/jPf9FuoWcuwrV7wTtGsy/mxwYt3gMYw028dI1FgxFrmuZG9e 168.62.217.82 xo1c+Pqaj+lAljj/jPf9FuoWcuwrV7wTtGsy/mxwYt3gMYw028dI1FgxFrmuZG9e 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.jUCDsBFFJjNLf/UH1u/zaUcjX3oEioTRvAQzoF5JAstwfyzE2bw9f3UCgYEAw6Uh 168.62.217.82 jUCDsBFFJjNLf/UH1u/zaUcjX3oEioTRvAQzoF5JAstwfyzE2bw9f3UCgYEAw6Uh 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.GYk1myLxfu2TkfS7O2m+wSSQ17u5DlVS8ZO/0otvf9T/PWiriPH4WbQEqoTy45pD 168.62.217.82 GYk1myLxfu2TkfS7O2m+wSSQ17u5DlVS8ZO/0otvf9T/PWiriPH4WbQEqoTy45pD 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.olr3c6s+CQBFgWtR8XKynlnWOxlNRjua08f9yJ6OGopHre/mXTSnhnt80oSXlXEJ 168.62.217.82 olr3c6s+CQBFgWtR8XKynlnWOxlNRjua08f9yJ6OGopHre/mXTSnhnt80oSXlXEJ 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.yK9ACxV53+ReGIhxXpUknV5+8gvFwD9dEayTki8CgYEA0kpsQBPrXWg3H8mvn+JI 168.62.217.82 yK9ACxV53+ReGIhxXpUknV5+8gvFwD9dEayTki8CgYEA0kpsQBPrXWg3H8mvn+JI 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.HL4Y9qxfgB/AFccbmuFD0HO5rK5dRZ7Ok1YiWHnxmIKuiQ9/2i1YXKGiGfdFv7ne 168.62.217.82 HL4Y9qxfgB/AFccbmuFD0HO5rK5dRZ7Ok1YiWHnxmIKuiQ9/2i1YXKGiGfdFv7ne 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.I6hT5UeI9C0mt0krrbRGsEJtobis7+6zVC5RTTvGRprT7yvCXGGpB3b4hw+at6ef 168.62.217.82 I6hT5UeI9C0mt0krrbRGsEJtobis7+6zVC5RTTvGRprT7yvCXGGpB3b4hw+at6ef 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Qz1UatFX1fP7UJ4XE3WZlB0CgYEArL+CkXSow5nAGK4XzhmEtPoy94Gc7xAPX4uR 168.62.217.82 Qz1UatFX1fP7UJ4XE3WZlB0CgYEArL+CkXSow5nAGK4XzhmEtPoy94Gc7xAPX4uR 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.WEN4baS2x+2/jW59f8b/3dzo/dO0T6mnrJSbyCNc/D+kH5kuWn5HHzD9y2MU6z24 168.62.217.82 WEN4baS2x+2/jW59f8b/3dzo/dO0T6mnrJSbyCNc/D+kH5kuWn5HHzD9y2MU6z24 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.AOWmvVza5q5QilG4W3YhscoZthxjaA3OcMflSaQl375aI1lemQAhu15zwq8IZi7M 168.62.217.82 AOWmvVza5q5QilG4W3YhscoZthxjaA3OcMflSaQl375aI1lemQAhu15zwq8IZi7M 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.s81o4/sCgYBGLUQ71HubyamHYr8EP74PoG4Se6B/5v/H5kh81Vv+T7zMIfGfDKmI 168.62.217.82 s81o4/sCgYBGLUQ71HubyamHYr8EP74PoG4Se6B/5v/H5kh81Vv+T7zMIfGfDKmI 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.V8PJVKASVvUi3rKYUBM3Uzy6Nbgt43FVDD6gYALY+a1NBcu0z8br7YfUS61FcjXB 168.62.217.82 V8PJVKASVvUi3rKYUBM3Uzy6Nbgt43FVDD6gYALY+a1NBcu0z8br7YfUS61FcjXB 168.62.217.82 'EOP' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 The system cannot find the path specified. 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.fxb6veH0BrM5WjcNJxudTkDvwABeinnf0RSzf+4qqgg97zI1WZuGBQ== 168.62.217.82 fxb6veH0BrM5WjcNJxudTkDvwABeinnf0RSzf+4qqgg97zI1WZuGBQ== 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.-----END RSA PRIVATE KEY----- 168.62.217.82 -----END RSA PRIVATE KEY----- 168.62.217.82 168.62.217.82 C:\Users\Administrator>EOP 168.62.217.82 168.62.217.82 C:\Users\Administrator>awk NF /tmp/validation.pem 1>/etc/chef/validation.pem 168.62.217.82 168.62.217.82 C:\Users\Administrator>rm /tmp/validation.pem 168.62.217.82 168.62.217.82 C:\Users\Administrator>chmod 0600 /etc/chef/validation.pem 168.62.217.82 C:\Users\Administrator>cat <<'EOP' 168.62.217.82 'rm' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 'chmod' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 << was unexpected at this time.

chirag-jog commented 11 years ago

Ok, You need to explicitly mention the template-file option to point to windows-chef-client-msi.erb which is available under: knife-windows-0.5.10/lib/knife-windows/chef/knife/bootstrap/windows-chef-client-msi.erb . I will update the documentation accordingly with this mention.

Regards, Chirag Jog Chief Technology Officer, Clogeny Technologies | http://clogeny.com (M) 0091-9766619440 | Skype: chirag.jog

On Wed, Nov 28, 2012 at 12:36 PM, sureshreddygithub < notifications@github.com> wrote:

Hi Chirag,

Just now tested , able to bootstarp. However it looks like linux receipe of chef-client is getting executed in Windows.

Waiting for winrm on 168.62.217.82:5985......Bootstrapping Chef on 168.62.217.82 168.62.217.82 ) was unexpected at this time. 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 2" 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 3" 168.62.217.82 "Rendering 'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-41195-1354085687.bat' chunk 4" 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.imrOuJ59V3zLbaJ/J/isFmElf4RZ4svER1UvPbZ14vv7EQy5heTj5aOlZpOwt98w 168.62.217.82 imrOuJ59V3zLbaJ/J/isFmElf4RZ4svER1UvPbZ14vv7EQy5heTj5aOlZpOwt98w 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.2g+Kpfr4NglkPVutLfCKCzSeLOBC9DzumQdR932xwmRodLhqnBt+ZBNdCEPn7l8c 168.62.217.82 2g+Kpfr4NglkPVutLfCKCzSeLOBC9DzumQdR932xwmRodLhqnBt+ZBNdCEPn7l8c 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.GUUVnje8ndTYFO/bjXFrCQnB08rd2TUntdTywojbHwKQG75+PT9qvg4AmYK+yScw 168.62.217.82 GUUVnje8ndTYFO/bjXFrCQnB08rd2TUntdTywojbHwKQG75+PT9qvg4AmYK+yScw 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.HGSWtLWvm/9vBtAc4XIbsuLfDDvxSmnwxIOo+3r9a46sk+fhXvNEYQDVRyf2a4m3 168.62.217.82 HGSWtLWvm/9vBtAc4XIbsuLfDDvxSmnwxIOo+3r9a46sk+fhXvNEYQDVRyf2a4m3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.4ckeI940Z0OlmvbJ2ODgCW07V8EqKrIMbiogewIDAQABAoIBAAGWj6lkeJUH7ph0 168.62.217.82 4ckeI940Z0OlmvbJ2ODgCW07V8EqKrIMbiogewIDAQABAoIBAAGWj6lkeJUH7ph0 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Ucs1KKFNuHQ4Yrl5AAWCkMpCwwKuz22nqRS54XVOpa26W0if8ljzRMma/IB3S2C3 168.62.217.82 Ucs1KKFNuHQ4Yrl5AAWCkMpCwwKuz22nqRS54XVOpa26W0if8ljzRMma/IB3S2C3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.1xtSqvkQ06j4BwOtegjhp45Ov4d2HJxNoe4dhJ4FCXGNOdqXD+KImu9s/bU2IbC6 168.62.217.82 1xtSqvkQ06j4BwOtegjhp45Ov4d2HJxNoe4dhJ4FCXGNOdqXD+KImu9s/bU2IbC6 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo./x+iQJwGLzrTO2kXeoI2ik5zGc7Axn+qiIHJkhrcYq21NH7LIMy/VaqPOP38WeYs 168.62.217.82 /x+iQJwGLzrTO2kXeoI2ik5zGc7Axn+qiIHJkhrcYq21NH7LIMy/VaqPOP38WeYs 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.67kimZqZYn20QmoGtOXIZ5+O1oMJbIRwScmsO5H6okQtQSxBnxL7xSiMhN2tnGU3 168.62.217.82 67kimZqZYn20QmoGtOXIZ5+O1oMJbIRwScmsO5H6okQtQSxBnxL7xSiMhN2tnGU3 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Fzdrdrh9E4m3JJkqlPjFp8zPJ9qFMyOYfbP4PQThjwEdH6c9fpFBxUK1wS/zKkHc 168.62.217.82 Fzdrdrh9E4m3JJkqlPjFp8zPJ9qFMyOYfbP4PQThjwEdH6c9fpFBxUK1wS/zKkHc 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.qVWh/lECgYEA1XaSNDCH5dgrI/iHArc6aAOLLL5l1Yvk6pbQmNGzudDIqxpdKA1O 168.62.217.82 qVWh/lECgYEA1XaSNDCH5dgrI/iHArc6aAOLLL5l1Yvk6pbQmNGzudDIqxpdKA1O 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.xo1c+Pqaj+lAljj/jPf9FuoWcuwrV7wTtGsy/mxwYt3gMYw028dI1FgxFrmuZG9e 168.62.217.82 xo1c+Pqaj+lAljj/jPf9FuoWcuwrV7wTtGsy/mxwYt3gMYw028dI1FgxFrmuZG9e 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.jUCDsBFFJjNLf/UH1u/zaUcjX3oEioTRvAQzoF5JAstwfyzE2bw9f3UCgYEAw6Uh 168.62.217.82 jUCDsBFFJjNLf/UH1u/zaUcjX3oEioTRvAQzoF5JAstwfyzE2bw9f3UCgYEAw6Uh 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.GYk1myLxfu2TkfS7O2m+wSSQ17u5DlVS8ZO/0otvf9T/PWiriPH4WbQEqoTy45pD 168.62.217.82 GYk1myLxfu2TkfS7O2m+wSSQ17u5DlVS8ZO/0otvf9T/PWiriPH4WbQEqoTy45pD 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.olr3c6s+CQBFgWtR8XKynlnWOxlNRjua08f9yJ6OGopHre/mXTSnhnt80oSXlXEJ 168.62.217.82 olr3c6s+CQBFgWtR8XKynlnWOxlNRjua08f9yJ6OGopHre/mXTSnhnt80oSXlXEJ 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.yK9ACxV53+ReGIhxXpUknV5+8gvFwD9dEayTki8CgYEA0kpsQBPrXWg3H8mvn+JI 168.62.217.82 yK9ACxV53+ReGIhxXpUknV5+8gvFwD9dEayTki8CgYEA0kpsQBPrXWg3H8mvn+JI 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.HL4Y9qxfgB/AFccbmuFD0HO5rK5dRZ7Ok1YiWHnxmIKuiQ9/2i1YXKGiGfdFv7ne 168.62.217.82 HL4Y9qxfgB/AFccbmuFD0HO5rK5dRZ7Ok1YiWHnxmIKuiQ9/2i1YXKGiGfdFv7ne 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.I6hT5UeI9C0mt0krrbRGsEJtobis7+6zVC5RTTvGRprT7yvCXGGpB3b4hw+at6ef 168.62.217.82 I6hT5UeI9C0mt0krrbRGsEJtobis7+6zVC5RTTvGRprT7yvCXGGpB3b4hw+at6ef 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.Qz1UatFX1fP7UJ4XE3WZlB0CgYEArL+CkXSow5nAGK4XzhmEtPoy94Gc7xAPX4uR 168.62.217.82 Qz1UatFX1fP7UJ4XE3WZlB0CgYEArL+CkXSow5nAGK4XzhmEtPoy94Gc7xAPX4uR 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.WEN4baS2x+2/jW59f8b/3dzo/dO0T6mnrJSbyCNc/D+kH5kuWn5HHzD9y2MU6z24 168.62.217.82 WEN4baS2x+2/jW59f8b/3dzo/dO0T6mnrJSbyCNc/D+kH5kuWn5HHzD9y2MU6z24 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.AOWmvVza5q5QilG4W3YhscoZthxjaA3OcMflSaQl375aI1lemQAhu15zwq8IZi7M 168.62.217.82 AOWmvVza5q5QilG4W3YhscoZthxjaA3OcMflSaQl375aI1lemQAhu15zwq8IZi7M 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.s81o4/sCgYBGLUQ71HubyamHYr8EP74PoG4Se6B/5v/H5kh81Vv+T7zMIfGfDKmI 168.62.217.82 s81o4/sCgYBGLUQ71HubyamHYr8EP74PoG4Se6B/5v/H5kh81Vv+T7zMIfGfDKmI 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.V8PJVKASVvUi3rKYUBM3Uzy6Nbgt43FVDD6gYALY+a1NBcu0z8br7YfUS61FcjXB 168.62.217.82 V8PJVKASVvUi3rKYUBM3Uzy6Nbgt43FVDD6gYALY+a1NBcu0z8br7YfUS61FcjXB 168.62.217.82 'EOP' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 The system cannot find the path specified. 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.fxb6veH0BrM5WjcNJxudTkDvwABeinnf0RSzf+4qqgg97zI1WZuGBQ== 168.62.217.82 fxb6veH0BrM5WjcNJxudTkDvwABeinnf0RSzf+4qqgg97zI1WZuGBQ== 168.62.217.82 168.62.217.82 C:\Users\Administrator>echo.-----END RSA PRIVATE KEY----- 168.62.217.82 -----END RSA PRIVATE KEY----- 168.62.217.82 168.62.217.82 C:\Users\Administrator>EOP 168.62.217.82 168.62.217.82 C:\Users\Administrator>awk NF /tmp/validation.pem 1>/etc/chef/validation.pem 168.62.217.82 168.62.217.82 C:\Users\Administrator>rm /tmp/validation.pem 168.62.217.82 168.62.217.82 C:\Users\Administrator>chmod 0600 /etc/chef/validation.pem 168.62.217.82 C:\Users\Administrator>cat <<'EOP' 168.62.217.82 'rm' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 'chmod' is not recognized as an internal or external command, 168.62.217.82 operable program or batch file. 168.62.217.82 << was unexpected at this time.

— Reply to this email directly or view it on GitHubhttps://github.com/opscode/knife-azure/issues/10#issuecomment-10792800.

snallami commented 11 years ago

Thanks , it worked. command used knife azure server create -r windows,mysql --template-file /home/azureuser/knife-windows/lib/chef/knife/bootstrap/windows-chef-client-msi.erb

So two things needs to be taken care from your side 1) Update ruby jem with the fix (http://rubygems.org/gems/knife-azure) 2) Add some detailed documentation around this so that others also can get benefited