Server Manager Installer fails on upgrade due to cleanup

Bug #1497407 reported by Nitish Krishna Kaveri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Nitish Krishna Kaveri
Trunk
Fix Committed
High
Nitish Krishna Kaveri

Bug Description

The Server Manager Installer fails because pre install deletes /opt/contrail/contrail_server_manager and rules file doesn't bring in this folder with mkdir -p

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22-dev

Review in progress for https://review.opencontrail.org/13920
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/13921
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22-dev

Review in progress for https://review.opencontrail.org/13920
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13921
Committed: http://github.org/Juniper/contrail-packaging/commit/be4f944a406f1afab101406d3989cf08f0dbdffa
Submitter: Zuul
Branch: master

commit be4f944a406f1afab101406d3989cf08f0dbdffa
Author: nitishkrishna <email address hidden>
Date: Fri Sep 18 11:44:30 2015 -0700

Closes-Bug: #1497407 - Server Manager Upgrade fix to bring in dirs

Dir /opt/contrail/contrail_server_manager/ is deleted in preinst
It should be brought in by rules file

Patch 2:
Moved post rm removal of files to pre rm (Incorrect order)
In purge case: pre rm removes files
In upgrade case: pre rm removes files
In install case: pre install removes files

Change-Id: I117787a0fc687abecbfd6df47faed7cec8a73c53

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/13920
Committed: http://github.org/Juniper/contrail-packaging/commit/606714dbdf540cf4b5340e24a8d97bb46fe7b233
Submitter: Zuul
Branch: R2.22-dev

commit 606714dbdf540cf4b5340e24a8d97bb46fe7b233
Author: nitishkrishna <email address hidden>
Date: Fri Sep 18 11:44:30 2015 -0700

Closes-Bug: #1497407 - Server Manager Upgrade fix to bring in dirs

Dir /opt/contrail/contrail_server_manager/ is deleted in preinst
It should be brought in by rules file

Patch 2:
Moved post rm removal of files to pre rm (Incorrect order)
In purge case: pre rm removes files
In upgrade case: pre rm removes files
In install case: pre install removes files

Change-Id: I117787a0fc687abecbfd6df47faed7cec8a73c53

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/14927
Submitter: Nagendra Prasath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged
Download full text (10.2 KiB)

Reviewed: https://review.opencontrail.org/14927
Committed: http://github.org/Juniper/contrail-packaging/commit/7d8d435891f23504683a6e7d7a8fb5a4c5cd7585
Submitter: Zuul
Branch: R2.20

commit 7d8d435891f23504683a6e7d7a8fb5a4c5cd7585
Author: Prasad Miriyala <email address hidden>
Date: Tue Aug 25 11:27:47 2015 -0700

port smlite related changes from R2.22-dev to R2.20

Closes-Bug: 1513743

This is a combination of 21 commits.
-------------------------------------------------------------------
The first commit's message is:
Partial-Bug: #1488259 smlite changes for packaging changes
- Add server manager lite deb packaging changes
- Modify setup.sh to include server manager lite option
- Add provision shell script to install server manager, create server manager objects and issue provision
- Pre check/config for testbey.py specified servers for a cluster
- Local repo pinning changes

Change-Id: I45b4cf957a4c1f393e8068ee8eee2d9580d397a3
(cherry picked from commit 2d45ba3e72322c7a8b4420a03b6a47106693d4d3)

This is the 2nd commit message:
-------------------------------------------------------------------

Related-Bug: #1488259

Bug introduced by preceding merge to R2.22-dev.
The package libpython2.7=2.7.6-8ubuntu0.2 should only be installed in Ubuntu 14.04
Bug seen: the version 2.7.6-8ubuntu0.2 is not in precise repos
Smgr install on Ubuntu12.04 fails.

Change-Id: I3a7c212af4e091fd08b8725630657fd2fb4c4b2c
(cherry picked from commit 4a7fbecee4bb2766c4dbe996e99622ebfb37eb93)

This is the 3rd commit message:
-------------------------------------------------------------------

Related-Bug: #1488259 - Simplifying setup script and moving configuration to Post Install

Bulk of the changes made in setup script for server manager has been moved to Post install script of various packages
Some packages added as dependencies in control files
Rules files changes to prevent same files being overwritten with each install
Remaining: Some packages are still being installed explicitly -> cobbler, puppetmaster-common, puppetmaster-python, libpython2.7
These packages have to be added to server-manager local repo

Patch 2:
Server Manager Install shows minimal outputs on console
named.template and named.conf.options are now manual config steps
Puppet agent certs are moved and not deleted on fresh install
Other review comments implemented

Patch 3:
Found bug in the name of sendmail and ntp conf samples being copied

Patch 4:
set +e, set -e for a grep bug in puppet cert generate
service restart for sm lite moved from postinst to setup script

Change-Id: If871e843d0f9ef17fb67833ae18df13c283f3664
(cherry picked from commit 2ff50b696a446e980fd64b672fef831e9f7a8b5d)

This is the 4th commit message:
-------------------------------------------------------------------

updates for sm-lite packages - use interface_setup.py from client package
Closes-Bug: 1490779

Change-Id: I6b9b17d3113e58624d64d665af99b75d26614675
(cherry picked from commit 89d7c936695bd3bdadd6383cea6aa09c030e918f)

This is the 5th commit message:
-------------------------------------------------------------------

Related-Bug: #1488259 - Package xmltodict missing from SMlite and SMgr install

The package x...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.