Article ID: 114821, created on Sep 23, 2012, last review on May 11, 2014

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor

Symptoms

If there are several application templates of different versions which share the same package on the Hardware Node, the container receives a set of automatically detected templates that are ultimately incompatible.

Upon container reinstallation, the dependency conflict arises and reinstallation fails:

~# vzpkg list 12345
centos-5-x86                       2009-12-05 23:47:46
centos-5-x86         ppsmbe10      2009-12-11 20:14:44
centos-5-x86         ppsmbe10-extended 2009-12-11 20:14:44
centos-5-x86         ppsmbe10-se-templates 2009-12-11 20:14:44
centos-5-x86         plesk8-zh-TW-locale 2009-12-11 20:14:44
centos-5-x86         plesk9-de-DE-locale 2009-12-11 20:14:44
centos-5-x86         spamassassin  2009-12-11 20:14:44
centos-5-x86         plesk8-ru-RU-locale 2009-12-11 20:14:44
centos-5-x86         plesk9-es-ES-locale 2009-12-11 20:14:44
centos-5-x86         plesk8-it-IT-locale 2009-12-11 20:14:44
centos-5-x86         plesk9-fr-FR-locale 2009-12-11 20:14:44
centos-5-x86         plesk9-nl-NL-locale 2009-12-11 20:14:44
centos-5-x86         mod_perl      2009-12-11 20:14:44
centos-5-x86         plesk9-ja-JP-locale 2009-12-11 20:14:44
centos-5-x86         plesk9-zh-CN-locale 2009-12-11 20:14:44
centos-5-x86         mod_ssl       2009-12-11 20:14:44

~# vzctl reinstall 12345
Run script /etc/sysconfig/vz-scripts/dists/scripts//postcreate.sh
Installing applications: ppsmbe10 ppsmbe10-extended ppsmbe10-se-templates plesk8-zh-TW-locale plesk9-de-DE-locale spamassassin plesk8-ru-RU-locale plesk9-es-ES-locale plesk8-it-IT-locale plesk9-fr-FR-locale plesk9-nl-NL-locale mod_perl plesk9-ja-JP-locale plesk9-zh-CN-locale mod_ssl
Running command: /usr/sbin/vzpkg install --skiplock --quiet 12345 ppsmbe10 ppsmbe10-extended ppsmbe10-se-templates plesk8-zh-TW-locale plesk9-de-DE-locale spamassassin plesk8-ru-RU-locale plesk9-es-ES-locale plesk8-it-IT-locale plesk9-fr-FR-locale plesk9-nl-NL-locale mod_perl plesk9-ja-JP-locale plesk9-zh-CN-locale mod_ssl
Error: Unable to satisfy dependencies
Error:
Package psa-migration-manager needs psa-backup-manager = 9.2.3-cos5.build92091016.19,
this is not available.
Error: /usr/share/vzyum/bin/yum failed, exitcode=1
Stopping Container
...
Container was stopped
Running command: /usr/sbin/vzquota stat 12345 -f -p /vz/private/12345/fs.reinstall
Running command: /usr/sbin/vzquota off 12345 -p /vz/private/12345/fs.reinstall
Container is unmounted
Running command: /etc/sysconfig/vz-scripts/vz-stop
Container reinstallation failed

Cause

By default, Parallels Virtuozzo Containers tries to detect packages installed inside containers and replaces the set of packages with the corresponding application templates. If the conflicting templates do not contain the same versions of the included packages, then the approach minimizes your administrative responsibilities as regards migrating and updating containers.

In the case of Parallels Plesk Panel templates, the above-mentioned autodetection may lead to reinstallation failure.

Resolution

Disable template autodetection in /etc/vztt/vztt.conf:

~# grep APP_TEMPLATE_AUTODETECTION /etc/vztt/vztt.conf
APP_TEMPLATE_AUTODETECTION=no

NOTE: Make sure that the line is present in /etc/vztt/vztt.conf and uncommented.

Search Words

reinstall

Unable to satisfy dependencies

packages template

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f a26b38f94253cdfbf1028d72cf3a498b 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF