Comments (4)
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.
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.
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.
Fixed
from spells.
Related Issues (20)
- openstack-novalxd: add bionic images to glance
- cdk Failure in step 02_get-kubectl after-deploy (macos, py3.7 can't find yaml) HOT 6
- Make cloud integration optional
- NovaLXD networks not created HOT 3
- `conjure-up kubernetes` not completing graylog deployment HOT 15
- openstack-novalxd - networks are sometimes created in the wrong 'admin' project HOT 2
- UI indicates Pike, but Rocky is actually deployed HOT 1
- Unable to create an instance in newly deployed openstack-base on MAAS HOT 1
- canonical-kubernetes fails to deploy with "Waiting for kube-system pods to start" HOT 5
- Upgrade Prometheus to version 2.X+ HOT 2
- Rancher container is way out of date/wrong HOT 2
- canonical-kubernetes fails to deploy with "Waiting for kube-system pods to start", dir storage selected HOT 2
- OpenStack Spells Index is Incorrect HOT 2
- openstack-novalxd needs to be updated for Rocky
- conjure-up: no xenial images found HOT 6
- k8s 02_get-kubectl should mktemp before fetching kubectl to pwd HOT 1
- update addons-aliases for charmed-k8s HOT 2
- After renaming cdk to charmed kubernetes kubernetes-core was still pointing to the old link HOT 1
- feature request: create spell for cloud foundry server HOT 2
- AWS option not available on conjure-up kubernetes-core HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spells.