canonical / kubeflow-tensorboards-operator

Tensorboards Operator
Apache License 2.0
2 stars 6 forks source link

tensorboard charms offline deployment fails "local charm missing OCI images. .." #97

Closed gustavosr98 closed 1 year ago

gustavosr98 commented 1 year ago

Same as https://github.com/canonical/kfp-operators/issues/351 Affecting both

$ juju deploy --trust --debug ./tensorboard-controller_840554c.charm --resource oci-image=$AWS_ECR_URL/kubeflownotebookswg/tensorboard-controller:v1.7.0

22:20:45 INFO  juju.cmd supercommand.go:56 running juju [2.9.45 afb8ee760af71d0bca8c3e4e0dc28af2dabc9b1d gc go1.20.8]
22:20:45 DEBUG juju.cmd supercommand.go:57   args: []string{"juju", "deploy", "--trust", "--debug", "./tensorboard-controller_840554c.charm", "--resource", "oci-image=701143232170.dkr.ecr.eu-west-1.amazonaws.com/kubeflownotebookswg/tensorboard-controller:v1.7.0"}
22:20:45 DEBUG juju.jujuclient proxy.go:65 unmarshalled proxy config for "kubernetes-port-forward"
22:20:45 INFO  juju.juju api.go:86 connecting to API addresses: [10.100.189.154:17070]
22:20:45 DEBUG juju.api apiclient.go:624 starting proxier for connection
22:20:45 DEBUG juju.api apiclient.go:628 tunnel proxy in use at localhost on port 34245
22:20:45 DEBUG juju.api apiclient.go:1151 successfully dialed "wss://localhost:34245/api"
22:20:45 INFO  juju.api apiclient.go:686 connection established to "wss://localhost:34245/api"
22:20:45 DEBUG juju.jujuclient proxy.go:65 unmarshalled proxy config for "kubernetes-port-forward"
22:20:45 INFO  juju.juju api.go:86 connecting to API addresses: [10.100.189.154:17070]
22:20:45 DEBUG juju.api apiclient.go:624 starting proxier for connection
22:20:45 DEBUG juju.api apiclient.go:628 tunnel proxy in use at localhost on port 39319
22:20:45 DEBUG juju.api apiclient.go:1151 successfully dialed "wss://localhost:39319/model/79be7fe7-68f5-488b-8a9e-231e6a0fafbb/api"
22:20:45 INFO  juju.api apiclient.go:686 connection established to "wss://localhost:39319/model/79be7fe7-68f5-488b-8a9e-231e6a0fafbb/api"
22:20:45 DEBUG juju.core.charm computedseries.go:27 series "focal" for charm "tensorboard-controller" with format 2, Kubernetes true
22:20:45 DEBUG juju.core.charm computedseries.go:27 series "focal" for charm "tensorboard-controller" with format 2, Kubernetes true
22:20:45 DEBUG juju.api monitor.go:35 RPC connection died
22:20:45 DEBUG juju.api monitor.go:35 RPC connection died
ERROR local charm missing OCI images for: tensorboard-controller-image
22:20:45 DEBUG cmd supercommand.go:537 error stack: 
github.com/juju/juju/cmd/juju/application/deployer.(*factory).validateResourcesNeededForLocalDeploy:677: local charm missing OCI images for: tensorboard-controller-image
github.com/juju/juju/cmd/juju/application/deployer.(*factory).maybeReadLocalCharm:406: 
github.com/juju/juju/cmd/juju/application/deployer.(*factory).GetDeployer:71: 
github.com/juju/juju/cmd/juju/application.(*DeployCommand).Run:909: 
juju deploy --trust --debug ./tensorboards-web-app_d2c0149.charm --resource oci-image=$AWS_ECR_URL/kubeflownotebookswg/tensorboards-web-app:v1.7.0

22:23:35 INFO  juju.cmd supercommand.go:56 running juju [2.9.45 afb8ee760af71d0bca8c3e4e0dc28af2dabc9b1d gc go1.20.8]
22:23:35 DEBUG juju.cmd supercommand.go:57   args: []string{"juju", "deploy", "--trust", "--debug", "./tensorboards-web-app_d2c0149.charm", "--resource", "oci-image=701143232170.dkr.ecr.eu-west-1.amazonaws.com/kubeflownotebookswg/tensorboards-web-app:v1.7.0"}
22:23:35 DEBUG juju.jujuclient proxy.go:65 unmarshalled proxy config for "kubernetes-port-forward"
22:23:35 INFO  juju.juju api.go:86 connecting to API addresses: [10.100.189.154:17070]
22:23:35 DEBUG juju.api apiclient.go:624 starting proxier for connection
22:23:35 DEBUG juju.api apiclient.go:628 tunnel proxy in use at localhost on port 33553
22:23:35 DEBUG juju.api apiclient.go:1151 successfully dialed "wss://localhost:33553/api"
22:23:35 INFO  juju.api apiclient.go:686 connection established to "wss://localhost:33553/api"
22:23:35 DEBUG juju.jujuclient proxy.go:65 unmarshalled proxy config for "kubernetes-port-forward"
22:23:35 INFO  juju.juju api.go:86 connecting to API addresses: [10.100.189.154:17070]
22:23:35 DEBUG juju.api apiclient.go:624 starting proxier for connection
22:23:35 DEBUG juju.api apiclient.go:628 tunnel proxy in use at localhost on port 38889
22:23:35 DEBUG juju.api apiclient.go:1151 successfully dialed "wss://localhost:38889/model/79be7fe7-68f5-488b-8a9e-231e6a0fafbb/api"
22:23:35 INFO  juju.api apiclient.go:686 connection established to "wss://localhost:38889/model/79be7fe7-68f5-488b-8a9e-231e6a0fafbb/api"
22:23:35 DEBUG juju.core.charm computedseries.go:27 series "focal" for charm "tensorboards-web-app" with format 2, Kubernetes true
22:23:35 DEBUG juju.core.charm computedseries.go:27 series "focal" for charm "tensorboards-web-app" with format 2, Kubernetes true
22:23:35 DEBUG juju.api monitor.go:35 RPC connection died
22:23:35 DEBUG juju.api monitor.go:35 RPC connection died
ERROR local charm missing OCI images for: tensorboards-web-app-image
22:23:35 DEBUG cmd supercommand.go:537 error stack: 
github.com/juju/juju/cmd/juju/application/deployer.(*factory).validateResourcesNeededForLocalDeploy:677: local charm missing OCI images for: tensorboards-web-app-image
github.com/juju/juju/cmd/juju/application/deployer.(*factory).maybeReadLocalCharm:406: 
github.com/juju/juju/cmd/juju/application/deployer.(*factory).GetDeployer:71: 
github.com/juju/juju/cmd/juju/application.(*DeployCommand).Run:909: 
orfeas-k commented 1 year ago

As commented in https://github.com/canonical/kfp-operators/issues/351#issuecomment-1759072323 too, it looks like you are using charms from latest/edge for tensorboards-operators too and those charms have changed the name of the resource they require (although it's the same resource). You can see that in the error you 've posted that they look for resources with their new names (web app and controller in main).

Please make sure you are using charms for the bundle you would like to deploy. If you 'd like to deploy charms from latest/edge, then you should change the --resource oci-image=.. to --resource new-name-for-image=...

gustavosr98 commented 1 year ago

@orfeas-k Thanks for the highlight, it seems the local charms I was provided came from another channel I just tested with --resource tensorboards-web-app-image= and --resource tensorboard-controller-image= and they work