GithubHelp home page GithubHelp logo

Comments (4)

adam-stokes avatar adam-stokes commented on August 17, 2024

Here is the error from the api server:

machine-0: 09:09:20 DEBUG juju.resource.state adding pending resource "kubernetes" for application "kubernetes-worker" (ID: b8994464-2d94-4217-8f45-b02a39073424)
machine-0: 09:09:20 TRACE juju.apiserver -> [A4] user-admin@local {"RequestId":25,"Response":{"pending-ids":["b8994464-2d94-4217-8f45-b02a39073424"]}}
machine-0: 09:09:20 TRACE juju.apiserver <- [A4] user-admin@local {"RequestId":26,"Type":"Application","Version":1,"Request":"Deploy","Params":{"applications":[{"application":"kubernetes-worker","series":"","c
harm-url":"cs:~containers/kubernetes-worker-1","channel":"","num-units":3,"config-yaml":"","constraints":{},"resources":{"kubernetes":"b8994464-2d94-4217-8f45-b02a39073424"}}]}}
machine-0: 09:09:20 TRACE juju.apiserver.common server RPC error [{github.com/juju/juju/apiserver/application/application.go:193: } {github.com/juju/juju/state/state.go:984: cannot add application "kubernetes-
worker"} {github.com/juju/juju/state/state.go:984: series is empty}]
machine-0: 09:09:20 TRACE juju.apiserver -> [A4] user-admin@local {"RequestId":26,"Response":{"results":[{"error":{"message":"cannot add application \"kubernetes-worker\": series is empty","code":""}}]}}

Need to add series to our deploy since at some point in time the juju deploy api made this a requirement

from spells.

adam-stokes avatar adam-stokes commented on August 17, 2024

We need to make sure bundles that do not have a series in their charm-url that we set the series item in our deploy call to that of the toplevel bundle series or to a series supported by the charm (that we capture through a charm api call)

from spells.

adam-stokes avatar adam-stokes commented on August 17, 2024

This is a working patch but didn't know if there was a better way to handle this inside the Service class of bundle-placement:

diff --git a/conjureup/juju.py b/conjureup/juju.py
index d87d8de..4f8c58a 100644
--- a/conjureup/juju.py
+++ b/conjureup/juju.py
@@ -394,7 +394,9 @@ def deploy_service(service, msg_cb=None, exc_cb=None):
                 application_to_resource_map[resource['Name']] = pid
             service.resources = application_to_resource_map

-        app_params = {"applications": [service.as_deployargs()]}
+        deploy_args = service.as_deployargs()
+        deploy_args['series'] = app.metadata_controller.series
+        app_params = {"applications": [deploy_args]}

         app.log.debug("Deploying {}: {}".format(service, app_params))

This also only pulls the default series from the bundle itself and not the avaialble supported series from each charm specifically

from spells.

adam-stokes avatar adam-stokes commented on August 17, 2024

Fixed

from spells.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.