base-images-docker icon indicating copy to clipboard operation
base-images-docker copied to clipboard

Yum fails on latest centos7 base image due to $releasever being invalid

Open Stono opened this issue 5 years ago • 3 comments

Hi, Can't use yum in the latest base image, rpm -q --qf '%{version}\n' centos-release is used by yum to calculate $releasever.

On the previous release:

[atcloud@sauron-web-5b699b9778-6c6zk app]$ rpm -q --qf '%{version}\n' centos-release
7

On the current release:

[root@0aaf79f74e0e app]# rpm -q --qf '%{version}\n' centos-release
package centos-release is not installed

I worked around this by doing echo 7 > /etc/yum/vars/releasever.

Stono avatar Aug 08 '19 08:08 Stono

Oh! Thanks for your note. We will fix!

On Thu, Aug 8, 2019 at 1:46 AM Karl Stoney [email protected] wrote:

Hi, Can't use yum in the latest base image, rpm -q --qf '%{version}\n' centos-release is used by yum to calculate $releasever.

On the previous release:

[atcloud@sauron-web-5b699b9778-6c6zk app]$ rpm -q --qf '%{version}\n' centos-release 7

On the current release:

[root@0aaf79f74e0e app]# rpm -q --qf '%{version}\n' centos-release package centos-release is not installed

I worked around this by doing echo 7 > /etc/yum/vars/releasever.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleContainerTools/base-images-docker/issues/488?email_source=notifications&email_token=AAF76UTLPLVWWY7SUG53BJTQDPMO3A5CNFSM4IKH3MNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HECYXFQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF76URCFKLYLUVEIPECJ33QDPMO3ANCNFSM4IKH3MNA .

-- *Have build/release/devinfra questions? * Join us on Google Chat in the Nest Devinfra Chat https://chat.google.com/room/AAAAZjVzpI4

donmccasland avatar Aug 08 '19 16:08 donmccasland

There was an image update yesterday. Issue is still present

sumeshcgnr avatar Aug 20 '19 09:08 sumeshcgnr

Okay, I've checked in your workaround and regenerated. gcr.io/gcp-runtimes/centos7:latest now shows [root@b62256e73472 /]# yum history Loaded plugins: fastestmirror, ovl ID | Command line | Date and time | Action(s) | Altered

 4 | -y remove bind-libs bind | 2019-06-25 16:17 | Erase          |

7 3 | -q -y erase kernel* *fir | 2019-06-25 16:17 | Erase | 4 2 | install -q -y bind-utils | 2019-06-25 16:16 | Install | 56 EE 1 | -q -y --installroot=/tar | 2019-06-25 16:15 | Install | 95 PP history list [root@b62256e73472 /]# rpm -q --qf '%{version}\n' centos-release 7

On Tue, Aug 20, 2019 at 2:12 AM Sumesh S [email protected] wrote:

There was an image update yesterday. Issue is still present

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GoogleContainerTools/base-images-docker/issues/488?email_source=notifications&email_token=AAF76UWKKT6FOZ2YCAUTK7DQFOYOZA5CNFSM4IKH3MNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4VT3FQ#issuecomment-522927510, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF76URLD7FZEDKBEMSJWFLQFOYOZANCNFSM4IKH3MNA .

-- *Have build/release/devinfra questions? * Join us on Google Chat in the Nest Devinfra Chat https://chat.google.com/room/AAAAZjVzpI4

donmccasland avatar Aug 20 '19 16:08 donmccasland