TCIB doesn't catch container build failure

Bug #1894067 reported by Cédric Jeanneret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
High
Kevin Carter

Bug Description

Hello,

While playing a bit with the new tripleo container build CLI, I found that it doesn't report failures (i.e. no exit 1 nor anything we can use in automation).

The only notification is within the log:
Buildah failed with the following error: The following jobs were incomplete: [....]
The following errors were detected during container build(s):

Exception information: Unexpected error while running command.
Command: sudo buildah bud --volume /etc/yum.repos.d:/etc/yum.repos.d:z --volume /etc/pki/rpm-gpg:/etc/pki/rpm-gpg:z --volume /srv/container-dnf:/etc/dnf/:z --format docker --tls-verify=False --logfile /tmp/container-builds/d905ceb5-4b92-45ab-ad22-c8f8fbb9747f/base/os/cinder-base/cinder-base-build.log -t 192.168.122.1:5000/tripleomaster/openstack-cinder-base:latest /tmp/container-builds/d905ceb5-4b92-45ab-ad22-c8f8fbb9747f/base/os/cinder-base
Exit code: 1
Stdout: ''
Stderr: 'error building at STEP "RUN dnf -y install ceph-common cryptsetup lvm2 openstack-cinder python3-automaton python3-oslo-vmware && dnf clean all && rm -rf /var/cache/dnf": error while running runtime: exit status 1\n'

Then it continued to build/finish other containers, and exited 0, preventing automation to stop there and output an error.

Not sure if it's intended or not.

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :
Download full text (5.8 KiB)

More precisions:
I'm using the tripleo-operator-ansible, and this is the full error:

Buildah failed with the following error: The following jobs were incomplete: [{'base': ['collectd', 'cron', 'etcd', 'haproxy', 'keepalived', 'mariadb', 'memcached', 'multipathd', {'os': [{'aodh-base': ['aodh-api', 'aodh-evaluator', 'aodh-listener', 'aodh-notifier']}, {'barbican-base': ['barbican-api', 'barbican-keystone-listener', 'barbican-worker']}, {'ceilometer-base': ['ceilometer-central', 'ceilometer-compute', 'ceilometer-ipmi', 'ceilometer-notification']}, {'cinder-base': ['cinder-api', 'cinder-backup', 'cinder-scheduler', 'cinder-volume']}, {'designate-base': ['designate-api', 'designate-backend-bind9', 'designate-central', 'designate-mdns', 'designate-producer', 'designate-sink', 'designate-worker']}, 'glance-api', {'gnocchi-base': ['gnocchi-api', 'gnocchi-metricd', 'gnocchi-statsd']}, {'heat-base': ['heat-all', 'heat-api', 'heat-api-cfn', 'heat-engine']}, 'horizon', {'ironic-base': ['ironic-api', 'ironic-conductor', 'ironic-inspector', 'ironic-pxe']}, 'iscsid', 'keystone', {'manila-base': ['manila-api', 'manila-scheduler', 'manila-share']}, {'mistral-base': ['mistral-api', 'mistral-engine', 'mistral-event-engine', 'mistral-executor']}, {'neutron-base': ['ironic-neutron-agent', {'neutron-agent-base': ['neutron-dhcp-agent', 'neutron-l3-agent', 'neutron-metadata-agent-ovn']}, 'neutron-metadata-agent', 'neutron-openvswitch-agent', 'neutron-server', 'neutron-server-ovn', 'neutron-sriov-agent']}, {'nova-base': ['nova-api', 'nova-compute', 'nova-compute-ironic', 'nova-conductor', 'nova-libvirt', 'nova-novncproxy', 'nova-scheduler']}, {'novajoin-base': ['novajoin-notifier', 'novajoin-server']}, {'octavia-base': ['octavia-api', 'octavia-health-manager', 'octavia-housekeeping', 'octavia-worker']}, 'placement-api', {'swift-base': ['swift-account', 'swift-container', 'swift-object', 'swift-proxy-server']}, 'tempest', 'zaqar-wsgi']}, {'ovn-base': ['ovn-controller', 'ovn-nb-db-server', 'ovn-northd', 'ovn-sb-db-server']}, 'qdrouterd', 'rabbitmq', 'redis', 'rsyslog', 'tripleoclient']}]
{'base': ['collectd', 'cron', 'etcd', 'haproxy', 'keepalived', 'mariadb', 'memcached', 'multipathd', {'os': [{'aodh-base': ['aodh-api', 'aodh-evaluator', 'aodh-listener', 'aodh-notifier']}, {'barbican-base': ['barbican-api', 'barbican-keystone-listener', 'barbican-worker']}, {'ceilometer-base': ['ceilometer-central', 'ceilometer-compute', 'ceilometer-ipmi', 'ceilometer-notification']}, {'cinder-base': ['cinder-api', 'cinder-backup', 'cinder-scheduler', 'cinder-volume']}, {'designate-base': ['designate-api', 'designate-backend-bind9', 'designate-central', 'designate-mdns', 'designate-producer', 'designate-sink', 'designate-worker']}, 'glance-api', {'gnocchi-base': ['gnocchi-api', 'gnocchi-metricd', 'gnocchi-statsd']}, {'heat-base': ['heat-all', 'heat-api', 'heat-api-cfn', 'heat-engine']}, 'horizon', {'ironic-base': ['ironic-api', 'ironic-conductor', 'ironic-inspector', 'ironic-pxe']}, 'iscsid', 'keystone', {'manila-base': ['manila-api', 'manila-scheduler', 'manila-share'...

Read more...

Changed in tripleo:
assignee: nobody → Kevin Carter (kevin-carter)
status: Triaged → In Progress
Revision history for this message
Kevin Carter (kevin-carter) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-operator-ansible (master)

Change abandoned by "Kevin Carter <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/749812

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.