Project

General

Profile

User story #3857

Add post hook commands and working update for rpm package installation

Added by Olivier Mauras over 6 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Pull Request:
Suggestion strength:
User visibility:
Effort required:

Description

Based on v5 which needed to be fixed

- Can execute command upon package repair
- cfengine can't handle an update without specifying version and arch. Added arch detection of installed package and version detection of the latest version in the repository
- Reporting should be OK for all cases

PR was proposed by coredumb: https://github.com/Normation/rudder-techniques/pull/172


Subtasks

Bug #6041: Implement rpmPackageInstallation post hook commands and working updateReleasedNicolas CHARLESActions
Bug #6042: Build error on metadata.xml in rpmPackageInstallationReleasedNicolas CHARLESActions

Related issues

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 successRejected2014-07-08Actions

History

#2

Updated by Vincent MEMBRÉ over 6 years ago

  • Assignee set to Matthieu CERDA
  • Priority changed from 2 to 1

Matthieu can you look at it please ?

#3

Updated by Nicolas CHARLES over 6 years ago

This is a really interesting implementation.
However, I'm a bit worried about the execresult, as you said, cf-promises runs it for every packages, so it slows down the cf-promises too much

I hope there is an easier solution, but I can't find one right now

#4

Updated by Olivier Mauras over 6 years ago

As discussed on IRC i've modified my PR with 3 new commits that speed up the techniques by A LOT.
cf-promises now get from ~13s to less than 1s, and whole cf-agent -K run is now ~10s instead of 50s to 1mn10s

These results are for 2 packages to update.

#5

Updated by Olivier Mauras over 6 years ago

Actually "noshell" can't be used:
CRITICAL:yum.cli:Command line error: option -d: invalid integer value: ':'

#6

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.1 to 2.7.2
#7

Updated by Jonathan CLARKE over 6 years ago

  • Status changed from New to Discussion
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
#8

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.2 to 2.7.3
#9

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.3 to 2.7.4
#10

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.4 to 2.7.5
#11

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.5 to 2.7.6
#12

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.7.6 to 2.7.7
#13

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.7.7 to 2.7.8
#14

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.7.8 to 2.8.3

Since 2.7.* is not supported anymore, targeting in 2.8

#15

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.8.3 to 2.8.4
#16

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.8.4 to 133
#17

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 133 to 2.9.5
#18

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.9.5 to 2.9.6
#19

Updated by Jonathan CLARKE over 5 years ago

  • Target version changed from 2.9.6 to 2.9.7
#20

Updated by Jonathan CLARKE over 5 years ago

  • Target version changed from 2.9.7 to 150
#21

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 150 to 2.10.4
#22

Updated by Nicolas PERRON over 5 years ago

  • Target version changed from 2.10.4 to 2.10.5
#23

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.5 to 2.10.6
#24

Updated by Matthieu CERDA over 5 years ago

  • Target version changed from 2.10.6 to 2.10.7
#25

Updated by François ARMAND over 5 years ago

  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE

OK, so that one is IMPORTANT.

#26

Updated by François ARMAND over 5 years ago

  • Description updated (diff)
#27

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.7 to 2.10.8
#28

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.10.8 to 2.10.9
#29

Updated by Benoît PECCATTE about 5 years ago

  • Status changed from Discussion to 10
#30

Updated by Benoît PECCATTE about 5 years ago

  • Status changed from 10 to Pending release
#31

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.10.9 to 2.10.10
#32

Updated by Vincent MEMBRÉ about 5 years ago

  • Subject changed from Technique enhancement: rpmPackageInstallation post hook commands and working update to Add post hook commands and working update for rpm package installation
#33

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.10 and 2.11.7, which were these days.

#34

Updated by Benoît PECCATTE almost 5 years ago

  • Project changed from Techniques to Rudder
  • Category changed from Techniques to Techniques

Also available in: Atom PDF