[chef] Re: Re: Re: Re: Re: Re: knife-azure image list issue


Chronological Thread 
  • From: Ashutosh Narayan < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: knife-azure image list issue
  • Date: Mon, 27 May 2013 19:35:56 +0530

On Mon, May 27, 2013 at 7:31 PM, Adam Edwards < " target="_blank"> > wrote:
Ah, I'm glad to hear that. :) We are in the process of updating the readme to help with troubleshooting, and we may have had an example that used that host name, so we should probably remove or update it. Of course, it would also make sense for us to validate all of the identity information to provide a more informative error message.

Thanks for trying out latest changes Ashutosh.
Welcome ! After all my problem is fixed now

--
Adam Edwards
Software Development Engineer, Opscode, Inc.



Hi Adam,

Thanks for pointing that out. I figured it out from the PublishSettings file that I have
given a wrong ServiceManagementUrl="https://management.core.windows.net"
After making that change, image listing and service listing are working like a charm :)

Thank you,

On Mon, May 27, 2013 at 7:16 PM, Adam Edwards < " target="_blank"> > wrote:
I've seen this behavior when specifying an incorrect subscription id or having a mismatch with the .pem file. I think double-checking your authentication information is the right place to focus. Because this can be error prone, we have a patch coming that allows you to directly use the .publishsettings file rather than extracting fields from it.

Also, just to check one more thing: is the management-preview.core.windows-int.net name below still valid? Now that Azure is officially supported (as of April 15), I would have thought that endpoint would be retired. If it works from Azure console, I guess that means it's still supported though.

-Adam


Here it goes -

knife azure image list -VV
INFO: calling get images
.WARN: AuthenticationFailed : The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.

Name      Category  Label     OS    

I have extracted data from the Management Data field into a separate file cert.pfx
and then decoded to create .pem file

On Mon, May 27, 2013 at 6:48 PM, Chirag Jog < " target="_blank"> > wrote:
Sorry I meant -VV (capital )


On Monday, May 27, 2013, Ashutosh Narayan wrote:
Hi Chirag,

I pulled the latest code from the master.
Here is how the new knife.rb looks -

knife[:azure_subscription_id] = "xxxxxxxxxxxxxxxxxxxxxxxxxx"
knife[:azure_mgmt_cert] = "/root/.ssh/managementCertificate.pem"
knife[:azure_api_host_name] = "management-preview.core.windows-int.net"

knife azure image list -vv throws -
Chef: 11.4.4
knife azure server list -vv  throws
Chef: 11.4.4

Thank you,

On Mon, May 27, 2013 at 5:54 PM, Chirag Jog < > wrote:
Hi Ashutosh,
Can you run both the commands with additional debugging options ( -vv) ?
Also can you pull the latest code from master - it has been updated today.

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



On Mon, May 27, 2013 at 5:47 PM, Ashutosh Narayan < > wrote:
Hi Folks,

I installed knife-azure plugin from git repo.
Here is my knife.rb looks -

knife[:azure_subscription_id] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
knife[:azure_mgmt_cert] = "/root/.ssh/managementCertificate.pem"
knife[:azure_host_name] = "management-preview.core.windows-int.net"

Now when I run knife azure image list , it doesn't throw image listing
from our Azure account. It just displays -

Name      Category  Label     OS

Even knife azure server list throws -

DNS Name  VM Name  Status  IP Address  SSH Port  WinRM Port

Without any details.

Image listing section on Azure dashboard shows one .VHD image file.
What is the possible cause for this failure ? 

Thank you,
--
Ashutosh Narayan

http://ashutoshn.wordpress.com/





--
Ashutosh Narayan

http://ashutoshn.wordpress.com/



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





--
Ashutosh Narayan

http://ashutoshn.wordpress.com/




--
Ashutosh Narayan

http://ashutoshn.wordpress.com/



Archive powered by MHonArc 2.6.16.

§