Feature #1870

Full automatic package install/upgrade/uninstall support

Added by Davide Principi over 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:04/15/2013
Priority:NormalDue date:04/16/2013
Assignee:-% Done:

100%

Category:-
Target version:v6.4-beta1
Resolution: NEEDINFO:

Description

As it came out of DBF07, we need an automatized way to cope with packages installation, upgrading, uninstallation.

The goals are
  • simplify our package rules
  • make the system behaviour more predictable during RPMs transactions
  • write less code and in package spec file and update actions,

...and get rid of uninstall events!!

updated.txt Magnifier - packages update versions (4.09 KB) Davide Principi, 04/17/2013 12:09 PM


Subtasks

Feature #1871: Signal update events from yum posttrans hook CLOSED

Enhancement #1872: Remove signal-event calls in .spec.in filesCLOSED

Enhancement #1873: Base: implement runlevel-adjust eventCLOSED

Enhancement #1874: Remove manage_add and manage_remove callsCLOSED

Enhancement #1875: Base: implement firewall-adjust eventCLOSED

Associated revisions

Revision 508d3e6c
Added by Giacomo Sanchietti over 8 years ago

createlinks: remove firewall-adjust and runlevel-adjust actions. Refs #1870

Revision e17604a8
Added by Giacomo Sanchietti over 8 years ago

createlinks: remove firewall-adjust and runlevel-adjust actions. Refs #1870

Revision 206a9e79
Added by Giacomo Sanchietti over 8 years ago

createlinks: remove runlevel-adjust action. Refs #1870

Revision fc846efd
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision a4628d7d
Added by Giacomo Sanchietti over 8 years ago

Service.pm: remove managedBy implementation. Refs #1870 #1874

Revision 72816104
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision c5e0b3d5
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision 55202cce
Added by Giacomo Sanchietti over 8 years ago

spec: remove queue calls. Refs #1870

Revision 0d4dfe4d
Added by Giacomo Sanchietti over 8 years ago

spec: remove queue calls. Refs #1870

Revision 6d53e01f
Added by Giacomo Sanchietti over 8 years ago

createlinks: remove firewall-adjust and runlevel-adjust calls. Refs #1870

Revision 8cbd92c7
Added by Giacomo Sanchietti over 8 years ago

createlinks, events: create runlevel-adjust and firewall-adjust event. Refs #1870 #1871

Revision 1ce52192
Added by Giacomo Sanchietti over 8 years ago

createlinks, spec: remove manage_add/remove calls. Refs #1870 #1872 #1874

Revision c593238e
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision db386be3
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision dc9eb06f
Added by Giacomo Sanchietti over 8 years ago

nethserver-dnsmasq-uninstall: remove uninstall action. Refs #1870

Revision 0cc06eaf
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision d4a1c686
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision e59c9652
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision 6aa2e535
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision 9a0bf3c2
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision 99e49304
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision f91ed5d1
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision dd828367
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls. Refs #1870 #1872 #1874

Revision 013b3350
Added by Davide Principi over 8 years ago

createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870

Revision a880edd1
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls. Refs #1870 #1872 #1874

Revision cded4320
Added by Davide Principi over 8 years ago

nethserver-mail-postmap-update action: expand postfix/postmap template to obtain the list of databases to expand. Refs #1870

Revision 0672903c
Added by Davide Principi over 8 years ago

createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870

Revision 621e898f
Added by Davide Principi over 8 years ago

postfix/postmap template: add required databases for nethserver-mail-postmap-update action. Refs #1870

Revision 8a586e2b
Added by Davide Principi over 8 years ago

createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870

Revision 04b99898
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions, spec: remove manage_add/remove calls, remove uninstall event. Refs #1870 #1872 #1874

Revision f84aeaf0
Added by Davide Principi over 8 years ago

amavisd default props moved to nethserver-mail-filter. Refs #1870

Revision 010b8cf7
Added by Giacomo Sanchietti over 8 years ago

createlinks, actions: remove manage_add/remove calls. Refs #1870 #1872 #1874

Revision 861a6fd8
Added by Davide Principi over 8 years ago

/etc/amavisd.conf template: default content inspection type is "amavisd-after-queue" with all checks disabled. Refs #1870

Revision 320f865a
Added by Davide Principi over 8 years ago

/etc/postfix/master.cf template: default content inspection type is "amavisd-after-queue", connection limits are set only for type "amavisd-before-queue". Refs #1870

Revision d5833ae3
Added by Davide Principi over 8 years ago

/etc/postfix/master.cf template: enable amavisd on queued messages. Refs #1870

Revision f6fb31d0
Added by Davide Principi over 8 years ago

/postfix/master.cf template: moved 30amavisd-before-queue fragment to nethserver-mail-filter. Refs #1870

Revision 4777a54e
Added by Davide Principi over 8 years ago

/etc/postfix/master.cf template: Override the default content inspection type. Refs #1870

Revision 1b504e77
Added by Giacomo Sanchietti over 8 years ago

nethserver-smartd-conf: remove nethserver-smartd-conf action. Refs #1870

Revision cfc270c2
Added by Davide Principi over 8 years ago

nethserver-mail-postmap-update action: filter out db file if source does not exist. Refs #1870

Revision 7b9d6c72
Added by Davide Principi over 8 years ago

nethserver-mail-postmap-update action: warn if source db file does not exist. Refs #1870

Revision 89033b93
Added by Davide Principi over 8 years ago

nethserver-samba-group-sync action: check if samba idmap backend is functional before going on, and don't fail if a unix group does not exist. Refs #1870

Revision 990ab1dc
Added by Davide Principi over 8 years ago

*.spec.in: require nethserver-directory explicitly. Refs #1870

Revision 4b4736c0
Added by Davide Principi over 8 years ago

system-adjust action: import symbols from nethserver yum plugin. Refs #1870

Revision 35a1bda4
Added by Davide Principi over 8 years ago

nethserver.py (posttrans_hook): ensure package list is sorted respecting RPM dependencies. Refs #1870

Revision ddaac614
Added by Davide Principi about 8 years ago

nethserver-smartd-uninstall action: removed - unused. Refs #1870

History

#1 Updated by Giacomo Sanchietti over 8 years ago

  • Status changed from NEW to ON_DEV

#2 Updated by Davide Principi over 8 years ago

  • Status changed from ON_DEV to ON_QA
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 30 to 80

#3 Updated by Davide Principi over 8 years ago

  • File updated.txtMagnifier added
  • Status changed from ON_QA to MODIFIED
  • % Done changed from 80 to 100

The upgrade script ran successfully! See attached file for RPMs transaction details.

#4 Updated by Davide Principi over 8 years ago

  • Status changed from MODIFIED to ON_DEV
  • % Done changed from 100 to 30

We must ensure an action is not executed until the owning package is properly configured.

Say a package is configured after its *-update event has been run.

Currently, if an event comprises actions from different packages it can be signalled before all the bound packages are configured. This happens on new installations, where a lot of packages are installed within the same yum transaction.

For now, the order of *-update events respects the RPMs dependencies, but if an -update event starts a sub-event (i.e. group-create) it happens to execute actions from not-configured packages. Those actions may fail!

#5 Updated by Filippo Carletti over 8 years ago

We must ensure an action is not executed until the owning package is properly configured.

In the action that may fail, check that the mandatory condition is satisfied prior to execute the action.

#6 Updated by Davide Principi over 8 years ago

  • Status changed from ON_DEV to ON_QA
  • % Done changed from 30 to 80

In dev

  • nethserver-samba-1.2.0-1.1.0git89033b93.ns6.noarch
  • nethserver-yum-1.0.3-2.1.0git35a1bda4.ns6.noarch
  • nethserver-base-1.2.1-1.0git4b4736c0.ns6.noarch

#7 Updated by Davide Principi about 8 years ago

  • Status changed from ON_QA to MODIFIED
  • % Done changed from 80 to 100

#8 Updated by Davide Principi about 8 years ago

  • Status changed from MODIFIED to CLOSED

Also available in: Atom PDF