Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update instructions for RPM/DEB and bin distribution #212

Merged
merged 3 commits into from
Sep 26, 2017

Conversation

tbouron
Copy link
Member

@tbouron tbouron commented Sep 14, 2017

This requires the paths.html page available with #210

@tbouron
Copy link
Member Author

tbouron commented Sep 14, 2017

I added the links for the DEB package on the download pages. This is subject to our ability of building the DEB and RPM packages for snapshot though /cc @richardcloudsoft

Copy link
Contributor

@aledsage aledsage left a comment

Choose a reason for hiding this comment

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

Looks good; I tested the upgrade from 0.11.0 to 0.12.0-rc3 on centos7 (installing the rpm, starting 0.11.0, deploying a simple app, then following these upgrade instructions).

Other than these comments, the instructions worked great for me.

Thanks @tbouron!


3. Confirm that Brooklyn is definitely not running (see step 1 above).

4. Delete the Brooklyn install directory: `sudo rm -r /opt/brooklyn`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Also need to sudo rm -r /var/log/brooklyn/.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, will amend

# Ubuntu / Debian
sudo dpkg -i apache-brooklyn-xxxx.all.deb

3. Wait for Brooklyn to be fully started (i.e. its web-console to be responsive).
Copy link
Contributor

Choose a reason for hiding this comment

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

For me, brooklyn process wasn't running. Do you definitely expect it to auto-start on rpm install?

Copy link
Member Author

@tbouron tbouron Sep 25, 2017

Choose a reason for hiding this comment

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

Brooklyn does not start automatically, I should remove this step. Thanks @aledsage


7. Validate that the new release works, by starting in "HOT_BACKUP" mode.

1. Before starting Brooklyn, reconfigure `./etc/org.apache.brooklyn.osgilauncher.cfg` and set `highAvailabilityMode=HOT_BACKUP`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be /etc/brooklyn/...

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, will amend

# Ubuntu / Debian
start brooklyn

3. Check whether you have rebind ERROR messages in `./log/brooklyn.info.log`, e.g. `sudo grep -E "WARN|ERROR" /opt/brooklyn/log/brooklyn.debug.log`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say "ERROR mesages in the brooklyn log, e.g. ..." (rather than the ./log/...)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd use sudo grep -E "Rebind|WARN|ERROR" /var/log/brooklyn/brooklyn.info.log (important to include something like "Rebind" so the user sees a message about success, as well as some benign (?) warnings).

Copy link
Member Author

Choose a reason for hiding this comment

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

Make sense @aledsage, will update

@tbouron
Copy link
Member Author

tbouron commented Sep 25, 2017

@aledsage Comments addressed

Copy link
Member

@drigodwin drigodwin left a comment

Choose a reason for hiding this comment

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

Thanks @tbouron

@asfgit asfgit merged commit 2976890 into apache:master Sep 26, 2017
asfgit pushed a commit that referenced this pull request Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants