[ironic] Is there a ramdisk image of aarch64 architecture available for download
Hello, I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2]. I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture? When I built aarch64 image locally, It's always failed. ```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora ... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error. # ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist # ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404] ``` [1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
Hopefully someone with specific knowledge of diskimage-builder on ARM will respond with some help for your error. In the meantime, I added "Shipping an ARM ramdisk image" as ann item to our list to consider during Bobcat PTG at https://etherpad.opendev.org/p/ironic-bobcat-ptg. - Jay Faulkner Ironic PTL On Sun, Feb 12, 2023 at 6:32 AM 韩光宇 <hanguangyu2@gmail.com> wrote:
Hello,
I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2].
I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture?
When I built aarch64 image locally, It's always failed.
```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora ... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error.
# ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404] ```
[1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
On Sun, Feb 12, 2023, at 3:05 PM, Jay Faulkner wrote:
Hopefully someone with specific knowledge of diskimage-builder on ARM will respond with some help for your error.
In the meantime, I added "Shipping an ARM ramdisk image" as ann item to our list to consider during Bobcat PTG at https://etherpad.opendev.org/p/ironic-bobcat-ptg.
I would expect that you could make variants of ironic-python-agent-build-image-tinyipa and ironic-python-agent-build-image-dib-centos9 that run on our arm64 nodes and start building them today. One thing to check is that you don't replace the amd64 images with arm64 images due to conflicting names (and vice versa) though.
- Jay Faulkner Ironic PTL
On Sun, Feb 12, 2023 at 6:32 AM 韩光宇 <hanguangyu2@gmail.com> wrote:
Hello,
I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2].
I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture?
When I built aarch64 image locally, It's always failed.
```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora
Are you attempting to build the aarch64 image from another architecture? I'm not sure if that is expected to work generally with dib. In OpenDev we build our arm64 images (not ironic ramdisk images) on the platform they are expected to boot on.
... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error.
# ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
CentOS 8 is EOL and I'm not sure anyone should be attempting to use it. Looks like IPA builds a CentOS 9 Stream based image so might be worth trying that.
# ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404]
There is some key info missing here. Particularly what file was requested that 404'd. If you `export DIB_DEBUG_TRACE=1` you should get much more verbose information including the URL that 404'd. That said, if you look in the SHA256SUMS file Ubuntu refers to the arm images as arm64 not aarch64. I think your explicit setting of ARCH to aarch64 is breaking things when building Ubuntu.
```
[1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
Hi! There are experimental images based on Debian here: https://tarballs.opendev.org/openstack/ironic-python-agent-builder/dib/files.... Note that they come with absolutely no warranty: we don't test them in the CI. They're also a bit dated since the IPA-builder hasn't seen any changes in a while. Dmitry On Sun, Feb 12, 2023 at 3:22 PM 韩光宇 <hanguangyu2@gmail.com> wrote:
Hello,
I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2].
I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture?
When I built aarch64 image locally, It's always failed.
```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora ... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error.
# ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404] ```
[1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
-- Red Hat GmbH <https://www.redhat.com/de/global/dach>, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross
I did this recently for aarch64 and I've written a documentation patch which is not merged yet but you can read it here https://review.opendev.org/c/openstack/openstack-ansible-os_ironic/+/867547/.... Part of that is specific to openstack-ansible but the sections about building images are generic. Jonathan. On 12/02/2023 14:15, 韩光宇 wrote:
Hello,
I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2].
I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture?
When I built aarch64 image locally, It's always failed.
```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora ... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error.
# ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404] ```
[1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
Thank you so much for these help! Your email has been very helpful to me! 1. @Clark Boylan yes, when I use `export ARCH=arm64` instead of `export ARCH=aarch64`, I successfully built ubuntu image. 2. @Jonathan Rosser The doc[1] is so good and helpful to me 3. @Dmitry Tantsur Thank you for reminding me that I ignored this debian image of arm64 before 4. @Jay Faulkner hope "Shipping an ARM ramdisk image" goes well As feedback only, no reply required [1]: https://review.opendev.org/c/openstack/openstack-ansible-os_ironic/+/867547/.... Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> 于2023年2月13日周一 09:19写道:
I did this recently for aarch64 and I've written a documentation patch which is not merged yet but you can read it here https://review.opendev.org/c/openstack/openstack-ansible-os_ironic/+/867547/....
Part of that is specific to openstack-ansible but the sections about building images are generic.
Jonathan.
On 12/02/2023 14:15, 韩光宇 wrote:
Hello,
I saw that we can get ramdisk image from tarballs.openstack.org[1] in ironic doc[2].
I would like to ask whether all the above are of amd64 architecture. Where can I download the ramdisk image of aarch64 architecture?
When I built aarch64 image locally, It's always failed.
```shell # export ARCH=aarch64 # ironic-python-agent-builder fedora ... mount: /tmp/tmp.1yEQhatS1X/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p5, missing codepage or helper program, or other error.
# ironic-python-agent-builder centos ... 2023-02-12 14:15:02.361 | dib-run-parts Running /tmp/in_target.d/pre-install.d/01-00-centos-python3 2023-02-12 14:15:05.204 | CentOS Linux 8 - AppStream 17 B/s | 38 B 00:02 2023-02-12 14:15:05.209 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# ironic-python-agent-builder ubuntu ... 2023-02-12 14:15:31.623 | Fetching Base Image 2023-02-12 14:15:31.657 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:31.657 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2023-02-12 14:15:32.388 | Server copy has not changed. Using locally cached https://cloud-images.ubuntu.com/focal/current/SHA256SUMS 2023-02-12 14:15:32.422 | % Total % Received % Xferd Average Speed Time Time Time Current 2023-02-12 14:15:32.422 | Dload Upload Total Spent Left Speed 100 286 100 286 0 0 418 0 --:--:-- --:--:-- --:--:-- 418 2023-02-12 14:15:33.110 | Server returned an unexpected response code. [404] ```
[1]: https://tarballs.opendev.org/openstack/ironic-python-agent/dib/files/ [2]: https://docs.openstack.org/ironic/latest/install/deploy-ramdisk.html
participants (5)
-
Clark Boylan
-
Dmitry Tantsur
-
Jay Faulkner
-
Jonathan Rosser
-
韩光宇