The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #1223

rug not on OpenSuSE 10.3 anymore

Added by Felix Schäfer over 6 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Rein Henrichs% Done:

100%

Category:package
Target version:2.6.0
Affected Puppet version:0.25.1 Branch:http://github.com/ajf/puppet/tree/feature/0.25.x/zypper
Keywords:zypper provider

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

OpenSuSE 10.3 doesn’t ship rug anymore, not even as an optional package. Most stuff works fine with yum, so yum could be made the default package provider for OpenSuSE 10.3+, but a zypper provider would be nice to have, as it’s stated to last a little longer than rug, and it has some ruby bindings.

Thanks :–)

zypper.rb Magnifier - zypper rb (1.42 KB) Leo Eraly, 07/27/2008 05:02 pm

puppet.log - a --debug --trace --verbose output from the run (9.88 KB) Alpar Torok, 05/03/2010 01:50 pm


Related issues

Related to Puppet - Bug #3802: New zypher provider incorrectly referres to rug Closed 05/18/2010

History

#1 Updated by James Turnbull over 6 years ago

  • Status changed from 1 to 2

#2 Updated by James Turnbull over 6 years ago

  • Status changed from 2 to 1

#3 Updated by Redmine Admin over 6 years ago

  • Status changed from 1 to Accepted

#4 Updated by Luke Kanies over 6 years ago

  • Target version changed from 0.24.5 to 4

You should be able to just modify the ‘rug’ provider to specify that it’s only the default for specific versions, and then modify the yum provider similarly. It’d be especially great to have integration tests verifying where it’s suitable and where it isn’t.

Given that I don’t have access to a SuSE system to verify it’s behaving correctly, I’ll need to delay this until someone who does can do the work.

#5 Updated by Leo Eraly over 6 years ago

  • File zypper.rbMagnifier added
  • Keywords set to zypper provider

Attached is a first attempt to write a zypper provider. It’s actually very basic but can be a fix for people that are on >= 10.3

#6 Updated by James Turnbull over 6 years ago

  • Patch changed from None to Insufficient

Thanks for the new provider but we’re going to need tests for it. No new providers go in without working tests. Thanks

#7 Updated by Jason Antman over 5 years ago

  • Affected Puppet version set to 0.22.1

I’m relatively new to Puppet and Ruby, so I can’t at this time offer to write a provider. But if anyone has interest in testing, I’d be more than happy to provide access to a system. Assuming the current version of OpenSuSE (11.1) on modest desktop hardware is acceptable, I’d be happy to give someone access to a box. Just drop an email to jason@jasonantman.com.

#8 Updated by James Turnbull over 5 years ago

  • Assignee deleted (Puppet Community)

#9 Updated by Andrew Forgue almost 5 years ago

  • Target version deleted (4)
  • Affected Puppet version changed from 0.22.1 to 0.25.1

Submitted patch to puppet-dev:

http://groups.google.com/group/puppet-dev/browse_thread/thread/ad5554e7a9b9c866

#10 Updated by Markus Roberts almost 5 years ago

  • Target version set to 0.25.3

#11 Updated by Markus Roberts almost 5 years ago

  • Target version changed from 0.25.3 to 0.25.4

#12 Updated by James Turnbull almost 5 years ago

  • Target version changed from 0.25.4 to 0.25.5

#13 Updated by Stanislav Visnovsky over 4 years ago

This provider will be shipped with the openSUSE Factory and SUSE Linux Enterprise 11 SP1 package.

#14 Updated by James Turnbull over 4 years ago

  • Branch set to http://github.com/ajf/puppet/tree/feature/0.25.x/zypper

#15 Updated by Markus Roberts over 4 years ago

  • Status changed from Accepted to In Topic Branch Pending Review

#16 Updated by Markus Roberts over 4 years ago

  • Status changed from In Topic Branch Pending Review to Merged - Pending Release

#17 Updated by christian c over 4 years ago

I don’t know if it’s the right place to ask, but on the mail list was no reaction to this request:

It would be great if the “uninstall” option would be added to the provider as zypper offers it. Otherwise it would be impossible to for example remove postfix before installing sendmail.

I mentioned that before in the last post here: http://groups.google.com/group/puppet-dev/browse_thread/thread/ad5554e7a9b9c866

#18 Updated by James Turnbull over 4 years ago

  • Target version changed from 0.25.5 to 2.6.0

#19 Updated by Andrew Forgue over 4 years ago

  • Status changed from Merged - Pending Release to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:5b54c783743ad11c14250e3d06ebfa532c13e253.

[Note, this is incorrect — Markus]

#20 Updated by James Turnbull over 4 years ago

  • Status changed from Closed to Code Insufficient
  • Assignee set to Rein Henrichs

#21 Updated by Alpar Torok over 4 years ago

The current zypper provider (from http://groups.google.com/group/puppet-dev/browse_thread/thread/8c7b6593e2ca5a5b?hl=en_US )

fails with :

Package[kvm]/ensure: change from 0.11.0-4.5.2 to true failed: Could not update: undefined method `zypper' for

<Puppet::Type::Package::ProviderZypper:0x7fd1acf9e360> at

on Opensuse 10.2

#22 Updated by Jesse Wolfe over 4 years ago

  • Priority changed from Normal to High

#23 Updated by Alpar Torok over 4 years ago

Sorry, the OpenSuSE version is 11.2 (latest stable)

#24 Updated by Alpar Torok over 4 years ago

I am tunned. I believe that the here provided provider never worked! I managed to figure out the problem eventually (i don’t know ruby) . In fact this provider was Copy/Paste programmed from the rug provider, you only need to change

commands :rug => “/usr/bin/zypper”

to

commands :zypper => “/usr/bin/zypper”

(comments also indicate copy/paste programing).
Isn’t there anybody using puppet on SuSe ? How could this got unnoticed and unfixed for so long? I think puppet developers are doing a great job , but the project would need more developers. I’ll get back to you once i dig into ruby. Too bad that the fix was so simple, i wanted to take the time to learn ruby now.

#25 Updated by Markus Roberts over 4 years ago

  • Priority changed from High to Normal

I’m re-closing this ticket because the zypper provider was in fact merged into master in commit:0f2d3ce686f7e706537e03ebb2166478fa55f649 with, it appears, some problems introduced in the process. Those problems are being addressed on a new ticket, #3802.

#26 Updated by Matt Robinson over 4 years ago

  • Status changed from Code Insufficient to Ready For Checkin

#27 Updated by Matt Robinson over 4 years ago

  • Status changed from Ready For Checkin to Closed

This has been addressed in the new ticket #3802

Also available in: Atom PDF