Azure / azure-cnab-quickstarts

CNAB packages to deploy applications from Azure to anywhere at all. Including Azure.
MIT License
57 stars 16 forks source link

porter/cloudcasa deployment container failing with error on azure #100

Open nitishdsharma opened 1 year ago

nitishdsharma commented 1 year ago

Issue:

Getting permission denied error while deploying cloudcasa cnab app on azure.

Container Logs:

2023/01/19 10:18:20 /usr/local/bin/porter install cloudcasa -d azure --tag catalogicsoftware/cloudcasa:v3.2.0 --cred /tmp/cnabarmdriver007722306/cloudcasa-creds.yaml --param-file /tmp/cnabarmdriver148181945/cloudcasa-params.txt installing cloudcasa... expath:/usr/local/bin Running install action on cloudcasa Creating Azure Container Instance To Execute Bundle Running Bundle Instance in Azure Container Instance mkdir: cannot create directory '/porter': Permission denied Cleaning up Azure Resources created to execute Bundle Deleting Outputs from Azure FileShare Error: Running install action on cloudcasa Error:running invocation instance using ACI failed: Container execution failed Error: failed to install the bundle: Command driver (azure) failed executing bundle: exit status 1 2023/01/19 10:20:43 porter command failed with exit status 1

Expected Behavior

Cloudcasa app should be deployed successfully on the AKS cluster.

Steps to Reproduce the Problem

  1. Deploy the CloudCasa CNAB app using the simple Deployment button from link.
  2. Here we need to provide client_id, secret, kubeconfig file of the AKS cluster and cluster_id. For testing cluster_id (63a421e318d928f69599d9fa) can be used.

Note: Also I have noticed that the 0.25.0 cnabquickstarts.azurecr.io/cnabarmdriver image is using very old version of porter. For testing we have used porter v1.0.4 version.

VinozzZ commented 1 year ago

Hi there, thank you for letting us know about your issue. The templates created in this repo and the cnab-azure-driver are meant to only be used with Porter v0 instead of v1. https://v0.getporter.org/docs/ I have submitted a PR in this repo to update the doc #101 I noticed that the bundles that you provided through the link is written in Porter v1 schema. Please try to follow the v0 doc and write your bundle with the v0 schema and try again. If you ran into more issue, please let us know

HowardvanRooijen commented 1 year ago

We (@MikeLarah) would like to do some updates to this repo... we just need to find the bandwidth.

carolynvs commented 1 year ago

@HowardvanRooijen / @MikeLarah That would be great! Please let me know if you have questions about any v1 changes! 👍