Symptom
When installing optional RPMs user is presented with the following message:
INFRA-INSTALL-3-ACTION_FAILED : Packaging operation 11.1.7 failed - Add rejected as there are invalid packages. Packages whose source RPM filenames do not match their package names: Bind /etc/netns/vrf-default/resolv.conf -> /etc/resolv.conf failed: No such file or directory
Conditions
The user is running 7.10.1, 7.10.2 or 7.11.1 and upgrading to another release that is 7.10.1 or higher.
The user runs 'install package upgrade' to a new release, and then uses 'install package add' to add optional packages or bugfixes. The install package add may see this error message.
The user had must have had domain name/name-server configuration on the device in the past, have removed that configuration, and reloaded the box at least once before install.
Workaround
If the user is ok running local installs, copying packages and untaring locally and into the local repo works without issue.
If the user wishes to continue running remote installs, the user can issue 'run touch /var/run/resolv.conf' and rerun the remote install command
Further Problem Description
The issue is caused by the /var/run/resolv.conf file being deleted when upgrading between two Open Embedded (OE) releases of XR, i.e. the user is moving between two versions of XR that are later than, or equal to, 7.10.1.
This breaks the symlink from /etc/resolv.conf->/var/run/resolv.conf that is needed for remote dnf commands to run correctly when domain name configuration has been present.
After an apply by reload /etc/resolv.conf is set up correctly,which is why this only affects 'package add' operations after a 'package replace' without reload in between.
Eng-notes contain more internal details.