Modify

Opened 10 months ago

Closed 4 months ago

Last modified 4 weeks ago

#16231 closed task (fixed)

Upgrade server to Ubuntu 18.04.1 LTS

Reported by: Don-vip Owned by: Don-vip
Priority: normal Milestone: 18.11
Component: Trac Version:
Keywords: ubuntu server migration Cc:

Description

New LTS has been released:
https://lists.ubuntu.com/archives/ubuntu-announce/2018-April/000231.html

As always it is better to wait for first update before upgrading the server, and there is no hurry (we have no immediate plans to switch to Java 11).

18.04.1 is scheduled for July 26th.

Attachments (1)

pgsql.png (12.7 KB) - added by Don-vip 4 months ago.

Download all attachments as: .zip

Change History (26)

comment:1 Changed 10 months ago by stoecker

Why do we use LTS when we anyway upgrade each time? 😜

comment:2 Changed 10 months ago by Don-vip

Because we're lazy, and one update every two years is better than one update every 6 months :)

Last time the update was critical for the Java 8 transition. With everything happening from Oracle side, I don't think we'll leave Java 8 as fast as the other migrations. However this OS update is also needed for that, there's now in Ubuntu a openjdk-lts package which will target every OpenJDK LTS version (next one is 11 in September). Ubuntu 18.04 ships with OpenJDK 10 but Debian maintainer confirmed the package will be upgraded to Java 11. It's a good approach.

comment:3 Changed 10 months ago by Don-vip

And this is why we don't switch to 18.04 :D ticket:15851#comment:26

comment:4 Changed 8 months ago by Don-vip

I asked for a small VM to OSM France to validate the migration: https://github.com/osm-fr/infrastructure/issues/45

comment:5 Changed 8 months ago by stoecker

If a Hetzner CX10 (1 vCore, 1 GB RAM, 25 GB HDD) is enough you can get one for two weeks beginning with 1. July from me.

comment:6 Changed 8 months ago by Don-vip

I'm afraid 1 GB ram won't be enough if I want to check Jenkins behaves nicely too. OSM-FR is ok for 8 GB for a month :)

comment:7 in reply to:  6 Changed 8 months ago by stoecker

Replying to Don-vip:

I'm afraid 1 GB ram won't be enough if I want to check Jenkins behaves nicely too.

Yes. It's the smallest one ... Fine for projects which aren't as complex as JOSM server. I have also a lot bigger ones, but they are all needed :-)

OSM-FR is ok for 8 GB for a month :)

Good.

comment:8 Changed 8 months ago by stoecker

P.S. We can also do a snapshot, so that we can go back in case there are troubles directly after the upgrade.

comment:9 Changed 6 months ago by Don-vip

Milestone: 18.0818.09

comment:10 Changed 5 months ago by Don-vip

Didn't have time to look into this yet. It's likely we get errors with the openjdk update, see ticket:16688#comment:19

comment:11 Changed 5 months ago by Don-vip

Milestone: 18.0918.10

comment:12 Changed 4 months ago by Don-vip

Owner: changed from stoecker to Don-vip
Status: newassigned

comment:13 Changed 4 months ago by Don-vip

With 4 months delay I start working on the OSM-FR machine :)

comment:14 Changed 4 months ago by stoecker

Before starting on real server we shut do a shutdown and make a snapshot in case something goes wrong :-)

comment:15 Changed 4 months ago by Don-vip

Sure! I'll let you know once I manage to simulate the update on the OSM-FR server. Maybe tonight.

comment:16 in reply to:  15 Changed 4 months ago by stoecker

Replying to Don-vip:

Sure! I'll let you know once I manage to simulate the update on the OSM-FR server. Maybe tonight.

Depending on your time we should choose an "offical downtime" announced at least 2 days in advance. Then shutdown, go to Hetzner interface and create snapshot, start again and update. If all ok (or only minor issues) it's done. If not shutdown, reinstall snapshot :-) I can help from Friday till Sunday.

comment:17 Changed 4 months ago by Don-vip

OK :) I have almost finished the setup. Only one last thing to see with OSM-FR sysadmin and I will be able to test the migration very soon.

comment:18 Changed 4 months ago by Don-vip

Setup finished I'm launching the upgrade on OSM-FR server.

Changed 4 months ago by Don-vip

Attachment: pgsql.png added

comment:19 Changed 4 months ago by Don-vip

Upgrade successful, it was quite straightforward:

sudo do-release-upgrade
sudo pg_dropcluster --stop 10 main
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
sudo apt remove postgresql-9.5 postgresql-client-9.5

Can you help next week? Like Tuesday or Wednesday evening.

comment:20 Changed 4 months ago by stoecker

If not too late: Yes.

comment:21 Changed 4 months ago by Don-vip

Milestone: 18.1018.11

OK let's try Tuesday.

comment:22 Changed 4 months ago by Don-vip

Resolution: fixed
Status: assignedclosed

Done :) No major issue.

comment:23 Changed 4 months ago by simon04

Vincent, thank you so much for your continuous efforts in maintaining and keeping alive the JOSM infrastructure! Congrats also to the successful upgrade.

comment:24 Changed 4 months ago by Don-vip

Thanks! Dirk helped me too :) I will install GitLab later this week. The good news with this update is we have a native java 11 package now.

comment:25 Changed 4 weeks ago by Don-vip

Keywords: server migration added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.