Hi guys, I am trying to get bundletester working while testing my charm(specifically, to deploy the built local charm into local lxd via amulet framework)
the command I used in tox.ini for invoking is:
bundletester -vl DEBUG -r json -o func-results.json --no-destroy
But I encountered with the following error:
func27 run-test-pre: PYTHONHASHSEED='0'
func27 runtests: commands[0] | bundletester -vl DEBUG -r json -o func-results.json --no-destroy
DEBUG:bundletester.utils:Updating JUJU_MODEL: "" -> "lxd-controller:admin/default"
DEBUG:root:Bootstrap environment: lxd-controller:admin/default
DEBUG:deployer.env:Connecting to lxd-controller:admin/default...
DEBUG:jujuclient.connector:Connecting to wss://10.45.92.67:17070/model/e8cc8e88-5b5b-4135-86a3-21c89da51e
c5/api
DEBUG:deployer.env:Connected.
DEBUG:deployer.env: Terminating machines forcefully
INFO:deployer.env: Waiting for machine termination
DEBUG:jujuclient.connector:Connecting to wss://10.45.92.67:17070/model/e8cc8e88-5b5b-4135-86a3-21c89da51e
c5/api
DEBUG:root:Waiting for applications to be removed...
DEBUG:runner:call ['/home/ubuntu/tmp/builds/hraftd/.tox/func27/bin/charm-proof'] (cwd: /tmp/bundletester-
00FVWx/hraftd)
DEBUG:runner:I: `display-name` not provided, add for custom naming in the UI
DEBUG:runner:Exit Code: 0
DEBUG:deployer.env: Terminating machines forcefully
INFO:deployer.env: Waiting for machine termination
DEBUG:jujuclient.connector:Connecting to wss://10.45.92.67:17070/model/e8cc8e88-5b5b-4135-86a3-21c89da51e
c5/api
DEBUG:root:Waiting for applications to be removed...
DEBUG:runner:call ['/tmp/bundletester-00FVWx/hraftd/tests/10-deploy'] (cwd: /tmp/bundletester-00FVWx/hraf
td)
DEBUG:runner:2019-03-13 16:34:24 Starting deployment of lxd-controller:admin/default
DEBUG:runner:2019-03-13 16:34:24 Deploying applications...
DEBUG:runner:2019-03-13 16:34:24 Deploying application hraftd using /tmp/charmzo8s9own/xenial/hraftd
DEBUG:runner:2019-03-13 16:34:25 Error deploying application 'hraftd'
DEBUG:runner:2019-03-13 16:34:25 Command (juju deploy -m lxd-controller:admin/default --series xenial /tm
p/charmzo8s9own/xenial/hraftd hraftd) Output:
DEBUG:runner:
DEBUG:runner: ERROR cannot repackage charm: symlink ".tox/func27/include/python2.7" is absolute: "/usr/in
clude/python2.7"
DEBUG:runner:
DEBUG:runner:2019-03-13 16:34:25 Deployment stopped. run time: 0.82
DEBUG:runner:E
I consider using bundletester with tox is a common practice in testing, but I didn’t see many issues relate to my case except this
Reference info
tox: tox-3.7.0
dev os: ubuntu xenial
juju version: 2.5.2-xenial-amd64
charm-tools: 2.5.2