Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install podman with download.opensuse.org repo on Travis Ubuntu bionic non x86_64 #5447

Closed
junaruga opened this issue Mar 10, 2020 · 9 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@junaruga
Copy link
Contributor

junaruga commented Mar 10, 2020

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Related to #4570 (comment) , I tried the new way to install podman to Ubuntu bionic, following the document: https://podman.io/getting-started/installation - Ubuntu
This works on Travis x86_64 (amd64) host environment.
But it does not work on Travis aarch64 (arm64), ppc64le and s390x host environment.

. /etc/os-release
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
sudo apt-get update -qq
sudo apt-get -qq -y install podman

You can see the aarch64 log here, https://travis-ci.org/junaruga/ci-multi-arch-native-container-test/jobs/660695823#L85

$ sudo apt-get -qq -y install podman
E: Unable to locate package podman

Do you know what's the reason?

Steps to reproduce the issue:

  1. Fork this repository: https://github.com/junaruga/ci-multi-arch-native-container-test

  2. Do git clone and git checkout.

    $ git clone <the GIT URL>
    $ cd ci-multi-arch-native-container-test
    $ git checkout feature/test-with-the-latest-podman-deb
    
  3. Enable your forked repository's Travis from your Travis setting page, then push the branch to your repository. And see the Travis result.

Describe the results you received:

The case: in the cases: aarch64-bionic-fedora, ppc64le-bionic-fedora and s390x-bionic-fedora, the podman is not installed like this log: https://travis-ci.org/junaruga/ci-multi-arch-native-container-test/jobs/660695823#L85 .

Describe the results you expected:

The podman should be installed in the Ubuntu non-x86_64, bionic cases.

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

This is the output on x86_64 environment where podman could be installed.

Version:            1.8.0
RemoteAPI Version:  1
Go Version:         go1.10.1
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: ""
  go version: go1.10.1
  podman version: 1.8.0
host:
  BuildahVersion: 1.13.1
  CgroupVersion: v1
  Conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.11, commit: '
  Distribution:
    distribution: ubuntu
    version: "18.04"
  IDMappings:
    gidmap:
    - container_id: 0
      host_id: 2000
      size: 1
    - container_id: 1
      host_id: 165536
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 2000
      size: 1
    - container_id: 1
      host_id: 165536
      size: 65536
  MemFree: 6433202176
  MemTotal: 8361897984
  OCIRuntime:
    name: runc
    package: 'cri-o-runc: /usr/lib/cri-o-runc/sbin/runc'
    path: /usr/lib/cri-o-runc/sbin/runc
    version: 'runc version spec: 1.0.1-dev'
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 2
  eventlogger: file
  hostname: travis-job-138d9cda-c478-479d-8861-13d7ad9b9f46
  kernel: 5.0.0-1031-gcp
  os: linux
  rootless: true
  uptime: 1m 19.04s
registries:
  search:
  - docker.io
  - quay.io
store:
  ConfigFile: /home/travis/.config/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: {}
  GraphRoot: /home/travis/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /run/user/2000/containers
  VolumePath: /home/travis/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):

$ apt list podman
podman/unknown,now 1.8.0~7 amd64 [installed]

Additional environment details (AWS, VirtualBox, physical, etc.):

Travis https://travis-ci.org/junaruga/ci-multi-arch-native-container-test/builds/660695817

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 10, 2020
@junaruga
Copy link
Contributor Author

Do I need to set below kind of arch info to the repository like docker's installation document?

https://docs.docker.com/install/linux/docker-ce/ubuntu/

arm64 case to set the repository for docker on Ubuntu.

$ sudo add-apt-repository \
   "deb [arch=arm64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

@mheon
Copy link
Member

mheon commented Mar 10, 2020

@lsm5 PTAL

@mheon mheon added the ubuntu label Mar 10, 2020
@lsm5
Copy link
Member

lsm5 commented Mar 10, 2020

@junaruga so, non-x86_64 envs for 18.04 aren't setup correctly which causes many unresolvable dependency errors and fixing that ain't too high on OBS' priority list. So, quite unlikely this will get fixed. But I'm hoping they'll enable 20.04 soon as it's released, so you'll have some LTS to work with.

I'll update the doc to specify what arches are currently supported for what distro.

@junaruga
Copy link
Contributor Author

junaruga commented Mar 10, 2020

@lsm5 In case of Travis, the Ubuntu newest distro version is bionic (= 18.04). After 20.04 will be released, I am not sure when Travis will start supporting 20.04.

I was waiting that this issue #4570 (comment) that prevents podman to be installed on non-x86_64, would be fixed. This issue was fixed on podman 1.7.0.

But podman project changed the repo from ppa:projectatomic/ppa to OBS.
And another issue for non-x86_64 happened.

Is it possible for you to update podman to the version (a version >= 1.7.0) in ppa:projectatomic/ppa if it's hard to fix the OBS 18.03 repo issue?

sudo add-apt-repository -y ppa:projectatomic/ppa

Or do we have to wait someone's podman deb packaging work in Debian?
https://wiki.debian.org/Podman

@junaruga
Copy link
Contributor Author

I just share that some people in Travis community are expecting podman will be installed on Travis.
https://travis-ci.community/t/podman-libpod-support/6823

@lsm5
Copy link
Member

lsm5 commented Mar 10, 2020 via email

@junaruga
Copy link
Contributor Author

If it helps, I can add you to
projectatomic/ppa and/or help you create your own ppa, would that be good for you?

@lsm5 thank you for showing the possibility to create the own ppa.
As I am not familiar with deb packaging, I am not a right person to be added to the ppa.

No idea about that one. Feel free to check with the deb maintainer about the
status of that.

podman is actually in review status for the Debian new package, seeing the page.
https://ftp-master.debian.org/new/libpod_1.6.4+dfsg1-2.html

Perhaps, this maintainer could be the right person to be added.
I will send email to him for the help.

@krisklau
Copy link

krisklau commented Apr 2, 2020

What's the next step for resolving this?

@junaruga
Copy link
Contributor Author

junaruga commented Apr 2, 2020

I will send email to him for the help.

As he declined it, we have to fix if we want to fix it.
I am fine to close this ticket. I can use docker for this use case.
We can wait podman will be shipped for the non x86_64 architectures in the official Debian repository. Then I think Ubuntu will pick up it soon.

@junaruga junaruga closed this as completed Apr 2, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

5 participants