2016-02-28 18:22:33 |
Vikram Hosakote |
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 "--cross-build" must be added for kolla-build. When the user builds CentOS images on Ubuntu and vice-versa, the "--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 "--cross-build" flag to do this" so that the user knows what he/she is doing. |
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. |
|