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

python-xml package missing on openSUSE Leap 15.6 #11057

Open
goldyfruit opened this issue Apr 4, 2024 · 6 comments
Open

python-xml package missing on openSUSE Leap 15.6 #11057

goldyfruit opened this issue Apr 4, 2024 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@goldyfruit
Copy link
Contributor

What happened?

When running the the cluster.yml playbook on openSUSE Leap 15.6, the playbook fails because python-xml is missing.

Currently in experimental: https://software.opensuse.org/package/python-xml?locale=en

A workaround for now is to add the devel:languages:python:Factory.repo repo.

sudo zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/15.6/devel:languages:python:Factory.repo

It might be fixed in soon or not but I think having this referenced here might help people having this issue.

What did you expect to happen?

Successful playbook execution.

How can we reproduce it (as minimally and precisely as possible)?

Run the cluster.yml playbook on openSUSE Leap 15.6.

OS

Linux 6.4.0-150600.10-default x86_64
NAME="openSUSE Leap"
VERSION="15.6 Beta"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6 Beta"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

Version of Ansible

ansible [core 2.16.5]
  config file = /root/kubespray/ansible.cfg
  configured module search path = ['/root/kubespray/library']
  ansible python module location = /root/.venvs/kubespray/lib/python3.11/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /root/.venvs/kubespray/bin/ansible
  python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/root/.venvs/kubespray/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Version of Python

3.11.2

Version of Kubespray (commit)

3067e56

Network plugin used

calico

Full inventory with variables

https://gist.github.com/goldyfruit/5e80f32a00090adee7fcbb3a17887a92

Command used to invoke ansible

time ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook playbooks/cluster.yml -f 20 -u kubespray -b -i inventory/smartgic/inventory.ini

Output of ansible run

python-xml' not found in package names. Trying capabilities.

Anything else we need to know

No response

@goldyfruit goldyfruit added the kind/bug Categorizes issue or PR as related to a bug. label Apr 4, 2024
@KubeKyrie
Copy link
Contributor

Hi, I wanna ask why python-xml could not be installed by zypper refresh && zypper --non-interactive install python-xml, which is in kubespray. See https://github.com/kubernetes-sigs/kubespray/blob/master/roles/bootstrap-os/tasks/opensuse.yml#L52
Thanks.

@KubeKyrie
Copy link
Contributor

Oh, maybe cecause of experimental pkg. Do you think we need to add Playbooks to solve this?

@goldyfruit
Copy link
Contributor Author

Oh, maybe cecause of experimental pkg. Do you think we need to add Playbooks to solve this?

Indeed, the package didn't yet arrive in 15.6 stable repository, https://software.opensuse.org/package/python-xml?locale=en

We might need to add some tasks as we don't when this package will be available.

@KubeKyrie
Copy link
Contributor

@goldyfruit Hi, I just tested, python3-xml can be installed successfully and no need to add repository. Do you think it will help fix? Otherwise I will add repo for it.
If so, I can open an PR and hope you can help review, thanks.

@goldyfruit
Copy link
Contributor Author

@goldyfruit Hi, I just tested, python3-xml can be installed successfully and no need to add repository. Do you think it will help fix? Otherwise I will add repo for it.

I was not able to install python3-xml without extra repo.

$ sudo zypper in python3-xml
Loading repository data...
Warning: Repository 'Update Repository (Non-Oss)' metadata expired since 2023-09-21 08:47:58 EDT.

    Warning: Repository metadata expired: Check if 'autorefresh' is turned on (zypper lr), otherwise
    manually refresh the repository (zypper ref). If this does not solve the issue, it could be that
    you are using a broken mirror or the server has actually discontinued to support the repository.

Reading installed packages...
'python3-xml' not found in package names. Trying capabilities.
'python3-base' providing 'python3-xml' is already installed.
Resolving package dependencies...
Nothing to do.
NAME="openSUSE Leap"
VERSION="15.6 Beta"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6 Beta"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

@KubeKyrie
Copy link
Contributor

I was not able to install python3-xml without extra repo.

Ohhh, My mistaken. I just used opensuse leap:15.5, and has no this problem. And 15.6 do have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants