Project

General

Profile

Actions

Bug #5223

closed

After upgrade to 2.11 on rpm systems, web interface isn't started by jetty as rudder.xml is deleted during upgrade

Added by Nicolas PERRON almost 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The migration of Rudder from 2.10 to 2.11 broken jetty application since a symlink is missing:

server:~ # ls -lh /opt/rudder/jetty7/contexts
total 40K
-rw-r--r-- 1 root root  634 Oct 31  2013 README.TXT
lrwxrwxrwx 1 root root   38 Jul  4 07:15 endpoint.xml -> /opt/rudder/share/webapps/endpoint.xml
-rw-r--r-- 1 root root  655 Oct 31  2013 hightide.xml
-rw-r--r-- 1 root root  913 Oct 31  2013 javadoc.xml
-rw-r--r-- 1 root root 3.5K Oct 31  2013 test-annotations.xml
-rw-r--r-- 1 root root  917 Oct 31  2013 test-jaas.xml
-rw-r--r-- 1 root root 4.5K Oct 31  2013 test-jndi.xml
drwxr-xr-x 2 root root 4.0K Jul  4 07:14 test.d
-rw-r--r-- 1 root root 3.7K Oct 31  2013 test.xml
-rw-r--r-- 1 root root 3.7K Oct 31  2013 test.xml.orig

No error appear in the logs but the application is not launched.

Actions #1

Updated by Nicolas PERRON almost 10 years ago

  • Target version set to 2.11.0~rc1
Actions #2

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Actions #3

Updated by Nicolas PERRON almost 10 years ago

I have a supposition:
- On Rudder 2.10, /opt/rudder/jetty7/contexts/rudder.xml is an owned file
- On Rudder 2.11, /opt/rudder/jetty7/contexts/rudder.xml is a symlink created during postinst

During a migration of package A to package B, the scriptlets process is (cf http://fedoraproject.org/wiki/Packaging:ScriptletSnippets ):
- preinst (from B)
- install package B
- postinst (from B) --> (/opt/rudder/jetty7/contexts/rudder.xml became symlink)
- preun (from A)
- remove package A --> (/opt/rudder/jetty7/contexts/rudder.xml removed as file owned by the package)
- postun (from A)

It seems to be what's happening there: /opt/rudder/jetty7/contexts/rudder.xml is no more owned by the package so it is removed.

As we don't want to install this file but still want it owned by the package, the correct directive may be "%ghost" (cf http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list-directives.html ).

Actions #4

Updated by Nicolas PERRON almost 10 years ago

  • Project changed from Rudder to 34
  • Status changed from New to Pending technical review
  • Assignee set to Jonathan CLARKE
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/442

PR URL added: https://github.com/Normation/rudder-packages/pull/442

Jon, coukld you review it please ?

Actions #5

Updated by Nicolas PERRON almost 10 years ago

  • Subject changed from Migrate Rudder from 2.10 to 2.11 on SLES broke jetty application to Migrate Rudder from 2.10 to 2.11 on RPM system broke jetty application
Actions #6

Updated by Nicolas PERRON almost 10 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:f472815cd777505ce11c6a3c2739584a354531e1.

Actions #7

Updated by Jonathan CLARKE almost 10 years ago

Applied in changeset commit:99d1e8418480946764678d3e2e190a130707e14d.

Actions #8

Updated by Vincent MEMBRÉ almost 10 years ago

  • Subject changed from Migrate Rudder from 2.10 to 2.11 on RPM system broke jetty application to After upgrade to 2.11 on rpm systems, jetty cannot start because rudder.xml is deleted during upgrade
Actions #9

Updated by Nicolas PERRON almost 10 years ago

  • Subject changed from After upgrade to 2.11 on rpm systems, jetty cannot start because rudder.xml is deleted during upgrade to After upgrade to 2.11 on rpm systems, web interface isn't started by jetty as rudder.xml is deleted during upgrade
Actions #10

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.0~rc2 (announcement , changelog), which was released today.

Actions #11

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF