tripleo container image delete has a misleading error when image doesn't exist

Bug #1859729 reported by Alex Schultz on 2020-01-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Medium
Unassigned

Bug Description

[centos@undercloud foo]$ sudo openstack tripleo container image delete --yes docker://undercloud.ctlplane.localdomain:8787/library/centos:7
[centos@undercloud foo]$ sudo openstack tripleo container image delete --yes docker://undercloud.ctlplane.localdomain:8787/library/centos:7
Unable to remove due to permissions. Please prefix command with sudo.
[Errno 2] No such file or directory: '/var/lib/image-serve/v2/library/centos/manifests'
[centos@undercloud foo]$

The 2nd delete probably shouldn't reference running with sudo since it's Errno 2 (no such file) instead of Errno 13 (permission denied)

[centos@undercloud foo]$ openstack tripleo container image delete --yes docker://undercloud.ctlplane.localdomain:8787/tripleomaster/centos-binary-mistral-executor:current-tripleo
Unable to remove due to permissions. Please prefix command with sudo.
[Errno 13] Permission denied: '/var/lib/image-serve/v2/tripleomaster/centos-binary-mistral-executor/manifests/current-tripleo.type-map'

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers