summaryrefslogtreecommitdiff
path: root/kolla/common/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2022-04-15enable logging to file for quiet modeMarcin Juszkiewicz1-11/+23
We have 'quiet' mode where only minimal data is printed to the console. But there were no logs at all then. This change generates log files (if 'logs-dir' argument is used) during quiet build. Also enables 'quiet' mode for CI so Zuul will not have to parse 29MB JSON file each time. Change-Id: If7d5c2807f0947a8bbbc1ceb8531c9b9c9287c1f
2022-02-04stringify docker-squash versionMarcin Juszkiewicz1-1/+1
Before: (kolla) 11:46 (s) marcin@puchatek:kolla$ ./tools/build.py --squash INFO:kolla.common.utils:Image squash is enabled and "docker-squash" version is b'1.0.8' After: (kolla) 11:46 (s) marcin@puchatek:kolla$ ./tools/build.py --squash INFO:kolla.common.utils:Image squash is enabled and "docker-squash" version is 1.0.8 Change-Id: If1844434ff0b7c3b35d0a8e742c7e2fad0dc8758
2020-01-02Add '--quiet' switchMarcin Juszkiewicz1-0/+2
Quiet option turns off all image build logs above CRITICAL level. Handy for checking build/push queue. Change-Id: I9d49c9e6851341c084673ef2946acf4490c3ae8b
2018-10-26utils: be Python 2 compatible when squashing is enabledMarcin Juszkiewicz1-1/+1
INFO:kolla.common.utils.base:Parent lastest layer is: sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d ERROR:kolla.common.utils.base:Unknown error when building Traceback (most recent call last): File "/home/hrw/devel/linaro/17.12/kolla/kolla/image/build.py", line 598, in builder self.squash() File "/home/hrw/devel/linaro/17.12/kolla/kolla/image/build.py", line 619, in squash tmp_dir=self.conf.squash_tmp_dir) File "/home/hrw/devel/linaro/17.12/kolla/kolla/common/utils.py", line 72, in squash ex.stdout) AttributeError: 'CalledProcessError' object has no attribute 'stdout' stdout was added in Python 3 as alias for output Change-Id: I7a6cef2ef6201d6b34c640bd6d1c7762c8bf5611
2018-01-22Support squash docker images layersJeffrey Zhang1-0/+73
Implements: blueprint squash-layers Change-Id: Ic9a144e50440ccb37f7781d8955815a64282e687