Skip to content

CLOUDSTACK-9046 - Fix upgrade path from 4.4 and 4.5 to 4.6 - #1050

Merged
asfgit merged 2 commits into
apache:masterfrom
artificially-ai:fix/upgrade_path-CLOUDSTACK-9046
Nov 9, 2015
Merged

asfgit merged 2 commits into
apache:masterfrom
artificially-ai:fix/upgrade_path-CLOUDSTACK-9046

Conversation

@wilderrodrigues

Copy link
Copy Markdown
Contributor

This PR fixes the upgrade path from 4.4.x/4.5.x to 4.6.0. We introduced the logic to update the database with the correct information about the SystemVMs.

We tested this PR with by doing an upgrade from 4.4.4 to 4.6.0 and it works as expected.

@wilderrodrigues

Copy link
Copy Markdown
Contributor Author

Ping @remibergsma @borisroman @DaanHoogland @wido

Tests were executed as described below:

  • Deploy 4.4.4
    • KVM Host
    • Management Server
    • 2 VMs running on Isolated Networks + 2Pub IPs + FW/PF
    • 2 VPCs with 1 tier each + 1 VM per tier + ACL + PF
    • SSH into the 4 VMs to testify it was all fine with 4.4.4
  • Upgrade steps
    • Register SysteVM 4.5 and 4.6
      • Needed because we were upgrading from 4.4.4
    • Stop/Update the KVM agent
    • Stop/Update the Management Server
    • Check the Routers say "Requires Upgrade = YES"
    • SSH into SSVM/CPVM and check /etc/cloudstack-release file. It should say 4.4.1
    • Destroy SSVM/CPVM
    • Check again the /etc/cloudstack-release file. It should say 4.6.0
    • Reboot the Virtual Routers
    • Check the /etc/cloudstack-release. It should say 4.6.0
    • SSH into the VMs via the public IPs. It should be possible

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.

no biggy but this could go outside of the for loop

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Code is executed only once. I did not look, just cced the stuff from 4.4 to 4.5 and did some changes. Not really worthy changing and force pushing it.

@remibergsma

Copy link
Copy Markdown
Contributor

LGTM, I worked with @wilderrodrigues to debug the issues over the weekend and today. Together we made it work and this PR is the result. I was there when we tested it and have seen it working.

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.

can go outside as well

@DaanHoogland

Copy link
Copy Markdown
Contributor

some unimportant nitpicking but otherwise lgtm (code inspection only)

@borisroman

Copy link
Copy Markdown
Contributor

LGTM 👍

Deployed 4.5.2 from DEB packages on Ubuntu 14.04. Deployed a zone, deployed the systemvm's and spawned a uservm.

Upgraded to 4.6 with packages build from this branch. Upgrade went ok! 👍

INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) DB version = 4.5.2 Code Version = 4.6.0
INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Database upgrade must be performed from 4.5.2 to 4.6.0
INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Cleaning upgrades because all management server are now at the same version
INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Cleanup upgrade Upgrade452to460 to upgrade from 4.5.2-4.6.0 to 4.6.0
INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Configuring CloudStack Components
INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Done Configuring CloudStack Components

@asfgit
asfgit merged commit 72e79bc into apache:master Nov 9, 2015
asfgit pushed a commit that referenced this pull request Nov 9, 2015
CLOUDSTACK-9046 - Fix upgrade path from 4.4 and 4.5 to 4.6This PR fixes the upgrade path from 4.4.x/4.5.x to 4.6.0. We introduced the logic to update the database with the correct information about the SystemVMs.

We tested this PR with by doing an upgrade from 4.4.4 to 4.6.0 and it works as expected.

* pr/1050:
  CLOUDSTACK-9046 - Add new ACS systemVMs website
  CLOUDSTACK-9046 - Add SystemVM upgrade from 4.5 to 4.6 in the Upgrade452to460.java file

Signed-off-by: Remi Bergsma <github@remi.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants