Extremely slow during install from WebISO

Bug #2013345 reported by hqbai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
hqbai

Bug Description

Brief Description
-----------------
It's extremely slow when ostree pull from servers virtual media,

It takes more than 3 hours while a dirct copy takes 13 minutes,
so here is to add a step to rsync the ostree repo
dir to local disk first, then pull the repo from local disk,
which takes about 15 minutes.

Severity
--------
Major

Steps to Reproduce
------------------
1. Select the 'virtual media' to insert the ISO image
2. Set the boot order from CD/DVD driver first
3. Reboot the device to start a installation

Expected Behavior
------------------
The installation can be done with acceptable time cost.

Actual Behavior
----------------
The installation is extremely slow in 1.5h ~ 3h.

Reproducibility
---------------
100%

System Configuration
--------------------
NA

Branch/Pull Time/Commit
-----------------------
NA

Last Pass
---------
NA

Timestamp/Logs
--------------
NA

Test Activity
-------------
NA

Workaround
----------
NA

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to integ (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/integ/+/879053

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to integ (master)

Reviewed: https://review.opendev.org/c/starlingx/integ/+/879053
Committed: https://opendev.org/starlingx/integ/commit/f72af739e7a5f69097e6f8e70a20d997e0842178
Submitter: "Zuul (22348)"
Branch: master

commit f72af739e7a5f69097e6f8e70a20d997e0842178
Author: Haiqing Bai <email address hidden>
Date: Mon Apr 3 11:17:31 2023 +0800

    initramfs-ostree: Rsync the repo before pulling

    It is found that the 'ostree pull' is extremely slow
    if the ISO image which provides the remote ostree
    repository is served by virtual media. In this case,
    the remote location is in the form of a local
    directory instead of a URL starting with "http://"
    "https://" or "ssh://". To speed this up, we change
    to rsync the ostree repository to the true local
    file system first, then 'ostree pull' will be used
    to create the target repository with the rsynced
    repository in the local file system.
    The tests shows that the work can be done in about
    15 minutes(the size of the ostree repository is about
    2.7GB). Without this patch, it takes about 3 hours to
    finish the work.

    Test Plan:
    Pass: 1. On the webUI of the remote management controller,
          select 'Virtual Media', set 'Image URL' to the ISO
          image URL over http, then click 'Insert Media'
          2. Set 'Boot Order' to boot from 'CD/DVD Drive' first
          3. Create ipmi session and reboot the device to start
          a new installation
          4. 'The following rsync command can take a while,
          please be patient' will be printed on the console
          5. The installation will stopped at 'running:rsync ...'
          about 15 minutes
          6. Install successfully
    Pass: 1. 'dd' the ISO image on USB device
          2. Deploy with the USB device successfully

    Closes-Bug: 2013345

    Signed-off-by: Haiqing Bai <email address hidden>
    Change-Id: I4f42f9c3eabf1473e2ec1796578abe76c2c98e50

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/879942

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/879942
Committed: https://opendev.org/starlingx/tools/commit/122ec0fcf51280429624abeecbb361f9d6473bd8
Submitter: "Zuul (22348)"
Branch: master

commit 122ec0fcf51280429624abeecbb361f9d6473bd8
Author: Haiqing Bai <email address hidden>
Date: Mon Apr 10 04:28:42 2023 -0400

    base-initramfs-bullseye.yaml: Added rsync

    To fix https://bugs.launchpad.net/starlingx/+bug/2013345
    the tool 'rsync' will be used in initramfs, here adding
    the package into the package list of initramfs.

    Partial-Bug: 2013345

    Change-Id: I8c76eadc91fb2e7e29db29d52e7ae50913bb4b52
    Signed-off-by: Haiqing Bai <email address hidden>

Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.integ
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
assignee: nobody → hqbai (hbai)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.