Open amarzavery opened 11 years ago
Did some investigation on the following error:
Validation Errors: Error validating the .cscfg file against the .csdef file. Severity:Error, message:Setting 'AZURE_STORAGE_ACCOUNT' for role 'WorkerRole1' specified in the service configuration file is not declared in the service definition file.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:Setting 'AZURE_STORAGE_ACCESS_KEY' for role 'WorkerRole1' specified in the service configuration file is not declared in the service definition file. The long running operation tracking ID was: 09760d0d30484374bc7c19721795c187.
Mark thought that this could very well be serialization issue. To confirm this I tried unpacking package.cspkg that gets generated after executing the command --> azure service project package blobtestfriday -v
Found some steps to unpack a cspkg file on internet... Pasting those for reference
How to Unpack .cspkg file
As per Andre's guideline, I first converted cloud_package.cspkg file to a new version by doing the following steps
D:\test\blobuploadtest01>cspack /convertToCtpPackage:cloud_package.cspkg;cloud.cspkg
Then I compared ServiceDefinition.csdef files in both the unpacked packages
and ServiceDefinition.rdef files in both the packages
This is definitely a serialization issue. Access_key and Account_name xml nodes were missing. Hence, the above error makes sense.
Reopening issue#841 from azure-sdk-node https://github.com/WindowsAzure/azure-sdk-for-node/issues/841
Parent Issue #763 https://github.com/WindowsAzure/azure-sdk-for-node/issues/763
Node worker role Blobuploader App with vmsize = Medium
Test fails. I get an error : Validation Errors: Error validating the .cscfg file against the .csdef file. Severity:Error, message:Setting 'AZURE_STORAGE_ACCOUNT' for role 'WorkerRole1' specified in the service configuration file is not declared in the service definition file.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:Setting 'AZURE_STORAGE_ACCESS_KEY' for role 'WorkerRole1' specified in the service configuration file is not declared in the service definition file. The long running operation tracking ID was: 09760d0d30484374bc7c19721795c187.
Attaching the ServiceDefinition and ServiceConfiguration.cloud.cscfg files.
Steps to reproduce this issue:
Steps from here onwards give error
According to me the error is due to error in serializing the values in csdeg and cloud.cscfg files.