Closed ac111 closed 7 years ago
Oh I believe I just fixed this very recently, it's just not released: https://github.com/signalfx/maestro-ng/commit/6fdb9b4b93ffed7b0b3bd5205389bb8f9fbbb9e5. Can you test with master and check that the fix I have works in your situation?
Excellent -- this seems to work nicely!
Cool. I'll close this and do a release soon.
We're testing Nexus 3.2-hosted Docker registries (moving away from a legacy v0.6.8 registry), and found that while service image pulls worked correctly, service start failed with an error indicating a NoneType variable was being iterated. I traced the code down to the following code in tasks.py (_create_and_start_container):
not filter( lambda i: self.container.image in i['RepoTags'], self.container.ship.backend.images(image['repository']))
The issue appears to be i['RepoTags'] would resolve to None and cause the exception. When inspecting the data returned by self.container.ship.backend.images(image['repository']) was in fact a list of dicts (containing RepoTags). In order to accommodate the list, I'm proposing to change the code to something like this:
With this change, service start appears to work with both legacy and new repositories that we've tested.