Add "--force-cross-build" argument to kolla-build

Bug #1546652 reported by Vikram Hosakote
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Low
Vikram Hosakote

Bug Description

By default, "kolla-build" builds all containers using CentOS as the base image.

Due to this issue, kolla-build fails to build many containers on Ubuntu due to the following errors.

INFO:kolla.cmd.build:keystone:Error unpacking rpm package httpd-2.4.6-40.el7.centos.x86_64

INFO:kolla.cmd.build:keystone:error: unpacking of archive failed on file /usr/sbin/suexec: cpio: cap_set_file

INFO:kolla.cmd.build:keystone:error: httpd-2.4.6-40.el7.centos.x86_64: install failed

Hence, a new argument "--force-cross-build" must be added for kolla-build. When the user builds CentOS images on Ubuntu and vice-versa, the "--force-cross-build" argument must be explicitly specified. If not, kolla-build must throw as error like "Your host OS is Ubuntu and you are building CentOS containers. Please use the "--force-cross-build" flag to do this" so that the user knows what he/she is doing.

Revision history for this message
Vikram Hosakote (vhosakot) wrote :

Fixing this bug.

Changed in kolla:
assignee: nobody → Vikram Hosakote (vhosakot)
status: New → In Progress
summary: - Add "--cross-build" argument to kolla-build
+ Add "--force-cross-build" argument to kolla-build
description: updated
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

IIRC, on ubuntu, it is using aufs as stoage driver. the aufs is the root cause[0]. If you change the storage driver to others( btrfs, overlay etc), you should be able to cross build image.

So, no need add such a parameter. Add some note to the doc is enough.

[0] https://github.com/docker/docker/issues/6980

Steven Dake (sdake)
Changed in kolla:
importance: Undecided → Low
milestone: none → newton-1
status: In Progress → Triaged
tags: removed: kolla kolla-build
Changed in kolla:
milestone: newton-1 → newton-2
Changed in kolla:
milestone: newton-2 → newton-3
Changed in kolla:
milestone: newton-3 → newton-rc1
Changed in kolla:
milestone: newton-rc1 → newton-rc2
Duong Ha-Quang (duonghq)
Changed in kolla:
milestone: newton-rc2 → ocata-1
Changed in kolla:
milestone: ocata-1 → ocata-2
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

I can build different distro images by using the same OS.

like: build ubuntu, centos images on archlinux node. So this should not be a issue.

i will mark this invalid.

Changed in kolla:
status: Triaged → Invalid
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.