juju / amulet

Testing harness and tools for Juju Charms
Other
17 stars 33 forks source link

remove-service in not available on Juju 2.0 #157

Closed ktsakalozos closed 8 years ago

ktsakalozos commented 8 years ago

Tear down operations will fail if they try to remove an application with:

2016-10-27 14:47:39 Deployment complete in 1121.31 seconds
/usr/lib/python3/dist-packages/path.py:1719: DeprecationWarning: path is deprecated. Use Path instead.
  warnings.warn(msg, DeprecationWarning)
.E
======================================================================
ERROR: tearDownClass (__main__.TestScaleStandalone)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bundletester-G4eqKk/spark/tests/03-scale-standalone.py", line 35, in tearDownClass
    cls.d.remove_service('sparkscale')
  File "/usr/lib/python3/dist-packages/amulet/deployer.py", line 325, in remove_service
    juju(['remove-service'] + list(services))
  File "/usr/lib/python3/dist-packages/amulet/helpers.py", line 71, in juju
    "{}".format(args, _as_text(err)))
OSError: juju command failed ['remove-service', 'sparkscale']:
ERROR unrecognized command: juju remove-service