Page MenuHomePhabricator

Puppet failing due to dependency cycle on deployment-xhgui03
Closed, ResolvedPublic

Description

$ puppet agent -tv
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for deployment-xhgui03.deployment-prep.eqiad.wmflabs
Info: Applying configuration version '(1867cdd31e) root - profile: install statsd_exporter and retarget statsv'
Error: Found 1 dependency cycle:
(File[/etc/apt/preferences.d/php_twig.pref] => Apt::Pin[php-twig] => Package[xhgui] => Class[Packages::Xhgui] => Class[Profile::Webperf::Xhgui] => Apt::Pin[php-twig] => File[/etc/apt/preferences.d/php_twig.pref])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

Event Timeline

Hey @dpifke, pinging you since I saw xhgui above :)

Change 617498 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] xhgui: try to break dependency cycle between php-twig package and APT pin (WIP)

https://gerrit.wikimedia.org/r/617498

It was introduced by https://gerrit.wikimedia.org/r/c/operations/puppet/+/610446

Working on providing the php-twig package soon.

Change 617498 merged by Dzahn:
[operations/puppet@production] xhgui: fix dependency cycle between php-twig package and APT pin

https://gerrit.wikimedia.org/r/617498

The issue is gone now with the change above which stopped using require_package to install xhgui.

(and after Dave fixed a merge conflict on the deployment-prep puppet master that kept it from syncing with the prod master)

Change 617554 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] xhgui: ensure the config file is written after the package is installed

https://gerrit.wikimedia.org/r/617554

Change 617554 merged by Dzahn:
[operations/puppet@production] xhgui: ensure the config file is written after the package is installed

https://gerrit.wikimedia.org/r/617554