I just noticed another difference.
On the 3 machines that do not show the latest package (yum version 3.4.3), I do not see the "security" plugin:
Loading "priorities" plugin
Loading "update-motd" plugin
Loading "upgrade-helper" plugin
Config time: 0.015
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
pkgsack time: 0.030
Error: No matching Packages to list
On the one machine that works (3.2.29), I see the security plugin AND I see my repo being updated:
Loading "priorities" plugin
Loading "security" plugin
Loading "update-motd" plugin
Loading "upgrade-helper" plugin
Config time: 0.084
Yum Version: 3.2.29
Setting up Package Sacks
my-yum-repo | 3.5 kB 00:00
pkgsack time: 0.026
rpmdb time: 0.000
Available Packages
foo.x86_64 2-1 my-yum-repo
If i try to install the security plugin in 3.4.3, I get this:
Package yum-plugin-security-1.1.31-17.16.amzn1.noarch is obsoleted by yum-3.4.3-108.42.amzn1.noarch which is already installed
Nothing to do
I have no idea if this information is relevant, but it's another difference I found.
Thanks,
Alex
On Sat, Nov 16, 2013 at 7:04 PM, Alexander Gray II <grayaii@xxxxxxxxx> wrote:
I have 4 machines. When I upload a new rpm my repo, only 1 out of the 4 machines shows the new package is there. The other 3 do not. The only difference that I see is that the 3 machine that do not find the new package the yum version is 3.4.3. The one that works is 3.2.29.Here's what I'm doing. I'm not messing with /etc/yum.repos.d. I did not put anything there.All the /etc/yum.conf files on all 4 machines are identical:[main]cachedir=/var/cache/yumkeepcache=0debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1gpgcheck=1plugins=1installonly_limit=3releasever=latestOK. Here at the steps to reproduce:I manually wipe out my /var/cache/yum files, just to start fresh.I upload an new version my rpm from my local machine (i am using Nexus Yum repo, so the server automatically calls createrepo).On the 4 machines in question I run the following command (notice I'm using --config and pointing it a file that contains my repo):yum --config=/var/build/repos.conf --disablerepo=* --enablerepo=my-yum-repo list foo-278-1
All 4 machines find it. yay!Now repeat the process. Unfortunately only 1 machine (yum version 3.2.29) says there is a new version of my package.It would seem that the 3 machines that have 3.4.3 is cache'ing when it's not supposed to.Just for completeness, here is the file that I'm pointing yum to via --config:[main]cachedir=/var/cache/yumkeepcache=1debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1gpgcheck=1plugins=1installonly_limit=3releasever=latest[my-yum-repo]name=InIn dev amzn x86_64baseurl=[my url]priority=5enabled=0gpgcheck=0type=rpm-mdmetadata_expire=0http_caching=noneWhy does this work with 3.2.29, but not with 3.4.3?Of course, if I do yum clean all and enabling my repo it will work, but I don't 'want to run this (especially since I'm not root) every time I want to check if there is a new version of a package. It works fine on 1 machine, so it should work fine on another.Any ideas or suggestions on why the 3 servers may be caching when they shouldn't be?Thanks!Alex
-Alex-
_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum