tb.sh create fails on rmdir /var/lib/mock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Scott Little |
Bug Description
Brief Description
-----------------
tb.sh create might fail to create the builder docker image.
Some versions of the mock package do not create the /var/lib/mock
directory as part of the install. It is instead done at run time.
A subsequent command in the dockerfile fails when it tries to
remove/relocate /var/lib/mock when it is not already present.
Severity
--------
Major
Steps to Reproduce
------------------
tb.sh create
Expected Behavior
------------------
The docker image is creates
Actual Behavior
----------------
Failure to create the docker image
Reproducibility
---------------
intermittent. Docker caching may prevent it from being seen consistently
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
N/A
Last Pass
---------
N/A
Timestamp/Logs
--------------
Step 31/49 : RUN useradd -s /sbin/nologin -u 9001 -g 9001 mockbuild && rmdir /var/lib/mock && ln -s /localdisk/
---> Running in edd65984f3ae
rmdir: failed to remove '/var/lib/mock': No such file or directory
Test Activity
-------------
Build
Workaround
----------
N/A
CVE References
- 2016-10739
- 2017-6519
- 2018-10360
- 2018-1116
- 2018-1122
- 2018-12404
- 2018-1312
- 2018-13139
- 2018-14348
- 2018-14498
- 2018-15473
- 2018-17199
- 2018-18384
- 2018-19519
- 2018-4700
- 2018-5741
- 2018-5742
- 2018-5743
- 2018-8905
- 2019-0220
- 2019-10160
- 2019-10218
- 2019-11068
- 2019-11745
- 2019-12735
- 2019-13232
- 2019-13734
- 2019-16056
- 2019-17006
- 2019-3813
- 2019-3880
- 2019-5482
- 2019-6477
- 2019-9636
- 2019-9924
- 2019-9948
- 2020-0549
- 2020-10772
- 2020-10878
- 2020-12049
- 2020-12663
- 2020-5208
- 2020-6851
- 2020-8112
- 2020-8617
- 2021-26937
tags: | added: stx.build |
stx.5.0 / high - opened as a major build issue