Discussion:
[foreman-users] CentOS content hosts not reporting any Installable Errata
Mimmus
2016-12-07 08:58:32 UTC
Permalink
Hi,
my CentOS 6.x content hosts with subscription-manager and katello-agent
installed doesn't report any Installable Errata.
I tried to restart service 'goferd' and run 'katello-package-upload' by
hand with no result.

Any help?

Thanks in advance
--
--
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+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Mimmus
2016-12-07 09:25:04 UTC
Permalink
I'm sure that hosts can see each other, I'm seeing logs both on client and
server.
I suppose It is a problem of 'computation'.

How can I furtherly indagate ?
--
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+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Mimmus
2016-12-07 09:28:27 UTC
Permalink
I'm sure that hosts can see each other, I'm seeing logs both on client and
server.

# client
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.plugin:610
- plugin:builtin loaded using: /usr/share/gofer/plugins/builtin.py
Dec 7 10:06:00 trabmq02 goferd: [INFO][Thread-2] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/katelloplugin
Dec 7 10:06:00 trabmq02 goferd: [INFO][Thread-1] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/builtin
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.plugin:610
- plugin:katelloplugin loaded using: /usr/lib/gofer/plugins/katelloplugin.py
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] rhsm.connection:815 -
Connection built: host=pserver01.mydomain.com port=443 handler=/rhsm
auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] katelloplugin:177 -
Using /etc/rhsm/ca/katello-default-ca.pem as the ca cert for qpid connection
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] rhsm.connection:815 -
Connection built: host=pserver01.mydomain.com port=443 handler=/rhsm
auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] katelloplugin:352 -
reporting: {'enabled_repos': {'repos': [{'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_extras_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_6_6_extras_x86_64'},
{'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_os_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_6_6_os_x86_64'}, {'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_updates_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_6_6_updates_x86_64'},
{'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/epel-subscription-manager-6-x86_64'],
'repositoryid':
'MyDomain_Group_S_p_A__CentOS_6_epel-subscription-manager-6-x86_64'},
{'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/https___fedorapeople_org_groups_katello_releases_yum_latest_client_el6_x86_64'],
'repositoryid':
'MyDomain_Group_S_p_A__CentOS_6_https___fedorapeople_org_groups_katello_releases_yum_latest_client_el6_x86_64'},
{'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-dependencies_x86_64'],
'repositoryid':
'MyDomain_Group_S_p_A__CentOS_6_puppet-dependencies_x86_64'}, {'baseurl':
['https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-products_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_6_puppet-products_x86_64'}]}}
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.main:79 -
agent started.
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0]
gofer.messaging.adapter.proton.connection:100 - connecting: URL:
amqps://pserver01.mydomain.com:5647|SSL: ca:
/etc/rhsm/ca/katello-default-ca.pem|key: None|certificate:
/etc/pki/consumer/bundle.pem|host-validation: None
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0]
gofer.messaging.adapter.proton.connection:103 - connected:
amqps://pserver01.mydomain.com:5647
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0]
gofer.messaging.adapter.proton.connection:154 - closed:
amqps://pserver01.mydomain.com:5647
Dec 7 10:06:01 trabmq02 goferd:
[INFO][pulp.agent.fe766444-394a-4554-b5de-181f8f634353]
gofer.messaging.adapter.proton.connection:100 - connecting: URL:
amqps://pserver01.mydomain.com:5647|SSL: ca:
/etc/rhsm/ca/katello-default-ca.pem|key: None|certificate:
/etc/pki/consumer/bundle.pem|host-validation: None
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0] gofer.agent.plugin:318 -
plugin:katelloplugin queue:pulp.agent.fe766444-394a-4554-b5de-181f8f634353,
attached
Dec 7 10:06:02 trabmq02 goferd:
[INFO][pulp.agent.fe766444-394a-4554-b5de-181f8f634353]
gofer.messaging.adapter.proton.connection:103 - connected:
amqps://pserver01.mydomain.com:5647

# server
2016-12-07 10:21:34 [app] [I] Started GET
"/rhsm/consumers/fe766444-394a-4554-b5de-181f8f634353" for 10.140.66.102 at
2016-12-07 10:21:34 +0100
2016-12-07 10:21:34 [app] [I] Processing by
Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2016-12-07 10:21:34 [app] [I] Parameters:
{"id"=>"fe766444-394a-4554-b5de-181f8f634353"}
2016-12-07 10:21:34 [app] [I] Completed 200 OK in 141ms (Views: 4.7ms |
ActiveRecord: 2.2ms)
2016-12-07 10:21:34 [app] [I] Started PUT
"/rhsm/systems/fe766444-394a-4554-b5de-181f8f634353/enabled_repos" for
10.140.66.102 at 2016-12-07 10:21:34 +0100
2016-12-07 10:21:34 [app] [I] Processing by
Katello::Api::Rhsm::CandlepinProxiesController#enabled_repos as JSON
2016-12-07 10:21:34 [app] [I] Parameters:
{"enabled_repos"=>{"repos"=>[{"baseurl"=>["https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_extras_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_6_extras_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_os_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_6_os_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_updates_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_6_updates_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/epel-subscription-manager-6-x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_epel-subscription-manager-6-x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/https___fedorapeople_org_groups_katello_releases_yum_latest_client_el6_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_https___fedorapeople_org_groups_katello_releases_yum_latest_client_el6_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-dependencies_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_puppet-dependencies_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-products_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_puppet-products_x86_64"}]},
"id"=>"fe766444-394a-4554-b5de-181f8f634353"}
2016-12-07 10:21:34 [app] [I] Completed 200 OK in 88ms (Views: 0.5ms |
ActiveRecord: 15.0ms)


I suppose It is a problem of 'computation'.

How can I furtherly indagate ?
--
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+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Peter Kirby
2016-12-07 14:58:17 UTC
Permalink
For various reasons, unless it has recently changed, CentOS doesn't publish
errata. There are a few different ways to get some put in through 3rd
party sources, but as far as I know you'll never see any errata out of the
box. A quick google search for 'centos errata' will have a lot more
details.
Post by Mimmus
I'm sure that hosts can see each other, I'm seeing logs both on client and
server.
# client
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.plugin:610
- plugin:builtin loaded using: /usr/share/gofer/plugins/builtin.py
Dec 7 10:06:00 trabmq02 goferd: [INFO][Thread-2] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/katelloplugin
Dec 7 10:06:00 trabmq02 goferd: [INFO][Thread-1] gofer.rmi.store:116 -
Using: /var/lib/gofer/messaging/pending/builtin
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.plugin:610
- plugin:katelloplugin loaded using: /usr/lib/gofer/plugins/
katelloplugin.py
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] rhsm.connection:815 -
Connection built: host=pserver01.mydomain.com port=443 handler=/rhsm
auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] katelloplugin:177 -
Using /etc/rhsm/ca/katello-default-ca.pem as the ca cert for qpid connection
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] rhsm.connection:815 -
Connection built: host=pserver01.mydomain.com port=443 handler=/rhsm
auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] katelloplugin:352 -
reporting: {'enabled_repos': {'repos': [{'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
'MyDomain_Group_S_p_A__CentOS_6_6_extras_x86_64'}, {'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
'MyDomain_Group_S_p_A__CentOS_6_6_os_x86_64'}, {'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
'MyDomain_Group_S_p_A__CentOS_6_6_updates_x86_64'}, {'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/epel-subscription-manager-6-x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_
6_epel-subscription-manager-6-x86_64'}, {'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/https___fedorapeople_
org_groups_katello_releases_yum_latest_client_el6_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_6_https___fedorapeople_org_
groups_katello_releases_yum_latest_client_el6_x86_64'}, {'baseurl': ['
https://pserver01.mydomain.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-dependencies_x86_64'],
'repositoryid': 'MyDomain_Group_S_p_A__CentOS_
6_puppet-dependencies_x86_64'}, {'baseurl': ['https://pserver01.mydomain.
com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/
'MyDomain_Group_S_p_A__CentOS_6_puppet-products_x86_64'}]}}
Dec 7 10:06:00 trabmq02 goferd: [INFO][MainThread] gofer.agent.main:79 -
agent started.
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0] gofer.messaging.adapter.proton.connection:100
/etc/pki/consumer/bundle.pem|host-validation: None
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0] gofer.messaging.adapter.proton.connection:103
- connected: amqps://pserver01.mydomain.com:5647
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0] gofer.messaging.adapter.proton.connection:154
- closed: amqps://pserver01.mydomain.com:5647
Dec 7 10:06:01 trabmq02 goferd: [INFO][pulp.agent.fe766444-394a-4554-b5de-181f8f634353]
None|certificate: /etc/pki/consumer/bundle.pem|host-validation: None
Dec 7 10:06:01 trabmq02 goferd: [INFO][worker-0] gofer.agent.plugin:318 -
plugin:katelloplugin queue:pulp.agent.fe766444-394a-4554-b5de-181f8f634353,
attached
Dec 7 10:06:02 trabmq02 goferd: [INFO][pulp.agent.fe766444-394a-4554-b5de-181f8f634353]
gofer.messaging.adapter.proton.connection:103 - connected: amqps://
pserver01.mydomain.com:5647
# server
2016-12-07 10:21:34 [app] [I] Started GET "/rhsm/consumers/fe766444-394a-4554-b5de-181f8f634353"
for 10.140.66.102 at 2016-12-07 10:21:34 +0100
CandlepinProxiesController#consumer_show as JSON
2016-12-07 10:21:34 [app] [I] Parameters: {"id"=>"fe766444-394a-4554-
b5de-181f8f634353"}
2016-12-07 10:21:34 [app] [I] Completed 200 OK in 141ms (Views: 4.7ms |
ActiveRecord: 2.2ms)
2016-12-07 10:21:34 [app] [I] Started PUT "/rhsm/systems/fe766444-394a-
4554-b5de-181f8f634353/enabled_repos" for 10.140.66.102 at 2016-12-07
10:21:34 +0100
CandlepinProxiesController#enabled_repos as JSON
2016-12-07 10:21:34 [app] [I] Parameters: {"enabled_repos"=>{"repos"=>[{
"baseurl"=>["https://pserver01.mydomain.com/pulp/
repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/CentOS_6/6_extras_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_6_extras_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.
com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/
CentOS_6/6_os_x86_64"], "repositoryid"=>"MyDomain_
Group_S_p_A__CentOS_6_6_os_x86_64"}, {"baseurl"=>["https://
psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/6_updates_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_6_updates_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.
com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/
CentOS_6/epel-subscription-manager-6-x86_64"], "repositoryid"=>"MyDomain_
Group_S_p_A__CentOS_6_epel-subscription-manager-6-x86_64"}, {"baseurl"=>["
https://psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/https___fedorapeople_
org_groups_katello_releases_yum_latest_client_el6_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_https___
fedorapeople_org_groups_katello_releases_yum_latest_client_el6_x86_64"},
{"baseurl"=>["https://psatellite01.MyDomaingroup.
com/pulp/repos/MyDomain_Group_S_p_A_/CentOS/CentOS/custom/
CentOS_6/puppet-dependencies_x86_64"], "repositoryid"=>"MyDomain_
Group_S_p_A__CentOS_6_puppet-dependencies_x86_64"}, {"baseurl"=>["https://
psatellite01.MyDomaingroup.com/pulp/repos/MyDomain_Group_
S_p_A_/CentOS/CentOS/custom/CentOS_6/puppet-products_x86_64"],
"repositoryid"=>"MyDomain_Group_S_p_A__CentOS_6_puppet-products_x86_64"}]},
"id"=>"fe766444-394a-4554-b5de-181f8f634353"}
2016-12-07 10:21:34 [app] [I] Completed 200 OK in 88ms (Views: 0.5ms |
ActiveRecord: 15.0ms)
I suppose It is a problem of 'computation'.
How can I furtherly indagate ?
--
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
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit 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 foreman-users+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Mimmus
2016-12-07 15:56:34 UTC
Permalink
I'm discovering this info just now, thanks.

Trying this script:
https://github.com/brdude/pulp_centos_errata_import
--
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+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Mimmus
2016-12-12 17:49:40 UTC
Permalink
Post by Mimmus
https://github.com/brdude/pulp_centos_errata_import
It works!
--
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+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
Loading...