Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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 7 years ago.

Download all attachments as: .zip

Change History (26)

comment:1 by stoecker, 7 years ago

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

comment:2 by Don-vip, 7 years ago

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 by Don-vip, 7 years ago

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

comment:4 by Don-vip, 7 years ago

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

comment:5 by stoecker, 7 years ago

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 by Don-vip, 7 years ago

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 :)

in reply to:  6 comment:7 by stoecker, 7 years ago

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 by stoecker, 7 years ago

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 by Don-vip, 7 years ago

Milestone: 18.0818.09

comment:10 by Don-vip, 7 years ago

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 by Don-vip, 7 years ago

Milestone: 18.0918.10

comment:12 by Don-vip, 7 years ago

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

comment:13 by Don-vip, 7 years ago

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

comment:14 by stoecker, 7 years ago

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

comment:15 by Don-vip, 7 years ago

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

in reply to:  15 comment:16 by stoecker, 7 years ago

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 by Don-vip, 7 years ago

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 by Don-vip, 7 years ago

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

by Don-vip, 7 years ago

Attachment: pgsql.png added

comment:19 by Don-vip, 7 years ago

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 by stoecker, 7 years ago

If not too late: Yes.

comment:21 by Don-vip, 7 years ago

Milestone: 18.1018.11

OK let's try Tuesday.

comment:22 by Don-vip, 7 years ago

Resolution: fixed
Status: assignedclosed

Done :) No major issue.

comment:23 by simon04, 7 years ago

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 by Don-vip, 7 years ago

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 by Don-vip, 7 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.