Bug 1252291

Summary: Issue syncing data
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: Inter Satellite SyncAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.8CC: bbuckingham
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-08 18:24:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Waldirio M Pinheiro 2015-08-11 06:28:55 UTC
Description of problem:
After install all environment to configure a server to download all contents to satellite 6, using katello-disconnected, I received a error. Was executed all steps according official documentation (https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html-single/Installation_Guide/index.html), was adapted only to rhel7 as OS machine.

Version-Release number of selected component (if applicable):
sat6.0.8

How reproducible:
100%

Steps to Reproduce:
1.Install a new machine with rhel7 (minimal)
2.Execute step by step to configure a server to download content

Actual results:
error (500 Internal Server Error)

Expected results:
Sync packages

Additional info:

Below all steps executed in my environment.

###

[root@katdisconnected ~]# tr -dc "[:alnum:]" < /dev/urandom | head -c 32
Nexrv03EMj1A8zZblwCpr2AymhwkLbOw[root@katdisconnected ~]# vi^C
[root@katdisconnected ~]# 
[root@katdisconnected ~]# 
[root@katdisconnected ~]# vi /etc/pulp/server.conf
[root@katdisconnected ~]# vi /etc/qpid/qpidd.conf 
[root@katdisconnected ~]# katello-disconnected setup --oauth-key=katello --oauth-secret=Nexrv03EMj1A8zZblwCpr2AymhwkLbOw
[root@katdisconnected ~]# sudo service qpidd start
Redirecting to /bin/systemctl start  qpidd.service
[root@katdisconnected ~]# sudo chkconfig qpidd on
Note: Forwarding request to 'systemctl enable qpidd.service'.
[root@katdisconnected ~]# sudo service mongod start
Redirecting to /bin/systemctl start  mongod.service
[root@katdisconnected ~]# sleep 10
[root@katdisconnected ~]# sudo chkconfig mongod on
Note: Forwarding request to 'systemctl enable mongod.service'.
ln -s '/usr/lib/systemd/system/mongod.service' '/etc/systemd/system/multi-user.target.wants/mongod.service'
[root@katdisconnected ~]# sudo -u apache pulp-manage-db
Loading content types.
Content types loaded.
Ensuring the admin role and user are in place.
Admin role and user are in place.
Beginning database migrations.
Applying pulp.server.db.migrations version 1
Migration to pulp.server.db.migrations version 1 complete.
Applying pulp.server.db.migrations version 2
Migration to pulp.server.db.migrations version 2 complete.
Applying pulp.server.db.migrations version 3
Migration to pulp.server.db.migrations version 3 complete.
Applying pulp.server.db.migrations version 4
Migration to pulp.server.db.migrations version 4 complete.
Applying pulp.server.db.migrations version 5
Migration to pulp.server.db.migrations version 5 complete.
Applying pulp.server.db.migrations version 6
Migration to pulp.server.db.migrations version 6 complete.
Applying pulp.server.db.migrations version 7
Migration to pulp.server.db.migrations version 7 complete.
Applying pulp.server.db.migrations version 8
Migration to pulp.server.db.migrations version 8 complete.
Applying pulp.server.db.migrations version 9
Migration to pulp.server.db.migrations version 9 complete.
Applying pulp_puppet.plugins.migrations version 1
Migration to pulp_puppet.plugins.migrations version 1 complete.
Applying pulp_puppet.plugins.migrations version 2
Migration to pulp_puppet.plugins.migrations version 2 complete.
Applying pulp_rpm.plugins.migrations version 1
Migration to pulp_rpm.plugins.migrations version 1 complete.
Applying pulp_rpm.plugins.migrations version 2
Migration to pulp_rpm.plugins.migrations version 2 complete.
Applying pulp_rpm.plugins.migrations version 3
Migration to pulp_rpm.plugins.migrations version 3 complete.
Applying pulp_rpm.plugins.migrations version 4
Migration to pulp_rpm.plugins.migrations version 4 complete.
Applying pulp_rpm.plugins.migrations version 5
Migration to pulp_rpm.plugins.migrations version 5 complete.
Applying pulp_rpm.plugins.migrations version 6
Migration to pulp_rpm.plugins.migrations version 6 complete.
Applying pulp_rpm.plugins.migrations version 7
Migration to pulp_rpm.plugins.migrations version 7 complete.
Applying pulp_rpm.plugins.migrations version 8
Migration to pulp_rpm.plugins.migrations version 8 complete.
Applying pulp_rpm.plugins.migrations version 9
Migration to pulp_rpm.plugins.migrations version 9 complete.
Applying pulp_rpm.plugins.migrations version 10
Migration to pulp_rpm.plugins.migrations version 10 complete.
Applying pulp_rpm.plugins.migrations version 11
Migration to pulp_rpm.plugins.migrations version 11 complete.
Applying pulp_rpm.plugins.migrations version 12
Migration to pulp_rpm.plugins.migrations version 12 complete.
Applying pulp_rpm.plugins.migrations version 13
Migration to pulp_rpm.plugins.migrations version 13 complete.
Applying pulp_rpm.plugins.migrations version 14
Migration to pulp_rpm.plugins.migrations version 14 complete.
Applying pulp_rpm.plugins.migrations version 15
Migration to pulp_rpm.plugins.migrations version 15 complete.
Applying pulp_rpm.plugins.migrations version 16
Migration to pulp_rpm.plugins.migrations version 16 complete.
Applying pulp_rpm.plugins.migrations version 17
Migration to pulp_rpm.plugins.migrations version 17 complete.
Database migrations complete.
[root@katdisconnected ~]# sudo service httpd restart
Redirecting to /bin/systemctl restart  httpd.service
[root@katdisconnected ~]# sudo chkconfig pulp_workers on
Note: Forwarding request to 'systemctl enable pulp_workers.service'.
ln -s '/usr/lib/systemd/system/pulp_workers.service' '/etc/systemd/system/multi-user.target.wants/pulp_workers.service'
[root@katdisconnected ~]# sudo service pulp_workers start
Redirecting to /bin/systemctl start  pulp_workers.service
[root@katdisconnected ~]# sudo chkconfig pulp_celerybeat on
Note: Forwarding request to 'systemctl enable pulp_celerybeat.service'.
ln -s '/usr/lib/systemd/system/pulp_celerybeat.service' '/etc/systemd/system/multi-user.target.wants/pulp_celerybeat.service'
[root@katdisconnected ~]# sudo service pulp_celerybeat start
Redirecting to /bin/systemctl start  pulp_celerybeat.service
[root@katdisconnected ~]# sudo chkconfig pulp_resource_manager on
Note: Forwarding request to 'systemctl enable pulp_resource_manager.service'.
ln -s '/usr/lib/systemd/system/pulp_resource_manager.service' '/etc/systemd/system/multi-user.target.wants/pulp_resource_manager.service'
[root@katdisconnected ~]# sudo service pulp_resource_manager start
Redirecting to /bin/systemctl start  pulp_resource_manager.service
[root@katdisconnected ~]# katello-disconnected import -m /tmp/manifest_b6dd5dca-0808-4df1-9e8e-8db567ed6204.zip 
Resource https://cdn.redhat.com/content/beta/rhel/server/6/x86_64/listing not found
[root@katdisconnected ~]#

[root@katdisconnected ~]# katello-disconnected enable -r rhel-6-server-rpms-6_6-x86_64
[root@katdisconnected ~]# katello-disconnected list
Red Hat Repositories
rhel-6-server-rpms-6_6-x86_64

Puppet Forge
[root@katdisconnected ~]# katello-disconnected configure
[root@katdisconnected ~]# katello-disconnected sync
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 500 Internal Server Error (RestClient::InternalServerError)
	from /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.1.0/lib/runcible/base.rb:97:in `block in get_response'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
	from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
	from /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:67:in `post'
	from /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.1.0/lib/runcible/base.rb:96:in `get_response'
	from /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.1.0/lib/runcible/base.rb:87:in `call'
	from /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.1.0/lib/runcible/resources/repository.rb:121:in `sync'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:169:in `block (2 levels) in synchronize'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:37:in `call'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:37:in `dry_run'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:168:in `block in synchronize'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:165:in `each'
	from /usr/share/katello-disconnected/lib/disconnected_pulp.rb:165:in `synchronize'
	from /usr/bin/katello-disconnected:497:in `<main>'
[root@katdisconnected ~]#
###

Comment 2 Bryan Kearney 2016-02-08 18:24:20 UTC
The katello-disconnected server synchronization and export functions are being moved into the Satellite server itself. With 6.2, the katello-disconnected command will no longer be delivered and instead will be replaced with a new export and import functions delivered via the UI and hammer CLI. This bug is being closed as "WONTFIX" since it relates only to the existing katello-disconnected tooling. Please check the Satellite docs with the release of Satellite 6.2 on how to use the new content export and import features.