Katello / Foreman: incapaz de sincronizar produtos ou instalar software

1

Eu configurei o cenário foreman with katello e configurei e sincronizei anteriormente alguns repositórios e visualizações de conteúdo (para o servidor Red Hat 5).

De repente, depois de executar algumas tarefas de sincronização, os registros retornam:

2016-12-30 17:12:14 0b8fc582 [app] [E] RuntimeError: 
There was an issue with the backend service pulp: 404 Resource Not Found.

# hammer ping

candlepin:

    Status:          ok
    Server Response: Duration: 112ms

candlepin_auth:

    Status:          ok
    Server Response: Duration: 79ms

pulp:

    Status:          FAIL
    Server Response:

foreman_tasks:

    Status:          ok
    Server Response: Duration: 40ms

Pesquisei no google, fóruns da comunidade e listas de discussão sem resultados precisos, e também reiniciei todos os serviços incluídos.

Como posso solucionar ou resolver esse problema?

Informações do software:

Versão do capataz: capataz-1.13.2-1 Versão Katello: katello-3.2.1-1

Red Hat Enterprise Linux 7.2

    
por Felipe Mateo 30.12.2016 / 22:22

2 respostas

1

agradece este trabalho,

# hammer ping
candlepin:      
   Status:          ok
   Server Response: Duration: 49ms
candlepin_auth: 
   Status:          ok
   Server Response: Duration: 48ms
pulp:           
   Status:          FAIL
   Server Response:
foreman_tasks:  
   Status:          ok
   Server Response: Duration: 583ms

copie isso

#
# WARNING: THIS CONFIGURATION WAS GENERATED BY KATELLO-CONFIGURE TOOL,
# CHANGES WILL LIKELY BE OVERWRITTEN.
#

# Apache configuration file for pulp web services and repositories

AddType application/x-pkcs7-crl .crl 
AddType application/x-x509-ca-cert .crt

# allow older yum clients to connect, see bz 647828 SSLInsecureRenegotiation on

WSGIProcessGroup pulp 
WSGIApplicationGroup pulp 
WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP}

# DEBUG - uncomment the next 2 lines to enable debugging
#WSGIRestrictStdin Off
#WSGIRestrictStdout Off

WSGISocketPrefix run/wsgi 
WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi 
WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp 
application-group=pulp

<Directory /usr/share/pulp/wsgi>   
Require all granted 
</Directory>

<Files webservices.wsgi>
 WSGIPassAuthorization On
 WSGIProcessGroup pulp
 WSGIApplicationGroup pulp
 SSLRenegBufferSize  1048576
 SSLRequireSSL
 SSLVerifyDepth 3
 SSLOptions +StdEnvVars +ExportCertData
 SSLVerifyClient optional 
</Files>

Alias /pulp/static /var/lib/pulp/static

<Location /pulp/static>
SSLRequireSSL
Options +Indexes
Require all granted 
</Location>

após a reinicialização, o systemctl reinicia o httpd

ping novamente

# hammer ping
candlepin:      
    Status:          ok
    Server Response: Duration: 46ms
candlepin_auth: 
    Status:          ok
    Server Response: Duration: 48ms
pulp:           
    Status:          ok
    Server Response: Duration: 204ms
foreman_tasks:  
    Status:          ok
    Server Response: Duration: 1019ms
    
por 24.05.2017 / 03:20
1

Eu descobri que o problema raiz da polpa não é carregar / ping corretamente. Eu descobri que o pulp.conf foi deletado pelo contramestre no caminho /etc/httpd/conf.d/. Depois de adicionar o conteúdo e também de reiniciar o httpd apache, ele funcionou corretamente e agora posso sincronizar ou instalar qualquer pacote nos servidores.

Compartilhando o conteúdo do pulp.conf:

#
# WARNING: THIS CONFIGURATION WAS GENERATED BY KATELLO-CONFIGURE TOOL,
# CHANGES WILL LIKELY BE OVERWRITTEN.
#

# Apache configuration file for pulp web services and repositories

AddType application/x-pkcs7-crl .crl 
AddType application/x-x509-ca-cert .crt

# allow older yum clients to connect, see bz 647828 SSLInsecureRenegotiation on

WSGIProcessGroup pulp 
WSGIApplicationGroup pulp 
WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP}

# DEBUG - uncomment the next 2 lines to enable debugging
#WSGIRestrictStdin Off
#WSGIRestrictStdout Off

WSGISocketPrefix run/wsgi 
WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi 
WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp application-group=pulp

<Directory /usr/share/pulp/wsgi>   
Require all granted 
</Directory>

<Files webservices.wsgi>
 WSGIPassAuthorization On
 WSGIProcessGroup pulp
 WSGIApplicationGroup pulp
 SSLRenegBufferSize  1048576
 SSLRequireSSL
 SSLVerifyDepth 3
 SSLOptions +StdEnvVars +ExportCertData
 SSLVerifyClient optional 
</Files>

Alias /pulp/static /var/lib/pulp/static

<Location /pulp/static>
SSLRequireSSL
Options +Indexes
Require all granted 
</Location>
    
por 02.01.2017 / 22:06