Skip to content

Cherry-pick #8656 to 6.x: Do not rely on an specific memcached version for autodiscover test#8664

Merged
exekias merged 1 commit intoelastic:6.xfrom
exekias:backport_8656_6.x
Oct 22, 2018
Merged

Cherry-pick #8656 to 6.x: Do not rely on an specific memcached version for autodiscover test#8664
exekias merged 1 commit intoelastic:6.xfrom
exekias:backport_8656_6.x

Conversation

@exekias
Copy link
Copy Markdown
Contributor

@exekias exekias commented Oct 19, 2018

Cherry-pick of PR #8656 to 6.x branch. Original message:

Issue seen in travis:

======================================================================
ERROR: Test docker autodiscover starts modules from templates
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/go/src/github.com/elastic/beats/metricbeat/tests/system/test_autodiscover.py", line 40, in test_docker
    docker_client.images.pull('memcached:1.5.3')
  File "/usr/local/lib/python2.7/dist-packages/docker/models/images.py", line 415, in pull
    repository, tag, '@' if tag.startswith('sha256:') else ':'
  File "/usr/local/lib/python2.7/dist-packages/docker/models/images.py", line 295, in get
    return self.prepare_model(self.client.api.inspect_image(name))
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/image.py", line 245, in inspect_image
    self._get(self._url("/images/{0}/json", image)), True
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 231, in _result
    self._raise_for_status(response)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 227, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
ImageNotFound: 404 Client Error: Not Found ("no such image: memcached:1.5.3: No such image: memcached:1.5.3")

Old versions are sometimes removed, as this test is not about the module
itself we can use the latest tag here.

…lastic#8656)

Old versions are sometimes removed, as this test is not about the module
itself we can use the latest tag here

(cherry picked from commit b2ba2ea)
@exekias exekias merged commit f859561 into elastic:6.x Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants