Feature #1870
Full automatic package install/upgrade/uninstall support
Status: | CLOSED | Start date: | 04/15/2013 | |
---|---|---|---|---|
Priority: | Normal | Due 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!!
Subtasks
Associated revisions
createlinks: remove firewall-adjust and runlevel-adjust actions. Refs #1870
createlinks: remove firewall-adjust and runlevel-adjust actions. Refs #1870
createlinks: remove runlevel-adjust action. Refs #1870
spec: remove queue calls. Refs #1870
spec: remove queue calls. Refs #1870
createlinks: remove firewall-adjust and runlevel-adjust calls. Refs #1870
nethserver-dnsmasq-uninstall: remove uninstall action. Refs #1870
createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870
nethserver-mail-postmap-update action: expand postfix/postmap template to obtain the list of databases to expand. Refs #1870
createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870
postfix/postmap template: add required databases for nethserver-mail-postmap-update action. Refs #1870
createlinks: removed runlevel-adjust and firewall-adjust calls. Refs #1870
amavisd default props moved to nethserver-mail-filter. Refs #1870
/etc/amavisd.conf template: default content inspection type is "amavisd-after-queue" with all checks disabled. Refs #1870
/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
/etc/postfix/master.cf template: enable amavisd on queued messages. Refs #1870
/postfix/master.cf template: moved 30amavisd-before-queue fragment to nethserver-mail-filter. Refs #1870
/etc/postfix/master.cf template: Override the default content inspection type. Refs #1870
nethserver-smartd-conf: remove nethserver-smartd-conf action. Refs #1870
nethserver-mail-postmap-update action: filter out db file if source does not exist. Refs #1870
nethserver-mail-postmap-update action: warn if source db file does not exist. Refs #1870
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
*.spec.in: require nethserver-directory explicitly. Refs #1870
system-adjust action: import symbols from nethserver yum plugin. Refs #1870
nethserver.py (posttrans_hook): ensure package list is sorted respecting RPM dependencies. Refs #1870
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.txt 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