Project

General

Profile

Tâche #10876

Scénario #14063: Upgrade-Auto/Maj-Release vers 2.5.1

Envisager l'Upgrade Auto avec l'ISO comme source.

Added by Gilles Grandgérard about 6 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/06/2015
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

Associated revisions

Revision 62f09a54 (diff)
Added by Daniel Dehennin over 5 years ago

Download and verify release ISO image

We download the target release ISO from the web or copy an image
specified by “--iso” argument.

We use SHA256SUMS and SHA256SUMS.gpg downloaded from the web to verify
the download.

We grab the most recent ISO version for the target release from the ISO
download page to download the ISO image and the SHA256SUMS files.

  • scripts/Upgrade-Auto: New option “--iso” to copy an image.
    New option “--limit-rate” to specify max download speed for wget.
    (download_iso): Download and verify ISO image.
    (download_with_wget): Download a file with wget.
    (check_iso): Verify SHA256SUMS signature and then ISO SHA256.
    (build_release_url): Build the release ISO download page URL.
    (build_iso_name): Build the ISO name for a version, autodetect
    architecture.
    (get_most_recent_version): Get the most recent stable version from the
    release download page.
    (ExtractEOLEVersions): HTMLParser listing all the versions on the
    download page.

Ref: #10876

Revision 4678545c (diff)
Added by Daniel Dehennin over 5 years ago

Add --download option to stop after download

Ref: #10876

Revision 2b3f02c8 (diff)
Added by Daniel Dehennin over 5 years ago

Move pre_download after sources.list generation

The pre_download/90-fill-apt-cache need to get an updated sources.list
when apt-cacher-ng is in use.

Ref: #10876

Revision bb34f51a (diff)
Added by Daniel Dehennin over 5 years ago

Add option to set target release

This will premit to avoid questions with automated download of ISO.

Ref: #10876

Revision 0747c00e (diff)
Added by Daniel Dehennin over 5 years ago

Make pylint happier and fix some spacing

Ref: #10876

Revision 371503cf (diff)
Added by Daniel Dehennin over 5 years ago

Add --cdrom option to mount CDROM device

  • scripts/Upgrade-Auto (download_iso): Clean iso directory and do not
    download ISO when “--cdrom” is passed.
  • upgrade/pre_download/90-fill-apt-cache (mount_iso): If no ISO file is
    found, try to mount CDROM devices.

Ref: #10876

Revision 6d4cb927 (diff)
Added by Daniel Dehennin over 5 years ago

Fix messages displayed on console

Ref: #10876

Revision 9cb0ba95 (diff)
Added by Daniel Dehennin over 5 years ago

Copy CDROM to ISO image

This permit to validate CDROM SHA256 and use the same code for all
cases.

  • scripts/Upgrade-Auto (get_cdrom_device): Get the name of the first
    CDROM device looking like an Ubuntu one.
    (download_iso): Copy CDROM device to ISO image.
  • upgrade/pre_download/90-fill-apt-cache (mount_iso): Always mount the
    ISO image.

Ref: #10876

Revision 83c1a676 (diff)
Added by Daniel Dehennin over 5 years ago

Upgrade-Auto: fix proxy handling

Get proxy from creoled and pass it to every functions which need it.

We need to disable environment variable since init_proxy will export
apt-cacher-ng which could not be used to download ISO and SHA256SUMS
files.

As the server to migrate is in production, we dont care about user
http_proxy environment variable (gen_config has the good value).

  • scripts/Upgrade-Auto (get_most_recent_version): Use an
    “urllib2.ProxyHandler()”. Take care to disable autodetection of proxy
    if proxy is not defined.
    (download_with_wget): env must be an empty dictionary to disable
    environment variable exported by “init_proxy()”.
    (build_release_url): Pass proxy to “get_most_recent_version()”.
    (check_iso): Pass proxy to “download_with_wget()”.
    (download_iso): Calculate proxy. Pass it to “build_release_url()”,
    “check_iso()” and “download_with_wget()”.

Ref: #10876

Revision e0421937 (diff)
Added by Daniel Dehennin over 5 years ago

Parameterize apt-cacher-ng port

Ref: #10876

History

#1 Updated by Scrum Master almost 6 years ago

  • Distribution changed from EOLE 2.4 to EOLE 2.5

#2 Updated by Scrum Master over 5 years ago

  • Parent task set to #13651

#3 Updated by Joël Cuissinat over 5 years ago

  • Estimated time set to 6.00 h
  • Remaining (hours) set to 6.0

#4 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours
  • Start date set to 11/06/2015

#5 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Nouveau

#6 Updated by Emmanuel GARETTE over 5 years ago

  • Parent task changed from #13651 to #14063

#7 Updated by Emmanuel GARETTE over 5 years ago

  • Project changed from Distribution EOLE to creole

#8 Updated by Joël Cuissinat over 5 years ago

  • Target version deleted (Sprint 2015 45-47 - Équipe MENESR)

#9 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#10 Updated by Scrum Master over 5 years ago

  • Assigned To set to Daniel Dehennin

#11 Updated by Daniel Dehennin over 5 years ago

  • Remaining (hours) changed from 6.0 to 3.0

#12 Updated by Daniel Dehennin over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.25

Paquet recompilé en eole-2.4.2-proposed-updates version 2.4.2_1-40

#13 Updated by Daniel Dehennin over 5 years ago

  • % Done changed from 100 to 80
  • Remaining (hours) changed from 0.25 to 2.0

Il reste à gérer le cas du montage du CDROM /dev/srX.

#14 Updated by Daniel Dehennin over 5 years ago

  • % Done changed from 80 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#15 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

#16 Updated by Lionel Morin over 5 years ago

Utilisation de l'option iso de l'Upgrade-Auto pour migrer un horus 2.4.2 vers 2.5.1 => OK

#17 Updated by Lionel Morin over 5 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Also available in: Atom PDF