Article ID: 118309, created on Oct 30, 2013, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo containers for Linux 4.7

Symptoms

It is not possible to create or update EZ OS template cache of OpenSuse 12.2, the operation fails as follows:

~# vzpkg create cache suse-12.2-x86_64
Creation OS template cache for suse-12.2-x86_64 template
All repositories have been cleaned up.
Retrieving repository 'base0' metadata [done]
Building repository 'base0' cache [done]
Retrieving repository 'base1' metadata [done]
Building repository 'base1' cache [done]
Error building the cache:
[|] Failed to cache repo (4).
Skipping repository 'base1' because of the above error.
Retrieving repository 'base2' metadata [|]

Automatically importing the following key:
Key ID: B88B2FD43DBDC284
Key Name: openSUSE Project Signing Key <opensuse@opensuse.org>
Key Fingerprint: 22C07BA534178CD02EFE22AAB88B2FD43DBDC284
Key Created: Wed May  5 17:01:33 2010
Key Expires: Sun May  4 17:01:33 2014
Repository: base2

Retrieving repository 'base2' metadata [done]
Building repository 'base2' cache [done]
Retrieving repository 'base3' metadata [done]
Building repository 'base3' cache [done]
Retrieving repository 'base4' metadata [done]
Building repository 'base4' cache [done]
Retrieving repository 'base5' metadata [done]
Building repository 'base5' cache [done]
Some of the repositories have not been refreshed because of an error.
Error: /usr/bin/zypper failed, exitcode=4

In debug output you may see following error:

~# vzpkg create cache suse-12.2-x86_64 -d 5
...
Error building the cache:
[|] Failed to cache repo (4).
History:
 - '/vz/pkgenv/rpmzypp49x64/usr/bin/repo2solv.sh' '-o' '/vz/template/suse/12.2/x86_64/pm/solv/base1/solv' '/vz/template/suse/12.2/x86_64/pm/raw/base1'
error, the repository specifies extra information about package with checksum '42f07f41655b0eb082d158696d8ffb03d79abe4b02a9e8378d06a84b6329d3f4', which does not exist in the repository.
Errno: 0, message: /usr/bin/rpmmd2solv failed, exitcode=1
Errno: 0, message: Got signal 13

Skipping repository 'base1' because of the above error.
...

Cause

The issue is due to wrong checksum for a package in the non-oss branch of the official repository of OpenSuse 12.2. During creation of the OS template cache, metadata is fetched from the repository and it is checked for consistency by the tool repo2solv.sh: it attempts to verify checksums for the packages and fails instead of producing a warning message.

This behavior has been recognized as a product defect registered as PCLIN-32096.

Resolution

The fix for the request PCLIN-32096 is already available, it is included in the update TU-4.7.0-346.

Please install all pending updates to make sure fix is applied:

# vzup2date -m batch install --tools --self-update

Search Words

PCLIN-32096

suse-12.2

template

vzpkg update cache

cache

suse

vzpkg create cache

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 0c05f0c76fec3dd785e9feafce1099a9

Email subscription for changes to this article
Save as PDF