RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1334259 - openstack overcloud image upload fails with "Required file "./ironic-python-agent.initramfs" does not exist."
Summary: openstack overcloud image upload fails with "Required file "./ironic-python-a...
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-tripleo
Version: Liberty
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: Liberty
Assignee: James Slagle
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-09 09:42 UTC by struggler
Modified: 2017-06-18 06:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 1304395
Environment:
Last Closed: 2017-06-18 06:01:26 UTC
Embargoed:


Attachments (Terms of Use)
output of "openstack overcloud image build --all" (93.00 KB, text/plain)
2016-05-09 09:42 UTC, struggler
no flags Details

Description struggler 2016-05-09 09:42:31 UTC
Created attachment 1155224 [details]
output of "openstack overcloud image build --all"

Hello everyone,
I have an issue similar to the one below, except that "export RDO_RELEASE=liberty" doesn't solve my problem.

output of "openstack overcloud image build --all" attached

regards,

+++ This bug was initially created as a clone of Bug #1304395 +++

Description of problem:
After a successful "openstack overcloud image build --all", this file doesn't get created, which results in an upload failure.

Version-Release number of selected component (if applicable):
Latest production liberty on CentOS

How reproducible: 100%

Steps to Reproduce:
1. openstack overcloud image build --all
2. openstack overcloud image upload

Additional info:
Here's a CentOS CI job that gives this error: https://ci.centos.org/view/rdo/job/rdo_manager-periodic-7-rdo-liberty-production-centos-7.0-templates-virthost-minimal-neutron-ml2-vxlan-smoke/324/consoleFull

Please note that currently a workaround is needed for https://bugzilla.redhat.com/show_bug.cgi?id=1278972 before you can even hit this error on production.

Unfortunately the image building log is not collected from the host yet, but it should be reproducible locally, it just didn't happen yet on my side.

--- Additional comment from Attila Darazs on 2016-02-05 11:51:39 EST ---

I reproduced the image building step locally, attaching the logs. It seems the kilo repositories are used for the image building instead of the liberty ones.

Maybe we're not setting somewhere the image building source to liberty?

+ source /var/tmp/image.UMeliFth/hooks/root.d/../environment.d/10-rdo-release-name.bash
++ export RDO_RELEASE=kilo
++ RDO_RELEASE=kilo
+ for env_file in '$env_files'
+ source /var/tmp/image.UMeliFth/hooks/root.d/../environment.d/14-manifests
++ '[' 0 -gt 0 ']'
++ set -eu
++ set -o pipefail
++ export DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
++ DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
++ export DIB_MANIFEST_SAVE_DIR=ironic-python-agent.d/
++ DIB_MANIFEST_SAVE_DIR=ironic-python-agent.d/

...

Checking for virtual provide or file-provide for openstack-ironic-python-agent
No package openstack-ironic-python-agent available.
Error: Nothing to do

--- Additional comment from Attila Darazs on 2016-02-05 11:53 EST ---



--- Additional comment from Attila Darazs on 2016-02-05 12:16:34 EST ---

Looks like this change is missing from the production repo version of python-tripleoclient:

https://github.com/openstack-packages/python-tripleoclient/blob/rdo-liberty/0001-Remove-hardcoded_RDO_RELEASE.patch

https://github.com/openstack/python-tripleoclient/blob/stable/liberty/tripleoclient/v1/overcloud_image.py#L428

Resulting in using kilo repos for image building.

--- Additional comment from Alan Pevec on 2016-02-10 12:40:39 EST ---

> Looks like this change is missing from the production repo version of
> python-tripleoclient:
> 
> https://github.com/openstack-packages/python-tripleoclient/blob/rdo-liberty/
> 0001-Remove-hardcoded_RDO_RELEASE.patch


python-tripleoclient-0.0.11-3.el7 has that patch, which NVR did you get?

--- Additional comment from John Trowbridge on 2016-02-10 16:35:56 EST ---

actually I think that patch is there, since that is the production repo disgit. We need to `export RDO_RELEASE=liberty` though to use the liberty repos in the image build.

It wouldn't be a bad idea to update the element that does that to default to liberty at this point:

https://github.com/openstack/tripleo-image-elements/blob/master/elements/rdo-release/environment.d/10-rdo-release-name.bash#L1

That said, I don't love using DIB elements for repo setup. It seems easier to just virt-customize exactly the repos you want onto the base images that get fed to DIB.

--- Additional comment from Attila Darazs on 2016-04-04 11:35:39 EDT ---

I solved the issue by exporting RDO_RELEASE=liberty during image build as John suggested. Thanks for making sure the defaults are sane, Alan. It works now.

Thanks,
Attila

Comment 1 Christopher Brown 2017-06-17 19:45:01 UTC
Sorry this wasn't looked at.

Can you update/close as appropriate?


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