[Starlingx-discuss] Starlingx iso [BUILD]
Ok here is where we find the problems tb.sh create .... ok tb,sh exec ..... ok so reading this i think slim clarification is needed, do we run centos-mirror-tools/download_mirror.sh outside the container? Package mirror creation Once the StarlingX docker image has been built, you must create a mirror before creating the ISO image. Basically, a mirror is a directory that contains a series of packages. The packages are organized to be consumed by the ISO creation scripts. The HOST_MIRROR_DIR variable provides the path to the mirror. The buildrc file sets the value of this variable unless the localrc file has modified it. The mirror creation involves a set of scripts and configuration files required to download a group of RPMs, SRPMs, source code packages and so forth. These tools live inside centos-mirror-tools directory. All items included in this directory must be visble inside the container environment. Then the container shall be run from the same directory where these tools are stored. Basically, we run a container with the previously created StarlingX docker image, using the following configuration: As /localdisk is defined as the workdir of the container, the same folder name should be used to define the volume. The container will start to run and populate logs and output folders in this directory.
centos-mirror-tools/download_mirror.sh should be run inside the container for 'normal' usage. I recommend you use 'download_mirror.sh -U' due to your geographic location. It looks like one of the upstream 3rd party repos has gone missing, which is messing up the yum cache initialization. download_mirror.sh is failing in a particularly ungraceful way. I think the following stx-tools change might get us though the download_mirror.sh diff --git a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo index 2fa55a6..6978ff0 100644 --- a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo +++ b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo @@ -4,4 +4,12 @@ type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8... gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8... +enabled=0 + +[CENGN_katacontainers_releases_x86_64_stable-1.11] +name=Branch project for Kata Containers branch stable-1.11 (CentOS_7) +type=rpm-md +baseurl=http://mirror.starlingx.cengn.ca/mirror/centos/download.opensuse.org/reposit... +gpgcheck=0 + enabled=1 On 2022-11-27 19:10, Outback Dingo wrote:
CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.
Ok here is where we find the problems
tb.sh create .... ok tb,sh exec ..... ok
so reading this i think slim clarification is needed, do we run
centos-mirror-tools/download_mirror.sh outside the container?
Package mirror creation Once the StarlingX docker image has been built, you must create a mirror before creating the ISO image. Basically, a mirror is a directory that contains a series of packages. The packages are organized to be consumed by the ISO creation scripts.
The HOST_MIRROR_DIR variable provides the path to the mirror. The buildrc file sets the value of this variable unless the localrc file has modified it.
The mirror creation involves a set of scripts and configuration files required to download a group of RPMs, SRPMs, source code packages and so forth. These tools live inside centos-mirror-tools directory.
All items included in this directory must be visble inside the container environment. Then the container shall be run from the same directory where these tools are stored. Basically, we run a container with the previously created StarlingX docker image, using the following configuration:
As /localdisk is defined as the workdir of the container, the same folder name should be used to define the volume. The container will start to run and populate logs and output folders in this directory.
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io
Created a launchpad for this issue: https://bugs.launchpad.net/starlingx/+bug/1998234 Scott On 2022-11-29 11:59, Scott Little wrote:
diff --git a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo index 2fa55a6..6978ff0 100644 --- a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo +++ b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo @@ -4,4 +4,12 @@ type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8...
gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8...
+enabled=0 + +[CENGN_katacontainers_releases_x86_64_stable-1.11] +name=Branch project for Kata Containers branch stable-1.11 (CentOS_7) +type=rpm-md +baseurl=http://mirror.starlingx.cengn.ca/mirror/centos/download.opensuse.org/reposit...
+gpgcheck=0 + enabled=1
Fixes posted for review. master: https://review.opendev.org/c/starlingx/tools/+/866071 r/stx.6.0: https://review.opendev.org/c/starlingx/tools/+/866072 r/stx.7.0: https://review.opendev.org/c/starlingx/tools/+/866073 On 2022-11-29 12:07, Scott.Little wrote:
Created a launchpad for this issue: https://bugs.launchpad.net/starlingx/+bug/1998234
Scott
On 2022-11-29 11:59, Scott Little wrote:
diff --git a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo index 2fa55a6..6978ff0 100644 --- a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo +++ b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo @@ -4,4 +4,12 @@ type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8...
gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x8...
+enabled=0 + +[CENGN_katacontainers_releases_x86_64_stable-1.11] +name=Branch project for Kata Containers branch stable-1.11 (CentOS_7) +type=rpm-md +baseurl=http://mirror.starlingx.cengn.ca/mirror/centos/download.opensuse.org/reposit...
+gpgcheck=0 + enabled=1
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io
These fixes have merged to address download_mirror.sh failures on our supported branches... master: https://review.opendev.org/c/starlingx/tools/+/866071 r/stx.6.0: https://review.opendev.org/c/starlingx/tools/+/866072 r/stx.7.0: https://review.opendev.org/c/starlingx/tools/+/866073 The download_mirror.sh script should be run inside the build container. The official documentation has moved here.... https://docs.starlingx.io/developer_resources/build_guide.html and you can navigate back to old release documentation with the '<<' and '>>' buttons at the upper right. e.g. for for stx.6.0 you can navigate to... https://docs.starlingx.io/releasenotes/r6-0-release-notes-bc72d0b961e7.html The source code for the documentation can be found here ... cgcs-root/stx/docs/doc/source/developer_resources/ Your appear to be quoting from 'tools/README.rst' which is unmaintained, and ought to have been deleted or reduced to pointers to the official docs. Please file a LaunchPad to fix or remove the misleading document. Hope this helps! Scott On 2022-11-27 19:10, Outback Dingo wrote:
CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.
Ok here is where we find the problems
tb.sh create .... ok tb,sh exec ..... ok
so reading this i think slim clarification is needed, do we run
centos-mirror-tools/download_mirror.sh outside the container?
Package mirror creation Once the StarlingX docker image has been built, you must create a mirror before creating the ISO image. Basically, a mirror is a directory that contains a series of packages. The packages are organized to be consumed by the ISO creation scripts.
The HOST_MIRROR_DIR variable provides the path to the mirror. The buildrc file sets the value of this variable unless the localrc file has modified it.
The mirror creation involves a set of scripts and configuration files required to download a group of RPMs, SRPMs, source code packages and so forth. These tools live inside centos-mirror-tools directory.
All items included in this directory must be visble inside the container environment. Then the container shall be run from the same directory where these tools are stored. Basically, we run a container with the previously created StarlingX docker image, using the following configuration:
As /localdisk is defined as the workdir of the container, the same folder name should be used to define the volume. The container will start to run and populate logs and output folders in this directory.
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io
participants (3)
-
Outback Dingo
-
Scott Little
-
Scott.Little