acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

acs-engine deploy fails for national clouds (e.g. Azure Government) due to missing AKS.Linux.Billing extension

Open gsacavdm opened this issue 8 years ago • 7 comments

Is this a request for help?: No

Is this an ISSUE or FEATURE REQUEST?: Issue

What version of acs-engine?: v0.19.1

Orchestrator and version: Kubernetes v1.8

What happened: Attempted acs-engine deploy to Azure Government (with --azure-env AzureUSGovernmentCloud) but it failed with the following error:

ERRO[0357] {"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"},{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"},{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"},{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"},{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"},{"code":"NotFound","message":"{\r\n "error": {\r\n "code": "ArtifactNotFound",\r\n "message": "Extension with publisher 'Microsoft.AKS', type 'Compute.AKS-Engine.Linux.Billing', and type handler version '1.0' could not be found in the extension repository."\r\n }\r\n}"}]}}

What you expected to happen: Deployment should complete successfully either without the extension (which is how it worked in previous versions) or the extension should be published in national clouds. Probably the former is preferable though I'm not familiar with the extension and it's purpose.

How to reproduce it (as minimally and precisely as possible): Run acs-engine deploy --cloud-env AzureUSGovernment with all the other required parameters for the deploy command.

Anything else we need to know: N/A

gsacavdm avatar Jul 05 '18 06:07 gsacavdm

Same failure with AzureChinaCloud environment

karataliu avatar Jul 06 '18 06:07 karataliu

@jackfrancis , thoughts on this? I noticed you were the one that introduced this extension. Since you are the most familiar with it, how hard would it be to make it optional? I started exploring it (see my PR), not sure how much time/effort it would take me.

gsacavdm avatar Jul 07 '18 02:07 gsacavdm

Same failure with AzureGermanCloud environment.

ghost avatar Jul 10 '18 03:07 ghost

@gsacavdm can you tell us which version of acs-engine billing extensions were added? We are hoping to downgrade acs-engine as a work around for now.

JeffreyGarrett avatar Jul 10 '18 03:07 JeffreyGarrett

@JeffreyGarrett v0.19+ has the the extensions. You can try 0.18*

karataliu avatar Jul 10 '18 05:07 karataliu

@JeffreyGarrett you can alter the azuredeploy.json file and remove the resources if you require the latest version.

y325A avatar Jul 10 '18 08:07 y325A

You can also build my branch where I made this configurable and add the following to your apiModel to disable the extension, then you'll be able to run deploy, upgrade, etc:

  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes",
      "kubernetesConfig": {
        "useAksExtension": false
      }
    },

gsacavdm avatar Jul 10 '18 08:07 gsacavdm