KeyError: 'ServiceName' during snapdevicegw prod deploy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-deployer |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When snapstore team were deploying snapdevicegw to prod today, the deploy stopped with an exception (shown at bottom of this text)
The failure had no bad consequences as far as I know. I just had to retry the deploy command and it then finished without error. I'm reporting this because I want our deploys to finish reliably, without training the snap store team to ignore errors during prod deploys.
Just in case, the deploy command in question was:
ACTIVE=f30c7aa ./service-do snapdevicegw make manifests/
The error traceback,
found in wendigo /srv/mojo/
2019-11-05 21:03:12 [DEBUG] deployer.env: Delta unit: prometheus/0 change:{'since': '2019-11-
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run()
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
services=
File "/usr/lib/
services=
File "/usr/lib/
callback(
File "/usr/lib/
name = self._format_
File "/usr/lib/
eps[
KeyError: 'ServiceName'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
pr.
File "/usr/lib/
self.
File "/usr/lib/
env = _read_file(
File "/usr/lib/
with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
File "/usr/lib/
with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
TypeError: argument should be integer, not list
description: | updated |
description: | updated |
Changed in juju-deployer: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
I pestered Tim Van Steenburgh about this, and he helpfully got me up to speed:
> "My team hasn't supported/ maintained/ worked on juju-deployer since mid-2017. By that time, many /github. com/juju/ python- libjuju)."
> features had been merged into juju itself, and it was decided to direct any new stuff into the
> python juju client (https:/