vmware / vmware/photon

iptables and ebtables missing 'alternatives' dependency in Photon 5 GA repo

Open
#1,646 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Summary

Packages iptables and ebtables in the Photon 5 package repository have introduced a dependency on the alternatives package that is not satisfied when using a minimal installation.

Affected packages

  • iptables-1.8.13-2.ph5.x86_64
  • ebtables-2.0.11-4.ph5.x86_64

Error observed

When running tdnf install or tdnf distro-sync on a minimal Photon 5 installation (e.g. via the photon-minimal ISO), the following error occurs:

1. package iptables-1.8.13-2.ph5.x86_64 requires alternatives, but none of the providers can be installed
Found 1 problem(s) while resolving
Error(1301) : Solv general runtime error

and/or:

1. package ebtables-2.0.11-4.ph5.x86_64 requires alternatives, but none of the providers can be installed
Found 1 problem(s) while resolving
Error(1301) : Solv general runtime error

Steps to reproduce

  1. Boot from the photon-minimal-5.0-dde71ec57.x86_64.iso (GA ISO)
  2. Install a minimal set of packages (without alternatives)
  3. Run tdnf install iptables ebtables -y or tdnf distro-sync -y --refresh

Expected behavior

iptables and ebtables should either bundle alternatives as an explicit dependency in their RPM spec, or the photon-minimal ISO should include alternatives by default.

Workaround

Explicitly install alternatives before installing iptables/ebtables:

tdnf install alternatives -y

Context

Discovered while building CAPI node images using kubernetes-sigs/image-builder against the Photon 5 GA repo.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dependency failure from the photon-minimal-5.0-dde71ec57.x86_64.iso with tdnf, then inspect the RPM specifications for iptables and ebtables and the package set for the photon-minimal ISO. Determine which packaging path should provide alternatives, and verify that installing or synchronizing iptables and ebtables succeeds on a minimal installation without the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.