Project

General

Profile

Actions

Bug #5071

closed

Debian package management: can't specify a repository (ex: "-t wheezy-backports")

Bug #5071: Debian package management: can't specify a repository (ex: "-t wheezy-backports")

Added by Olivier Chédru over 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
N/A
Category:
Techniques
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
59
Name check:
Fix check:
Regression:

Description

Steps to reproduce with Rudder 2.10.2:
- Create a directive "APT package manager configuration" (1.0) with the following parameters:
- Check "Also add the following package repositories"
- Repository 1: URL = http://debian.proxad.net/debian, distribution = wheezy-backports, Use main = Yes
- Create a directive "Package management for Debian / Ubuntu / APT systems" (2.0) with the following parameters:
- Define package version to install: use criteria below
- Package name: rsyslog
- Packet version match: == (or >=)
- Packet version number: 7.6.3

Assign both directives to the same rule targeting a node running Debian 7.5.

The directives stay in the status "Repaired", 0%, with the following details:
Performed repair action for deb package rsyslog with policy: update


Related issues 3 (0 open3 closed)

Related to Rudder - Bug #5244: Technique 'Package management for RHEL / CentOS / SuSE / RPM systems' v5.1: Unable to update a package without version set but still report a successRejectedActions
Related to Rudder - Bug #4999: Technique rpmPackageInstallation: Specified version is not taken into accountReleasedJonathan CLARKEActions
Related to Rudder - Bug #10241: "Package management" technique missing "allow untrusted" switchReleasedBenoît PECCATTEActions

Updated by Olivier Chédru over 11 years ago Actions #1

Note the Debian repository is properly set in /etc/apt/sources.list.d/rudder-apt.list, but the package is not upgraded.

Updated by Nicolas PERRON over 11 years ago Actions #2

As far I can see, your repaired status could be due to CFEngine trying to compare a version not matched. The installed version is not ok and older than the promised one, then CFEngine will try to update.
Trying to update could fail/succeed but will send a repaired report. It seems to be the same problem than #5244.

Updated by Nicolas PERRON over 11 years ago Actions #3

The repository you added seems to have rsyslog 7.6.3 but still not having all required dependencies:

[...]
 rsyslog depends on libc6 (>= 2.17); however:
  Version of libc6:amd64 on system is 2.13-38+deb7u1.
 rsyslog depends on libestr0 (>= 0.1.4); however:
  Version of libestr0 on system is 0.1.1-2.
[...]

Maybe this is why rsyslog is never updated. Did you try manually to check if it was possible ?

Updated by Olivier Chédru over 11 years ago Actions #4

Yes, it was OK.
I used the following manual procedure to upgrade rsyslog on a freshly installed Debian 7.5:

echo "deb http://debian.proxad.net/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get -y -t wheezy-backports install rsyslog

Updated by Nicolas PERRON over 11 years ago Actions #5

  • Status changed from New to Discussion
  • Assignee set to Jonathan CLARKE
  • Target version set to 2.6.17

The problem is that "Package management for Debian / Ubuntu / APT systems" is not able to manage packages with backport repositories.
APT needs to be configured in order to use backports by default. For example, adding a file /etc/apt/apt.conf.d/myconf containing:

APT::Default-Release "wheezy-backports";

I see two options:
- Add new version of "APT package manager configuration" to add custom configuration into APT (a textbox where options could be added into /etc/apt/apt.conf.d/99rudder). It seems to me that this is the simpliest way and it's flexible.
- Add new version of "Package management for Debian / Ubuntu / APT systems" to add an option if we want to use a backport or not. It seems to me that this is more complex as different package_method would be used in function of being installed by backport or not.

What's your opinion Jon ?

Updated by Jonathan CLARKE over 11 years ago Actions #6

  • Assignee changed from Jonathan CLARKE to Nicolas PERRON

I don't think it's a good idea to change the settings on hosts for apt via a config file. This could have undesired side effects.

However, using the "-t" option as in Olivier's example above looks great.

Sure, it would require a new package_method, but we could pass a parameter to the package method to specify the name to use.

Updated by Nicolas PERRON over 11 years ago Actions #7

  • Assignee changed from Nicolas PERRON to Jonathan CLARKE
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/452

I've made a Pull Request: https://github.com/Normation/rudder-techniques/pull/452

Jon, would you like to review it ?

Updated by Nicolas PERRON over 11 years ago Actions #8

  • Target version changed from 2.6.17 to 2.6.18

Updated by Matthieu CERDA over 11 years ago Actions #9

  • Target version changed from 2.6.18 to 2.6.19

Updated by Vincent MEMBRÉ over 11 years ago Actions #10

  • Target version changed from 2.6.19 to 2.6.20

Updated by François ARMAND about 11 years ago Actions #11

  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Target version changed from 2.6.20 to 2.10.10

Benoit, could you take a look at that one please (on 2.10).

Updated by Vincent MEMBRÉ about 11 years ago Actions #12

  • Target version changed from 2.10.10 to 2.10.11

Updated by Benoît PECCATTE about 11 years ago Actions #13

  • Category set to Techniques

Updated by Vincent MEMBRÉ about 11 years ago Actions #14

  • Target version changed from 2.10.11 to 2.10.12

Updated by Vincent MEMBRÉ almost 11 years ago Actions #15

  • Target version changed from 2.10.12 to 2.10.13

Updated by Vincent MEMBRÉ almost 11 years ago Actions #16

  • Target version changed from 2.10.13 to 2.10.14

Updated by Vincent MEMBRÉ almost 11 years ago Actions #17

  • Target version changed from 2.10.14 to 2.10.15

Updated by Vincent MEMBRÉ over 10 years ago Actions #18

  • Target version changed from 2.10.15 to 2.10.16

Updated by Vincent MEMBRÉ over 10 years ago Actions #19

  • Target version changed from 2.10.16 to 2.10.17

Updated by Vincent MEMBRÉ over 10 years ago Actions #20

  • Target version changed from 2.10.17 to 2.10.18

Updated by Vincent MEMBRÉ over 10 years ago Actions #21

  • Target version changed from 2.10.18 to 2.10.19

Updated by Vincent MEMBRÉ over 10 years ago Actions #22

  • Target version changed from 2.10.19 to 2.10.20

Updated by Vincent MEMBRÉ about 10 years ago Actions #23

  • Target version changed from 2.10.20 to 277

Updated by Vincent MEMBRÉ about 10 years ago Actions #24

  • Target version changed from 277 to 2.11.18

Updated by Vincent MEMBRÉ about 10 years ago Actions #25

  • Target version changed from 2.11.18 to 2.11.19

Updated by Vincent MEMBRÉ about 10 years ago Actions #26

  • Target version changed from 2.11.19 to 2.11.20

Updated by Vincent MEMBRÉ almost 10 years ago Actions #27

  • Target version changed from 2.11.20 to 2.11.21

Updated by Vincent MEMBRÉ almost 10 years ago Actions #28

  • Target version changed from 2.11.21 to 2.11.22

Updated by Vincent MEMBRÉ almost 10 years ago Actions #29

  • Target version changed from 2.11.22 to 2.11.23

Updated by Vincent MEMBRÉ over 9 years ago Actions #30

  • Target version changed from 2.11.23 to 2.11.24

Updated by Vincent MEMBRÉ over 9 years ago Actions #31

  • Target version changed from 2.11.24 to 308

Updated by Vincent MEMBRÉ over 9 years ago Actions #32

  • Target version changed from 308 to 3.1.14

Updated by Vincent MEMBRÉ over 9 years ago Actions #33

  • Target version changed from 3.1.14 to 3.1.15

Updated by Vincent MEMBRÉ over 9 years ago Actions #34

  • Target version changed from 3.1.15 to 3.1.16

Updated by Vincent MEMBRÉ over 9 years ago Actions #35

  • Target version changed from 3.1.16 to 3.1.17

Updated by Vincent MEMBRÉ over 9 years ago Actions #36

  • Target version changed from 3.1.17 to 3.1.18

Updated by Vincent MEMBRÉ about 9 years ago Actions #37

  • Target version changed from 3.1.18 to 3.1.19

Updated by François ARMAND almost 9 years ago Actions #38

  • Related to Bug #10241: "Package management" technique missing "allow untrusted" switch added

Updated by François ARMAND almost 9 years ago Actions #39

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | level 1 Techniques
  • Priority set to 0

Updated by Vincent MEMBRÉ almost 9 years ago Actions #40

  • Target version changed from 3.1.19 to 3.1.20

Updated by Jonathan CLARKE almost 9 years ago Actions #41

  • Status changed from Discussion to New

Updated by Jonathan CLARKE almost 9 years ago Actions #42

  • Assignee deleted (Benoît PECCATTE)

Updated by Jonathan CLARKE almost 9 years ago Actions #43

  • Subject changed from Debian package management; unable to upgrade package to version on repo wheezy-backports to Debian package management: can't specify a repository (ex: "-t wheezy-backports")
  • Priority changed from 0 to 45

Updated by Alexis Mousset almost 9 years ago Actions #44

  • Assignee set to Alexis Mousset

Updated by Vincent MEMBRÉ almost 9 years ago Actions #45

  • Target version changed from 3.1.20 to 3.1.21

Updated by Vincent MEMBRÉ over 8 years ago Actions #46

  • Target version changed from 3.1.21 to 3.1.22

Updated by Benoît PECCATTE over 8 years ago Actions #47

  • Priority changed from 45 to 58

Updated by Alexis Mousset over 8 years ago Actions #48

  • Status changed from New to Rejected
  • Priority changed from 58 to 59

Fixed in #10241 for the "Package" technique, closing.

It is now possible to pass arbitrary options to apt.

Actions

Also available in: PDF Atom