Description of problem:
Yum seems to ignore metadata_expire option and insists upon re-downloading metadata even when it did so for another yum command just minutes ago.
Version-Release number of selected component (if applicable):
Use yum. Become incredibly frustrated.
Steps to Reproduce:
1. check yum.conf and redhat.repo. Notice metadata_expire is set to 90m in yum.conf and 86400 in each repo definition in redhat.repo.
2. yum -enablerepo=* list
2. wait while yum downloads metadata for all repositories
3. yum -enablerepo=* list
4. wait, with frustration growing, while yum downloads metadata for all repositories
Yum ignores metadata_expire and re-downloads metadata that was downloaded just minutes ago.
Yum does not download metadata again, until metadata_expire timeout set per-repo or in yum.conf is exceeded.
This is incredibly frustrating.
Any chance of a response?
It would be nice to know if am I the only person seeing this issue, or if it is a known issue that no-one else seems to care about?
You don't give quite enough enough to be 100% sure, but I'm pretty sure you are hitting BZ#1104731, where the rhsm plugin alters the redhat.repo file and thus. causes a refresh of all redhat repos. There are a few workarounds, and it should be getting fixed "soon", AIUI.
*** This bug has been marked as a duplicate of bug 1104731 ***