Bug 1571635

Summary: [RFE]: Provide a friendly error message when container downloads fail due to insecure registry
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: emacchi, mbarnett, mburns
Target Milestone: ---Keywords: FutureFeature, Triaged, ZStream
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: 2020-11-20 16:43:01 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:

Description Udi Kalifon 2018-04-25 08:58:34 UTC
Description of problem:
If downloading containers from an insecure registry, without setting the registry url as insecure, the error message looks something like this:

gui.AllNodesDeploySteps.ControllerDeployment_Step1.2:
  resource_type: OS::Heat::StructuredDeployment
  physical_resource_id: 3cbbb866-eb04-4cf7-b481-cbfd54fab3d9
  status: CREATE_FAILED
  status_reason: |
    Error: resources[2]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
            "2018-04-24 16:24:49,402 ERROR: 22630 -- ERROR configuring neutron",
            "2018-04-24 16:24:49,402 ERROR: 22630 -- ERROR configuring horizon",
            "2018-04-24 16:24:49,402 ERROR: 22630 -- ERROR configuring heat_api_cfn"
        ]
    }
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/95f0bc82-c9da-4197-be8b-ee39310c84c8_playbook.retry
   
    PLAY RECAP *********************************************************************
    localhost                  : ok=19   changed=12   unreachable=0    failed=1  
   
    (truncated, view all with --long)
  deploy_stderr: |


Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-8.0.2-0.20180414062830.5f869f2.el7ost.noarch
openstack-tripleo-common-containers-8.6.1-0.20180410165748.4d8ca16.el7ost.noarch
openstack-tripleo-common-8.6.1-0.20180410165748.4d8ca16.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Deploy, using the undercloud as a container registry, without setting any DockerInsecureRegistryAddress


Actual results:
Deployment fails with a cryptic error message


Expected results:
An error message like "container download failed due to insecure registry..."

Comment 1 Michael Barnett 2020-11-20 16:43:01 UTC
A lot of work has been put into the error messaging for the recent releases and much has been backported Train. If there are still improvements needed please re-open this or file a new requests as needed.