Stefan Pommerening
2013-Jun-28 14:11 UTC
[Puppet Users] Using Puppet for downgrading Varnish (circular dependency)
Hi all, I am trying to use puppet (2.7.18) for downgrading varnish cache on Centos Linux (6.3). Unfortunately there are two varnish RPMs (which seem to have circular dependencies): varnish-3.0.4-1.el6.x86_64 varnish-libs-3.0.4-1.el6.x86_64 When using "ensure" for downgrading I get a bunch of errors: err: /Stage[main]/Varnish/Package[varnish-libs]/ensure: change from 3.0.4-1.el6 to 3.0.3-1.el6 failed: Could not update: Execution of ''/usr/bin/yum -d 0 -e 0 -y downgrade varnish-libs-3.0.3-1.el6'' returned 1: Error: Package: varnish-3.0.4-1.el6.x86_64 (@varnish-3.0) Requires: varnish-libs = 3.0.4-1.el6 Removing: varnish-libs-3.0.4-1.el6.x86_64 (@varnish-3.0) varnish-libs = 3.0.4-1.el6 Downgraded By: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-1.el6 Available: varnish-libs-2.1.5-1.el6.i686 (EPEL-RHEL) varnish-libs = 2.1.5-1.el6 Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-0.rc1.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest at /etc/puppet/environments/development/modules/varnish/manifests/init.pp:8 err: /Stage[main]/Varnish/Package[varnish]/ensure: change from 3.0.4-1.el6 to 3.0.3-1.el6 failed: Could not update: Execution of ''/usr/bin/yum -d 0 -e 0 -y downgrade varnish-3.0.3-1.el6'' returned 1: Error: Package: varnish-3.0.3-1.el6.x86_64 (varnish-3.0) Requires: varnish-libs = 3.0.3-1.el6 Installed: varnish-libs-3.0.4-1.el6.x86_64 (@varnish-3.0) varnish-libs = 3.0.4-1.el6 Available: varnish-libs-2.1.5-1.el6.i686 (EPEL-RHEL) varnish-libs = 2.1.5-1.el6 Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-0.rc1.el6 Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) varnish-libs = 3.0.3-1.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest at /etc/puppet/environments/development/modules/varnish/manifests/init.pp:8 Whatever I try I do not succeed. My goal is to have a rock-solid puppet manifest for switching between varnish versions in development environments without having to reinstall the whole VM. Using yum to downgrade both packages at the same time (and being able to resolve circular dependencies) succeeds: /usr/bin/yum -d 0 -e 0 -y downgrade varnish-libs-3.0.3-1.el6 varnish-3.0.3-1.el6 Any idea how I can solve this? Kind regards, Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Wolf Noble
2013-Jun-29 00:59 UTC
Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)
Hi Stefan, I''ve run into similar issues beforeā¦ I don''t have module code handy, but what I ended up doing was creating an exec which performed something similar to: exec{''nuke_pesky_pkg'': command => ''rpm -e $package; touch /etc/package.removed'', creates => ''/etc/package.removed'' } which I run before the package declaration.. I imagine others might have better suggestions? On Fri, Jun 28, 2013 at 9:11 AM, Stefan Pommerening <pom@dmsp.de> wrote:> Hi all, > > I am trying to use puppet (2.7.18) for downgrading varnish cache on Centos > Linux (6.3). > > Unfortunately there are two varnish RPMs (which seem to have circular > dependencies): > > varnish-3.0.4-1.el6.x86_64 > varnish-libs-3.0.4-1.el6.x86_64 > > When using "ensure" for downgrading I get a bunch of errors: > > err: /Stage[main]/Varnish/Package[varnish-libs]/ensure: change from > 3.0.4-1.el6 to 3.0.3-1.el6 failed: Could not update: Execution of > ''/usr/bin/yum -d 0 -e 0 -y downgrade varnish-libs-3.0.3-1.el6'' returned 1: > Error: Package: varnish-3.0.4-1.el6.x86_64 (@varnish-3.0) > Requires: varnish-libs = 3.0.4-1.el6 > Removing: varnish-libs-3.0.4-1.el6.x86_64 (@varnish-3.0) > varnish-libs = 3.0.4-1.el6 > Downgraded By: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) > varnish-libs = 3.0.3-1.el6 > Available: varnish-libs-2.1.5-1.el6.i686 (EPEL-RHEL) > varnish-libs = 2.1.5-1.el6 > Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) > varnish-libs = 3.0.3-0.rc1.el6 > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest > at > /etc/puppet/environments/development/modules/varnish/manifests/init.pp:8 > err: /Stage[main]/Varnish/Package[varnish]/ensure: change from 3.0.4-1.el6 > to 3.0.3-1.el6 failed: Could not update: Execution of ''/usr/bin/yum -d 0 -e > 0 -y downgrade varnish-3.0.3-1.el6'' returned 1: Error: Package: > varnish-3.0.3-1.el6.x86_64 (varnish-3.0) > Requires: varnish-libs = 3.0.3-1.el6 > Installed: varnish-libs-3.0.4-1.el6.x86_64 (@varnish-3.0) > varnish-libs = 3.0.4-1.el6 > Available: varnish-libs-2.1.5-1.el6.i686 (EPEL-RHEL) > varnish-libs = 2.1.5-1.el6 > Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0) > varnish-libs = 3.0.3-0.rc1.el6 > Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0) > varnish-libs = 3.0.3-1.el6 > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest > at > /etc/puppet/environments/development/modules/varnish/manifests/init.pp:8 > > Whatever I try I do not succeed. My goal is to have a rock-solid puppet > manifest for switching between varnish versions in development environments > without having to reinstall the whole VM. > > Using yum to downgrade both packages at the same time (and being able to > resolve circular dependencies) succeeds: > > /usr/bin/yum -d 0 -e 0 -y downgrade varnish-libs-3.0.3-1.el6 > varnish-3.0.3-1.el6 > > Any idea how I can solve this? > > Kind regards, > Stefan > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Stefan Pommerening
2013-Jul-01 10:45 UTC
Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)
Hi Wolf, indeed that ''exec'' solution is what I''ve found when searching for a solution. In my situation this won''t help - unfortunately. Nevertheless I tracked down the main problem to be caused by different usage scenarios for yum. When upgrading I have to specify only the main varnish package ''varnish''. When downgrading I have to specify both the ''varnish'' and the ''varnish-libs'' package for yum. As long as puppet does not support both options we will have to use work- arounds. ;-) Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Nikolay Mishin
2013-Sep-17 12:39 UTC
Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)
Hello! Help me please how do I get puppet to downgrade several packages at the same time? I want to downgrade to samba 3.6.9 to 3.5.10 for this I am writing yum downgrade samba-winbind-3.5.10, samba-common-3.5.10, samba-common-clients-3.5.10 and how do I get puppet to do the same? is it possible? Thank you! On Monday, July 1, 2013 2:45:26 PM UTC+4, Stefan Pommerening wrote:> > Hi Wolf, > > indeed that ''exec'' solution is what I''ve found when searching for a > solution. > In my situation this won''t help - unfortunately. > > Nevertheless I tracked down the main problem to be caused by different > usage scenarios for yum. > > When upgrading I have to specify only the main varnish package ''varnish''. > When downgrading I have to specify both the ''varnish'' and the > ''varnish-libs'' > package for yum. > > As long as puppet does not support both options we will have to use work- > arounds. ;-) > > Stefan > > > >-- ;; -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.