Skip to content

Conversation

@treydock
Copy link
Contributor

@treydock treydock commented Oct 3, 2022

Draft to let tests run and also need to test the upgrade for Ubuntu on a container. RPM upgrade is same as always.

Fixes #2308

┆Issue is synchronized with this Asana task by Unito

@treydock treydock requested a review from johrstrom October 3, 2022 20:41
@treydock
Copy link
Contributor Author

treydock commented Oct 4, 2022

@johrstrom Below are the two possible upgrade paths for Ubuntu that I tested in a container.

Modify repo file:

sed -i.bak 's|12|14|g' /etc/apt/sources.list.d/nodesource.list
apt update
apt install --only-upgrade ondemand

Or install newer release file with flags to overwrite:

wget -O /tmp/ondemand-release-web_2.0.1_all.deb https://apt.osc.edu/ondemand/2.0/ondemand-release-web_2.0.1_all.deb
apt -o Dpkg::Options::="--force-confnew" install /tmp/ondemand-release-web_2.0.1_all.deb
apt update
apt install --only-upgrade ondemand

Because the repo file is in /etc, apt won't overwrite without either a prompt or that flag. I think second option is better so that the packaged files are consistent with the package installed. Can leave off the Dpkg::Options but then just have tell people to choose the "Y" option to overwrite old file.

For EL7 is just:

yum update ondemand

For EL8 sites do this:

dnf module reset nodejs
dnf module enable nodejs:14
dnf update ondemand

Normally we put update instructions in release notes, so this might require a new section in Docs for updating OnDemand.

@treydock treydock marked this pull request as ready for review October 4, 2022 20:46
Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

Alright. Let's ruin some people's week. I'm only half joking, but node being EOL kinda forces us to do it.

@treydock
Copy link
Contributor Author

treydock commented Oct 6, 2022

@johrstrom How should this get documented? Do we just update 2.0 release notes ? That only has RHEL7/RHEL8 steps. Or do we provide new Upgrade page? Or do we just want to document in the Discourse announcement?

@johrstrom
Copy link
Contributor

Do we just update 2.0 release notes ? That only has RHEL7/RHEL8 steps. Or do we provide new Upgrade page? Or do we just want to document in the Discourse announcement?

Release notes and discourse announcements. I don't think we need a whole new page on upgrades.

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.

3 participants