redhat-openstack / ansible-role-tripleo-image-build

An ansible role used to create and publish quickstart built images
Apache License 2.0
5 stars 3 forks source link

infra errors during DIB setup + virt-customize are not caught automatically #27

Open halcyondude opened 8 years ago

halcyondude commented 8 years ago

When rpm's are not available, or packaging conflicts occur during yum install portions of image build, they silently go into either /tmp/builder.log in the libguestfs appliance, or to the output of one of the later phases. The role then typically fails later, when either the image is not constructed correctly or simply does not exist (primary scenario).

This incurs a manual debug / investigation of the logs to find the culprit. This issue is to track the addition of either more intelligent log auto-scrubbing than we do now (ample opportunity for improvement) and/or earlier failure where possible (e.g., if an error happened during setup of DIB and build host, don't run dib itself, only to fail later.


A concrete example: Adding new version of Ceph for newton:

Root cause was that the dib setup script was making ref to a bad URI

and the following error was being silently ignored:

@weshayutin FYI

halcyondude commented 8 years ago

Another concrete example, this time when setting up the repos in the base image. From #25 (closed as dupe)

The build host could not get to repos, the repo_setup.sh step/script failed, the build then failed, but the job then went on to attempt to test (because we swallowed the error in artib).