Bug 1846508 - [OSP13->OSP16.1 hackfest] Trying to pull repository stderr: error parsing HTTP 404 response body: invalid character
Summary: [OSP13->OSP16.1 hackfest] Trying to pull repository stderr: error parsing HTT...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-11 18:40 UTC by Chris Janiszewski
Modified: 2020-06-15 13:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-15 13:25:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Janiszewski 2020-06-11 18:40:38 UTC
Description of problem:
Execution fails:  openstack overcloud upgrade run --stack chrisj --playbook upgrade_steps_playbook.yaml --tags nova_hybrid_state --limit all

Error:
fatal: [chrisj-hci-2]: FAILED! => {"changed": true, "cmd": "paunch apply --file /var/lib/tripleo-config/docker-container-startup-config-step_4.json --config-id tripleo_step4", "delta": "0:00:10.023444", "end": "2020-06-11 15
:30:57.045438", "msg": "non-zero return code", "rc": 1, "start": "2020-06-11 15:30:47.021994", "stderr": "", "stderr_lines": [], "stdout": "Error pulling chrisj-undercloud.ctlplane.hextupleo.lab:8787/rh-osbs/rhosp16-openstac
k-nova-compute:16.1_20200515.3. [1]\n\nstdout: Trying to pull repository chrisj-undercloud.ctlplane.hextupleo.lab:8787/rh-osbs/rhosp16-openstack-nova-compute ... \n\nstderr: error parsing HTTP 404 response body: invalid char
acter '<' looking for beginning of value: \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>404 Not Found</title>\\n</head><body>\\n<h1>Not Found</h1>\\n<p>The requested URL /v2/rh-osbs/rhosp
16-openstack-nova-compute/manifests/16.1_20200515.3 was not found on this server.</p>\\n</body></html>\\n\"", "stdout_lines": ["Error pulling chrisj-undercloud.ctlplane.hextupleo.lab:8787/rh-osbs/rhosp16-openstack-nova-compu
te:16.1_20200515.3. [1]", "", "stdout: Trying to pull repository chrisj-undercloud.ctlplane.hextupleo.lab:8787/rh-osbs/rhosp16-openstack-nova-compute ... ", "", "stderr: error parsing HTTP 404 response body: invalid characte
r '<' looking for beginning of value: \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>404 Not Found</title>\\n</head><body>\\n<h1>Not Found</h1>\\n<p>The requested URL /v2/rh-osbs/rhosp16-o
penstack-nova-compute/manifests/16.1_20200515.3 was not found on this server.</p>\\n</body></html>\\n\""]}

Investigation shows that container has not been uploaded to undercloud in one of the previous steps. 

The workaround is to execute the upload manually and try again
(undercloud) [stack@chrisj-undercloud ~]$ sudo tripleo-container-image-prepare --environment-file containers-prepare-parameter.yaml -r templates/roles_data.yaml

Issue might be related to using custom stack name.


Version-Release number of selected component (if applicable):
OSP13->OSP16.1

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
sosreport - http://chrisj.cloud/sosreport-chrisj-undercloud-2020-06-11-pbiupze.tar.xz

Comment 1 Lukas Bezdicka 2020-06-15 13:25:57 UTC
I wonder if we could add validation here? This was user error where the templates setting DockerInsecureRegistries was overridden in next template.


Note You need to log in before you can comment on or make changes to this bug.