[katello 2.3.1] Refresh errata applicability for content hosts

Hello,

i'm experiencing a strange behaviour on content host list. Some, even if
connected to a content view that has several errata to apply, reports 0
erratas. Several of these hosts are running rhel 5.10 or rhel 6.6 and the
content views they're assigned contains rhel 5.11 and 6.7 respectively.

Is there a way to trigger the recalculation of erratas?

I'm running katello 2.3.1 on foreman 1.9.3

Thank you,

Luca

Hey Luca,

You could try running the following on the hosts:

sudo yum clean all; sudo subscription-manager refresh; sudo yum repolist; sudo katello-package-upload

That should force a recalculation of applicability as well as upload a list of the installed packages.

Thanks,
Walden

··· ----- Original Message ----- From: "Luca Lorenzetto" To: "Foreman users" Sent: Friday, January 15, 2016 9:14:07 AM Subject: [foreman-users] [katello 2.3.1] Refresh errata applicability for content hosts

Hello,

i’m experiencing a strange behaviour on content host list. Some, even if
connected to a content view that has several errata to apply, reports 0
erratas. Several of these hosts are running rhel 5.10 or rhel 6.6 and the
content views they’re assigned contains rhel 5.11 and 6.7 respectively.

Is there a way to trigger the recalculation of erratas?

I’m running katello 2.3.1 on foreman 1.9.3

Thank you,

Luca


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hello Walden,

i just tried on one client cut it's still 0. Does this action has to
trigger some job?

Luca

··· On Fri, Jan 15, 2016 at 3:26 PM, Walden Raines wrote: > Hey Luca, > > You could try running the following on the hosts: > > sudo yum clean all; sudo subscription-manager refresh; sudo yum repolist; sudo katello-package-upload > >


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , lorenzetto.luca@gmail.com

Luca,

Have you installed katello-agent on the client machine? Some logs from the
client would be good also.

Sean

··· On Fri, 15 Jan 2016, 15:02 Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> wrote:

On Fri, Jan 15, 2016 at 3:26 PM, Walden Raines walden@redhat.com wrote:

Hey Luca,

You could try running the following on the hosts:

sudo yum clean all; sudo subscription-manager refresh; sudo yum
repolist; sudo katello-package-upload

Hello Walden,

i just tried on one client cut it’s still 0. Does this action has to
trigger some job?

Luca


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , <
lorenzetto.luca@gmail.com>


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

> Luca,
>
> Have you installed katello-agent on the client machine? Some logs from the
> client would be good also.
>

Yes, i've katello-agent installed:

[root@pmsic3 ~]# rpm -qa | grep katello-agent
katello-agent-2.3.1-4.el5

Which logs you need?

On /var/log/messages there's nothing useful (only puppet agent
messages). On rhsm.log there is this output
http://pastebin.com/wm2zGL7g that appeared after subscription-manager
refresh

Luca

··· On Fri, Jan 15, 2016 at 4:13 PM, Sean O'Keeffe wrote:

Sean


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , lorenzetto.luca@gmail.com

Maybe i've found the issue. On several hosts goferd has stopped (don't
know why).

Luca

··· On Fri, Jan 15, 2016 at 4:42 PM, Luca 'remix_tj' Lorenzetto wrote: > On Fri, Jan 15, 2016 at 4:13 PM, Sean O'Keeffe wrote: >> Luca, >> >> Have you installed katello-agent on the client machine? Some logs from the >> client would be good also. >> > > Yes, i've katello-agent installed: > > [root@pmsic3 ~]# rpm -qa | grep katello-agent > katello-agent-2.3.1-4.el5 > > Which logs you need? > > On /var/log/messages there's nothing useful (only puppet agent > messages). On rhsm.log there is this output > http://pastebin.com/wm2zGL7g that appeared after subscription-manager > refresh > >


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , lorenzetto.luca@gmail.com

Can I have var/log/messages when you restart gofer ?

··· On Fri, 15 Jan 2016, 15:48 Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> wrote:

On Fri, Jan 15, 2016 at 4:42 PM, Luca ‘remix_tj’ Lorenzetto > lorenzetto.luca@gmail.com wrote:

On Fri, Jan 15, 2016 at 4:13 PM, Sean O’Keeffe seanokeeffe797@gmail.com > wrote:

Luca,

Have you installed katello-agent on the client machine? Some logs from
the

client would be good also.

Yes, i’ve katello-agent installed:

[root@pmsic3 ~]# rpm -qa | grep katello-agent
katello-agent-2.3.1-4.el5

Which logs you need?

On /var/log/messages there’s nothing useful (only puppet agent
messages). On rhsm.log there is this output
http://pastebin.com/wm2zGL7g that appeared after subscription-manager
refresh

Maybe i’ve found the issue. On several hosts goferd has stopped (don’t
know why).

Luca


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , <
lorenzetto.luca@gmail.com>


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Sean,

this is the log when i restart goferd on an host. Here the service
doesn't start:

··· On Fri, Jan 15, 2016 at 5:13 PM, Sean O'Keeffe wrote: > Can I have var/log/messages when you restart gofer ? > >


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , lorenzetto.luca@gmail.com

Sorry, missing paste:

Jan 18 08:40:51 vltidesign001 goferd: [INFO][Thread-1]
gofer.rmi.store:116 - Using: /var/lib/gofer/messaging/pending/builtin
Jan 18 08:40:51 vltidesign001 goferd: [INFO][MainThread]
gofer.agent.plugin:610 - plugin:builtin loaded using:
/usr/share/gofer/plugins/builtin.py
Jan 18 08:40:51 vltidesign001 goferd: [INFO][Thread-2]
gofer.rmi.store:116 - Using:
/var/lib/gofer/messaging/pending/katelloplugin
Jan 18 08:40:51 vltidesign001 goferd: [INFO][MainThread]
gofer.agent.plugin:610 - plugin:katelloplugin loaded using:
/usr/lib/gofer/plugins/katelloplugin.py
Jan 18 08:40:51 vltidesign001 goferd: [INFO][MainThread]
rhsm.connection:583 - Using certificate authentication: key =
/etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca =
/etc/rhsm/ca/, insecure = False
Jan 18 08:40:51 vltidesign001 goferd: [INFO][MainThread]
rhsm.connection:596 - Connection Built: host:
vlpisatel001.intranet.it, port: 443, handler: /rhsm
Jan 18 08:40:52 vltidesign001 goferd: [INFO][MainThread]
katelloplugin:170 - Using /etc/rhsm/ca/katello-default-ca.pem as the
ca cert for qpid connection
Jan 18 08:40:52 vltidesign001 goferd: [INFO][MainThread]
rhsm.connection:583 - Using certificate authentication: key =
/etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca =
/etc/rhsm/ca/, insecure = False
Jan 18 08:40:52 vltidesign001 goferd: [INFO][MainThread]
rhsm.connection:596 - Connection Built: host:
vlpisatel001.intranet.it, port: 443, handler: /rhsm
Jan 18 08:40:52 vltidesign001 goferd: [INFO][MainThread]
katelloplugin:344 - reporting: {'enabled_repos': {'repos':
[{'baseurl': ['https://vlpisatel001.intranet.it/pulp/repos/organization/Test/RHEL_5_64bit/custom/organization/tools_RH5_x86_64'],
'repositoryid': 'organization_organization_tools_RH5_x86_64'},
{'baseurl': ['https://vlpisatel001.intranet.it/pulp/repos/organization/Test/RHEL_5_64bit/custom/Katello_Agent/5Server_x86_64'],
'repositoryid': 'organization_Katello_Agent_5Server_x86_64'},
{'baseurl': ['https://vlpisatel001.intranet.it/pulp/repos/organization/Test/RHEL_5_64bit/custom/Puppet_x86_64_RH5/Puppet_Products_x86_64_RH5'],
'repositoryid':
'organization_Puppet_x86_64_RH5_Puppet_Products_x86_64_RH5'},
{'baseurl': ['https://vlpisatel001.intranet.it/pulp/repos/organization/Test/RHEL_5_64bit/custom/Puppet_x86_64_RH5/Puppet_dependencies_x86_64_RH5'],
'repositoryid':
'organization_Puppet_x86_64_RH5_Puppet_dependencies_x86_64_RH5'},
{'baseurl': ['https://vlpisatel001.intranet.it/pulp/repos/organization/Test/RHE
Jan 18 08:40:52 vltidesign001 goferd: [ERROR][MainThread]
katelloplugin:148 - send enabled report failed: undefined local
variable or method `unknown_paths' for
#<Katello::System:0x007f92ad8fd378>

I noticed also that on a machine where i started the service on friday
now the service is dead and i had to restart. When restarting the log
is this:

Jan 18 08:46:27 pmsic3 goferd: [INFO][Thread-1] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/builtin
Jan 18 08:46:27 pmsic3 goferd: [INFO][MainThread]
gofer.agent.plugin:610 - plugin:builtin loaded using:
/usr/share/gofer/plugins/builtin.py
Jan 18 08:46:27 pmsic3 goferd: [INFO][Thread-2] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/katelloplugin
Jan 18 08:46:27 pmsic3 goferd: [INFO][MainThread]
gofer.agent.plugin:610 - plugin:katelloplugin loaded using:
/usr/lib/gofer/plugins/katelloplugin.py
Jan 18 08:46:27 pmsic3 goferd: [INFO][MainThread] rhsm.connection:583

And the service is now ok.

··· 2016-01-18 8:43 GMT+01:00 Luca 'remix_tj' Lorenzetto : > On Fri, Jan 15, 2016 at 5:13 PM, Sean O'Keeffe wrote: >> Can I have var/log/messages when you restart gofer ? >> >> > > Hi Sean, > > this is the log when i restart goferd on an host. Here the service > doesn't start:


"E’ assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca ‘remix_tj’ Lorenzetto, http://www.remixtj.net , lorenzetto.luca@gmail.com