Hi Alan, In the web UI have you created a sync plan (Content -> Sync Plans) and associated that sync plan with each of your products? And if so, are the results of those tasks successful (Monitor -> Tasks)?
Regards, j From: "Alan Evans" <[email protected]> To: "Foreman Users" <[email protected]> Sent: Thursday, April 6, 2017 5:12:54 PM Subject: Re: [foreman-users] [Katello] Pulp repos sync on schedule but not showing in katello Thanks John. I've been poking around at this for a couple of days. I have looked at the tasks and was going to share but didn't want to overwhelm anyone that tried to help. A plain 'tasks list' gives nothing. $ sudo pulp - admin tasks list +----------------------------------------------------------------------+ Tasks +----------------------------------------------------------------------+ No tasks found tasks list --all, gives a lot, so I'll pull out a few sections $ sudo pulp - admin tasks list - a | grep - A5 My_Org - centos - centos - 6 - x86_64 - os -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 05T19 : 31 : 00Z Finish Time : 2017 - 04 - 05T19 : 31 : 07Z Task Id : dd6e6dac - 5988 - 4cc3 - be6c - 95b223936f98 -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 05T19 : 31 : 07Z Finish Time : 2017 - 04 - 05T19 : 31 : 07Z Task Id : 2d9ec7cd - de30 - 44d7 - a3b1 - 8a10e1aa7257 -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 06T19 : 36 : 55Z Finish Time : 2017 - 04 - 06T19 : 37 : 02Z Task Id : d8cb7dac - b13c - 4420 - 83a3 - 432f1c06c635 -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 06T19 : 37 : 02Z Finish Time : 2017 - 04 - 06T19 : 37 : 02Z Task Id : 19543dbd - fe67 - 4442 - b56e - c3b0d91d695a $ TZ = UTC date Thu Apr 6 21 : 18 : 46 UTC 2017 You can see that for the repo centos-6-os repo, pulp has synced and published the repo for the last couple of days. But you can see that Katello seems to think the last sync was almost a week ago. $ hammer repository info -- id 1 ID : 1 Name : CentOS 6 x86_64 OS Label : centos - 6 - x86_64 - os Organization : My Org Red Hat Repository : no Content Type : yum Checksum Type : sha256 Mirror on Sync : yes URL : http : //mirror.centos.org/centos/6/os/x86_64/ Publish Via HTTP : yes Published At : http : //katello.example.com/pulp/repos/My_Org/Library/custom/centos/centos-6-x86_64-os/ Relative Path : My_Org / Library / custom / centos / centos - 6 - x86_64 - os Download Policy : on_demand Product : ID : 1 Name : CentOS GPG Key : ID : 2 Name : RPM - GPG - KEY - CentOS - 6 Sync : Status : Success Last Sync Date : 6 days Created : 2017 / 03 / 31 00 : 26 : 52 Updated : 2017 / 03 / 31 20 : 47 : 13 Content Counts : Packages : 6696 Package Groups : 214 Errata : 0 But get this, if I sync it from Katello it will update. $ hammer repository synchronize -- id 1 [.....................................................................] [ 100 %] No new packages . $ hammer repository info -- id 1 ID : 1 Name : CentOS 6 x86_64 OS Label : centos - 6 - x86_64 - os Organization : My Org Red Hat Repository : no Content Type : yum Checksum Type : sha256 Mirror on Sync : yes URL : http : //mirror.centos.org/centos/6/os/x86_64/ Publish Via HTTP : yes Published At : http : //katello.example.com/pulp/repos/My_Org/Library/custom/centos/centos-6-x86_64-os/ Relative Path : My_Org / Library / custom / centos / centos - 6 - x86_64 - os Download Policy : on_demand Product : ID : 1 Name : CentOS GPG Key : ID : 2 Name : RPM - GPG - KEY - CentOS - 6 Sync : Status : Success Last Sync Date : 3 minutes Created : 2017 / 03 / 31 00 : 26 : 52 Updated : 2017 / 03 / 31 20 : 47 : 13 Content Counts : Packages : 6696 Package Groups : 214 Errata : 670 $ sudo pulp - admin tasks list - a | grep - A5 My_Org - centos - centos - 6 - x86_64 - os -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 06T21 : 26 : 15Z Finish Time : 2017 - 04 - 06T21 : 26 : 22Z Task Id : 1565fbd3 - ea26 - 4e43 - 8551 - 40fb8e5b2850 -- Resources : My_Org - centos - centos - 6 - x86_64 - os ( repository ) State : Successful Start Time : 2017 - 04 - 06T21 : 26 : 22Z Finish Time : 2017 - 04 - 06T21 : 26 : 22Z Task Id : 75beb6a0 - 0b3f - 4b61 - 8eb9 - a88dc27168e3 $ TZ = UTC date Thu Apr 6 21 : 31 : 49 UTC 2017 Thank you, -Alan On Tuesday, April 4, 2017 at 3:36:14 PM UTC-6, John Mitsch wrote: Alan, I don't have much experience with Sync Plans, but I would expect they would create syncing tasks in Katello. You can look at your pulp tasks using pulp-admin, see if you see any activity corresponding to your sync plans there. yum install pulp-admin-client pulp-rpm-admin-extensions.noarch pulp-rpm-handlers.noarch pulpAdminPassword=$(grep ^default_password /etc/pulp/server.conf | cut -d' ' -f2) pulp-admin -u admin -p $pulpAdminPassword tasks list -John John Mitsch Red Hat Engineering (860)-967-7285 irc: jomitsch On Fri, Mar 31, 2017 at 4:41 PM, Alan Evans < [ javascript-blocked: | [email protected] ] > wrote: BQ_BEGIN Hello, I am using Katello 3.3/Foreman 1.14.2. I have a fresh install and I created new Sync plan, product and repos with hammer. At first I didn't think the jobs were running at all, but I read a thread here that got me looking at things and I found that pulp is in fact syncing on schedule but the results aren't appearing in the katello UI/Hammer CLI. I suspect there is some kind of post sync job that has to happen that isn't. If I manually sync them from the UI then the UI is updated. Thoughts? -Alan -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [ javascript-blocked: | [email protected] ] . To post to this group, send email to [ javascript-blocked: | [email protected] ] . Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] . For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] . BQ_END -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:[email protected] | [email protected] ] . To post to this group, send email to [ mailto:[email protected] | [email protected] ] . Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] . For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] . -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
