Skip to content

debian: remove old usage jars during upgrade - #2552

Merged
yadvr merged 1 commit into
apache:4.11from
shapeblue:usage-ubuntu-upgrade-fix
Apr 9, 2018
Merged

debian: remove old usage jars during upgrade#2552
yadvr merged 1 commit into
apache:4.11from
shapeblue:usage-ubuntu-upgrade-fix

Conversation

@yadvr

@yadvr yadvr commented Apr 7, 2018

Copy link
Copy Markdown
Member

This removes old cloudstack-usage jars during upgrade as part of
the pre-install step of cloudstack-usage deb package.

This fixes #2542

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
    Testing
  • I have added tests to cover my changes.
  • All relevant new and existing integration tests have passed.
  • A full integration testsuite with all test that can run on my environment has passed.

@blueorangutan package

This removes old cloudstack-usage jars during upgrade as part of
the pre-install step of cloudstack-usage deb package.

This fixes apache#2542

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added this to the 4.11.1.0 milestone Apr 7, 2018
@yadvr yadvr self-assigned this Apr 7, 2018
@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1887

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, but why only on upgrade, can we do this on uninstall/remove as well?

@yadvr

yadvr commented Apr 8, 2018

Copy link
Copy Markdown
Member Author

@DaanHoogland thanks, I've kept the changes limited to address the issue #2542 Ideally, all the files installed by the package should be removed during upgrade or removal/uninstall.

@DaanHoogland

Copy link
Copy Markdown
Contributor

ok, @rhtyd

@yadvr

yadvr commented Apr 9, 2018

Copy link
Copy Markdown
Member Author

Upgrade test is not done by Trillian, tested upgrade manually on Ubuntu xenial 16.04. Seems working okay for me. I'll merge this based on reviews and manual upgrade test.

@yadvr
yadvr merged commit 9cf1532 into apache:4.11 Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants