conjure-up crashes with Charmed Kubernetes

Bug #1861360 reported by Gilberto "Kowalsky" Martins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
conjure-up (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

start "conjure-up"
1 - select "Charmed Kubernetes"
2 - don't select any additional components, and select "CONTINUE"
3 - select "localhost" as the "New Cloud"
4 - select lxdbr0 as the "Network Bridge" and the only LXD storage pool I have
5 - select "conjure-up-localhost-afa (localhost)" as "Existing Self-Hosted Controllers"
6 - Select "flannel" as "the type of network plugin you wish to use for your cluster" and enter sudo password
7 - Make no change to any of the "7 Applications in charmed-kubernetes" and select "DEPLOY"
Here are the "7 Applications in charmed-kubernetes" shown:
   containerd Units: -
   easyrsa Units: 1
   etcd Units: 3
   flannel Units: -
   kubeapi-load-balancer Units: 1
   kubernetes-master Units: 2
   kubernetes-worker Units: 3

Then the following error screen is presented:
------------------------
Oops, there was a problem with your install:
Reason:
  addCharm() takes 3 positional arguments but 4 were given
  Review log messages at /home/stant/.cache/conjure-up/conjure-up.log If appropriate, please submit a bug here: https://github.com/conjure-up/conjure-up/issues/new
------------------------

Here is the last lines of "/home/stant/.cache/conjure-up/conjure-up.log"
------------------------
2020-01-29 20:32:15,174 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Setting ModelConnected at conjureup/juju.py:196 in task run at conjureup/controllers/juju/bootstrap/common.py:19
2020-01-29 20:32:15,175 [DEBUG] conjure-up/charmed-kubernetes - telemetry.py:32 - Juju Add Model: Done localhost/localhost
2020-01-29 20:32:15,175 [INFO] conjure-up/charmed-kubernetes - common.py:74 - Juju model created.
2020-01-29 20:32:15,178 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Setting Bootstrapped at conjureup/controllers/juju/bootstrap/common.py:42 in task run at conjureup/controllers/juju/bootstrap/common.py:19
2020-01-29 20:32:15,179 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Received Bootstrapped at conjureup/controllers/juju/bootstrap/gui.py:43
2020-01-29 20:32:15,185 [DEBUG] conjure-up/charmed-kubernetes - telemetry.py:17 - Showing screen: Deploy Status
2020-01-29 20:32:15,194 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Awaiting ModelConnected at conjureup/controllers/juju/deploy/common.py:12
2020-01-29 20:32:15,195 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Received ModelConnected at conjureup/controllers/juju/deploy/common.py:12
2020-01-29 20:32:15,196 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Setting PreDeployComplete at conjureup/controllers/juju/deploy/common.py:16
2020-01-29 20:32:15,196 [INFO] conjure-up/charmed-kubernetes - common.py:19 - Deploying Applications.
2020-01-29 20:32:15,222 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Awaiting ModelConnected at conjureup/controllers/juju/deploy/gui.py:25
2020-01-29 20:32:15,223 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Received ModelConnected at conjureup/controllers/juju/deploy/gui.py:25
2020-01-29 20:32:15,225 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Awaiting DeploymentComplete at conjureup/controllers/juju/deploy/common.py:41 in task _wait_for_applications at conjureup/controllers/juju/deploy/gui.py:82
2020-01-29 20:32:15,233 [DEBUG] conjure-up/charmed-kubernetes - events.py:52 - Setting Error at conjureup/events.py:149
2020-01-29 20:32:15,233 [ERROR] conjure-up/charmed-kubernetes - events.py:161 - Unhandled exception in <Task finished coro=<do_deploy() done, defined at /snap/conjure-up/1058/lib/python3.6/site-packages/conjureup/controllers/juju/deploy/common.py:11> exception=TypeError('addCharm() takes 3 positional arguments but 4 were given',)>
Traceback (most recent call last):
  File "/snap/conjure-up/1058/lib/python3.6/site-packages/conjureup/controllers/juju/deploy/common.py", line 30, in do_deploy
    await app.juju.client.deploy(fn)
  File "/snap/conjure-up/1058/lib/python3.6/site-packages/juju/model.py", line 1308, in deploy
    await handler.execute_plan()
  File "/snap/conjure-up/1058/lib/python3.6/site-packages/juju/model.py", line 1991, in execute_plan
    result = await method(*step.args)
TypeError: addCharm() takes 3 positional arguments but 4 were given
2020-01-29 20:32:15,239 [DEBUG] conjure-up/charmed-kubernetes - __init__.py:27 - Showing dialog for exception: addCharm() takes 3 positional arguments but 4 were given
------------------------

Extra information:

------------------------
$ sudo snap refresh
All snaps up to date.
------------------------

------------------------
1) The release of Ubuntu you are using, via 'lsb_release -rd'
$ lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04
------------------------

------------------------
2) The version of the package you are using:
$ snap info conjure-up
name: conjure-up
summary: Package runtime for conjure-up spells
publisher: Canonical✓
contact: https://github.com/conjure-up/conjure-up
license: unset
description: |
  This package provides conjure-up, an interface to installing spells that provide the user with an end to end walkthrough experience for installing and using big software.
commands:
  - conjure-up.conjure-down
  - conjure-up
  - conjure-up.juju
  - conjure-up.juju-wait
snap-id: ijQR4HjYlTAmIjELJm5XCpNAqbDZWJ3h
tracking: stable
refresh-date: yesterday at 14:42 -03
channels:
  stable: 2.6.10-20191109.1611 2019-11-09 (1058) 102MB classic
  candidate: 2.6.10-20191109.1611 2019-11-09 (1058) 102MB classic
  beta: 2.6.10-20191109.1611 2019-11-09 (1058) 102MB classic
  edge: 2.6.10-20191109.1611 2019-11-09 (1058) 102MB classic
installed: 2.6.10-20191109.1611 (1058) 102MB classic

        ==============================

$ snap info juju
name: juju
summary: Simple, secure and stable devops. Juju keeps complexity low and productivity high. Manage
  applications wherever they are run.
publisher: Canonical✓
contact: https://jaas.ai/
license: unset
description: |
  Juju allows you to retain a high-level understanding of all the parts of your system without being
  bogged down needing to know every hostname, every machine, every subnet and every specification of
  every storage volume.

  Focus on your applications and their relations. Create a development environment on your laptop,
  then recreate that environment on the public cloud, onto bare metal servers or into a Kubernetes
  cluster.

  Maximise your productivity by encapsulating specialist knowledge into Juju charms. They create
  repeatable, systematic and secure devops practices for all stages of your product’s lifecycle.
  Juju simplifies deployment, maintenance, scaling up and winding down.

  ## More detail

  Juju is an open source modelling tool for operating software in the cloud. Juju allows you to
  deploy, configure, manage, maintain, and scale cloud applications quickly and efficiently on
  public clouds, as well as on physical servers, OpenStack, and in containers. You can use Juju from
  the command line or through its GUI.

  In modern environments, applications are rarely deployed in isolation. Even simple applications
  may require several other applications in order to function - like a database and a web server,
  for example. For modeling a more complex system, e.g. OpenStack, many more applications need to be
  installed, configured and connected to each other. Juju's application modelling provides tools to
  express the intent of how to deploy such applications and to subsequently scale and manage them.

  At the lowest level, traditional configuration management tools like Chef and Puppet, or even
  general scripting languages such as Python or bash, automate the configuration of machines to a
  particular specification. With Juju, you create a model of the relationships between applications
  that make up your solution and you have a mapping of the parts of that model to machines. Juju
  then applies the necessary configuration management scripts to each machine in the model.

  Application-specific knowledge such as dependencies, scale-out practices, operational events like
  backups and updates, and integration options with other pieces of software are encapsulated in
  Juju's 'charms'. This knowledge can then be shared between team members, reused everywhere from
  laptops to virtual machines and cloud, and shared with other organizations.

  The charm defines everything you all collaboratively know about deploying that particular
  application brilliantly. All you have to do is use any available charm (or write your own), and
  the corresponding application will be deployed in seconds, on any cloud or server or virtual
  machine.

  ## Learn More

  - https://discourse.jujucharms.com/
  - https://docs.jujucharms.com/
  - https://github.com/juju/juju
commands:
  - juju
snap-id: e2CPHpB1fUxcKtCyJTsm5t3hN9axJ0yj
tracking: stable
refresh-date: 5 days ago, at 09:53 -03
channels:
  stable: 2.7.1 2020-01-20 (10357) 71MB classic
  candidate: ↑
  beta: ↑
  edge: 2.8-beta1+develop-0c977af 2020-01-29 (10465) 76MB classic
  2.7/stable: 2.7.1 2020-01-20 (10357) 71MB classic
  2.7/candidate: ↑
  2.7/beta: ↑
  2.7/edge: 2.7.2+2.7-1d6f205 2020-01-29 (10476) 76MB classic
  2.6/stable: 2.6.10 2019-10-30 (9484) 69MB classic
  2.6/candidate: ↑
  2.6/beta: ↑
  2.6/edge: 2.6.11+2.6-b96e122 2020-01-22 (10408) 75MB classic
  2.5/stable: 2.5.8 2019-06-27 (8361) 67MB classic
  2.5/candidate: ↑
  2.5/beta: ↑
  2.5/edge: 2.5.9+2.5-36af233 2019-07-24 (8546) 73MB classic
  2.4/stable: 2.4.7 2019-05-23 (6012) 58MB classic
  2.4/candidate: ↑
  2.4/beta: ↑
  2.4/edge: ↑
  2.3/stable: 2.3.9 2018-09-19 (5267) 55MB classic
  2.3/candidate: ↑
  2.3/beta: ↑
  2.3/edge: 2.3.10+2.3-41313d1 2019-03-25 (7080) 55MB classic
installed: 2.7.1 (10357) 71MB classic
------------------------

Revision history for this message
Gilberto "Kowalsky" Martins (gsilva-martins) wrote :
Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

FYI I think this is a duplicate of https://github.com/conjure-up/conjure-up/issues/1628

The fix https://github.com/conjure-up/conjure-up/pull/1640 has been merged but no snap has been released since then.

Changed in conjure-up (Ubuntu):
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.