Projet

Général

Profil

Tâche #10876

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

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

Ajouté par Gilles Grandgérard il y a environ 9 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
06/11/2015
Echéance:
% réalisé:

100%

Temps estimé:
6.00 h
Temps passé:
Restant à faire (heures):
0.0

Révisions associées

Révision 62f09a54 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

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

Révision 4678545c (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

Add --download option to stop after download

Ref: #10876

Révision 2b3f02c8 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

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

Révision bb34f51a (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

Add option to set target release

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

Ref: #10876

Révision 0747c00e (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

Make pylint happier and fix some spacing

Ref: #10876

Révision 371503cf (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

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

Révision 6d4cb927 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

Fix messages displayed on console

Ref: #10876

Révision 9cb0ba95 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

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

Révision 83c1a676 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

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

Révision e0421937 (diff)
Ajouté par Daniel Dehennin il y a plus de 8 ans

Parameterize apt-cacher-ng port

Ref: #10876

Historique

#1 Mis à jour par Scrum Master il y a environ 9 ans

  • Distribution changé de EOLE 2.4 à EOLE 2.5

#2 Mis à jour par Scrum Master il y a plus de 8 ans

  • Tâche parente mis à #13651

#3 Mis à jour par Joël Cuissinat il y a plus de 8 ans

  • Temps estimé mis à 6.00 h
  • Restant à faire (heures) mis à 6.0

#4 Mis à jour par Scrum Master il y a plus de 8 ans

  • Statut changé de Nouveau à En cours
  • Début mis à 06/11/2015

#5 Mis à jour par Scrum Master il y a plus de 8 ans

  • Statut changé de En cours à Nouveau

#6 Mis à jour par Emmanuel GARETTE il y a plus de 8 ans

  • Tâche parente changé de #13651 à #14063

#7 Mis à jour par Emmanuel GARETTE il y a plus de 8 ans

  • Projet changé de Distribution EOLE à creole

#8 Mis à jour par Joël Cuissinat il y a plus de 8 ans

  • Version cible Sprint 2015 45-47 - Équipe MENESR supprimé

#9 Mis à jour par Scrum Master il y a plus de 8 ans

  • Statut changé de Nouveau à En cours

#10 Mis à jour par Scrum Master il y a plus de 8 ans

  • Assigné à mis à Daniel Dehennin

#11 Mis à jour par Daniel Dehennin il y a plus de 8 ans

  • Restant à faire (heures) changé de 6.0 à 3.0

#12 Mis à jour par Daniel Dehennin il y a plus de 8 ans

  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 3.0 à 0.25

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

#13 Mis à jour par Daniel Dehennin il y a plus de 8 ans

  • % réalisé changé de 100 à 80
  • Restant à faire (heures) changé de 0.25 à 2.0

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

#14 Mis à jour par Daniel Dehennin il y a plus de 8 ans

  • % réalisé changé de 80 à 100
  • Restant à faire (heures) changé de 2.0 à 0.25

#15 Mis à jour par Scrum Master il y a plus de 8 ans

  • Statut changé de En cours à Résolu

#16 Mis à jour par Lionel Morin il y a plus de 8 ans

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

#17 Mis à jour par Lionel Morin il y a plus de 8 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.25 à 0.0

Formats disponibles : Atom PDF