Bug 1568047
| Summary: | Insights-client fails during analyzing of docker image | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Hybrid Cloud Console (console.redhat.com) | Reporter: | Eduard <esakaiev> | ||||||
| Component: | Client | Assignee: | jcrafts | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jeff Needle <jneedle> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | unspecified | CC: | ecerqueira, jcrafts, jnewton, klape, lphiri, robwilli | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2019-06-14 18:25:37 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Eduard
2018-04-16 16:26:07 UTC
Hi Jeff, Can you post the Docker version? Thanks. [root@virtrhel74 virtrhel74]# docker --version Docker version 1.13.1, build 87f2fab/1.13.1 See this changelog: https://github.com/moby/moby/releases/tag/v1.13.1 It looks like Docker 1.13.1 now uses the overlay2/overlay as the default storage driver instead of devicemapper. We don't support that, so this traceback is valid. Since this is now a known condition, we ought to make it fail more gracefully and inform the user that they should edit their docker configuration to use devicemapper. I think the most correct solution here is to add support for overlay2. Asking customers to change the storage driver to devicemapper seems unreasonable, though we can at least document that solution for the time being. Any update on this? I tested now on: (venv) [root@ecerquei-rhel75 insights-tests]# insights-client --version Client: 3.0.3-9 Core: 3.0.4-3 and I am still seeing the same error: MountError: Insights cannot be used with the overlay2 docker storage backend. No updates yet. There's still dev work that needs to be done on this. Created attachment 1450903 [details]
Report archive
Hi all, I have executed insights-client with another option for validating containers: insights-client --analyze-container --keep-archive the report (Report Archive) has been successfully uploaded to the server, output log has been attached( output.json). Created attachment 1450904 [details]
output.json
Why could we use insights-client --analyze-container, but still can't use --analyze-image-id <id>? The difference is that --analyze-container treats the system running it as a container, and will upload to the images endpoint instead of the normal uploads endpoint. Docker is not used in this case. For --analyze-image-id, however, we need to interface with the Docker daemon to actually mount an image. after recent egg update this is what happens
[root@ibm-p8-kvm-03-guest-02 ~]# insights-client --analyze-image-id ddb20f8825f0
WARNING: Excluding data from files
Fatal error
Traceback (most recent call last):
File "/root/insights-core/rpm.egg/insights/client/phase/v1.py", line 34, in _f
func(client, config)
File "/root/insights-core/rpm.egg/insights/client/phase/v1.py", line 163, in collect_and_output
tar_file = client.collect()
File "/root/insights-core/rpm.egg/insights/client/__init__.py", line 51, in _init_connection
return func(self, *args, **kwargs)
File "/root/insights-core/rpm.egg/insights/client/__init__.py", line 307, in collect
tar_file = client.collect(self.config, self.connection)
File "/root/insights-core/rpm.egg/insights/client/client.py", line 316, in collect
container_connection = open_image(target['name'])
File "/root/insights-core/rpm.egg/insights/client/containers.py", line 207, in open_image
mount_point, cid = DockerMount(mount_point).mount(image_id)
File "/root/insights-core/rpm.egg/insights/client/mount.py", line 172, in __init__
self.client = docker.Client(**kwargs_from_env())
AttributeError: 'module' object has no attribute 'Client'
Docker analysis has been removed. |