Azure / azure-sdk-for-node

Azure SDK for Node.js - Documentation
https://github.com/Azure/azure-sdk-for-node#documentation
MIT License
1.19k stars 566 forks source link

vm disk upload command broken in 0.6.7 version works fine in 0.6.6 #457

Closed babumuralidharan closed 11 years ago

babumuralidharan commented 11 years ago

When issued this command in verbose we get the following error

info: Executing command vm disk upload verbose: Uploading page blob D:\ShortlistVHDs\ShortlistVHDs\oneGBFixedWS2008R2.vhd verbose: to http://vmrolestg/blob.core.windows.net/test1.vhd verbose: Max parallel connections = 96 verbose: File size = 1073742336 info: VHD size : 1024 MB info: Uploading 1048576.5 KB verbose: Blob container = $root verbose: Blob name = test1.vhd verbose: VHD block size = 2048 KB error: Cannot access blob /test1.vhd or its properties : ENOTFOUND error: getaddrinfo ENOENT silly: { silly: code: 'ENOTFOUND', silly: syscall: 'getaddrinfo', silly: whichFunction: 'createContainerIfNotExists', silly: message: 'getaddrinfo ENOENT', silly: stack: 'Error: getaddrinfo ENOENT\n at errnoException (dns.js:31:11)\n at Object.onanswer as oncompl ete', silly: type: undefined, silly: errno: 'ENOTFOUND', silly: arguments: undefined silly: } info: Error information has been recorded to azure_error verbose: Error: getaddrinfo ENOENT at errnoException (dns.js:31:11) at Object.onanswer as oncomplete error: vm disk upload command failed

Issue details in the below mail trail.

From: Mark Cowlishaw Sent: Tuesday, November 06, 2012 2:57 PM To: Babu Muralidharan (Collabera); Michael Washam; Kui Jia Cc: Eduard Koller (MS OPEN TECH); Sergey Shinkevich (Collabera); Anu Chandy (Persistent Systems Ltd.) Subject: RE: Azure vm disk upload error

Babu, can you file this issue please?

From: Babu Muralidharan (Collabera) Sent: Tuesday, November 06, 2012 2:55 PM To: Mark Cowlishaw; Michael Washam; Kui Jia Cc: Eduard Koller (MS OPEN TECH); Sergey Shinkevich (Collabera); Anu Chandy (Persistent Systems Ltd.) Subject: RE: Azure vm disk upload error

Hi Kui,

Could you please try to use the previous version and see if you still get the same error.

Use npm cache clear & issue the command npm install azure@0.6.6 –g and then issue your command and see if it works.

Mark,

This command seems to be broken in this release.

Thanks,

Babu M

From: Mark Cowlishaw Sent: Tuesday, November 06, 2012 12:45 PM To: Michael Washam; Kui Jia; Babu Muralidharan (Collabera) Subject: RE: Azure vm disk upload error

+Babu, have you seen this?

From: Michael Washam Sent: Tuesday, November 06, 2012 12:33 PM To: Kui Jia; Mark Cowlishaw Subject: RE: Azure vm disk upload error

Hey Mark,

Have you ran across this error on the CLI tools? I tried the same command he is using and it worked fine for me..

He can resolve the storage account IP as well from the same machine.

From: Kui Jia Sent: Tuesday, November 6, 2012 10:50 AM To: Michael Washam Subject: Azure vm disk upload error Importance: High

Hey Michael

How are you! Thanks for all the helps with Azure IaaS to the fields!

I had an urgent question related to a customer demo I will show tomorrow.

I am setting up my demo for customer tomorrow, and I am just following the demo listed in Azure Training Kit Oct 2012 release.

I had setup all Azure side correctly(storage, …)as well as the environment such as Azure powershell and nodes.js console…etc.

When I run setup-1.azure.cmd I always got errors:

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/iisvm1.vhd

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/iisvm2.vhd

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/sqlvm1.vhd

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/AdventureWorks.bak

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/azurestore.zip

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

D:\TechTrainings\AzureTrainingKit\Oct2012\Demos\MigratingWebFarm\Source>

I was able to reproduce this with a simple image file copy to my blob, such as:

D:\TechTrainings\AzureTrainingKit\Oct2012\Demos\MigratingWebFarm\Source>azure vm

disk upload http://i.i.com.com/cnwk.1d/i/tim/2012/08/01/en_0801_cordes_480x360.

jpg http://kuistorage1.blob.core.windows.net/webfarmvmblobs/test.jpg hzqwKwBEOOd

UUwY4A+FEEVC7BPvC7km76d5vN7uBnsVg+06ZpfVkX9/3hCMowrrPuDmZV/xmOTtvjexqojdCxQ==

info: Executing command vm disk upload

warn: Any existing blob will be overwritten at http://kuistorage1.blob.core.w

indows.net/webfarmvmblobs/test.jpg

error: getaddrinfo ENOENT

info: Error information has been recorded to azure_error

error: vm disk upload command failed

Tue Nov 06 2012 09:48:38 GMT-0800 (Pacific Standard Time):

{ [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

Error: getaddrinfo ENOENT

at errnoException (dns.js:31:11)

at Object.onanswer [as oncomplete] (dns.js:123:16)

I can’t find any info from web about this error, so I want to check with the real expert like you, hope you can share some suggestion on what’s going on here.

Many Thanks!

-Kui

babumuralidharan commented 11 years ago

This command is working as expected in the latest RC .