RPM/YUM Virtual Repository only lists packages from the first smart remote repo when using: "yum list available".
Steps to reproduce:
Create Virtual repo: Rpm-virtual
Create two smart remote repositories that are pointing to two other Artifactory local repositories:
Under /etc/yum.repo.d/ folder create “artifactory.repo” file with the following content as described under “Set Me Up” feature.
Let's assume that two smart remote repositories, that we created earlier, are listed in the following sequence in your virtual repository:
1. sudo yum clean all
2. sudo yum update
3. yum list available
4. It will list only the package from the Rpm-remote repository, because it is listed as first in the list in Virtual repository
5. Now, go to Virtual repository and place the Rpm-remote2 as first in the list, and Rpm-remote as a second, and run the following commands:
6. sudo yum clean all
7. sudo yum update
8. yum list available
9. It will list the packages from the Rpm-remote2 only
It should list all packages from both remote repositories. For that reason, when running yum install <package_from_second_smart_repo>, it fails to install that package from second smart repo.