Red Hat Bugzilla – Bug 1190012
Unable to publish content view with a docker repository product
Last modified: 2017-02-23 15:35:26 EST
Created attachment 988673 [details] production.log attached Description of problem: Content view publishing with a docker repository product Version-Release number of selected component (if applicable): # rpm -q foreman foreman-1.7.2.3-1.el7sat.noarch How reproducible: everytime Steps to Reproduce: 1.Add a product with a docker repo to a content view 2.Publish content view with docker content 3. Actual results: Content view publish fails Expected results: Content view publish works Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Yeah.. getting same issue while publishing CV with docker contents. Firebug throws following error: -- "NetworkError: 422 Unprocessable Entity - https://hp-ml370g5-01.rhts.eng.bos.redhat.com/katello/api/v2/content_views/2/publish?organization_id=1" -- and snippet from production.log: ===== Processing by Katello::Api::V2::ContentViewsController#publish as JSON Parameters: {"id"=>"2", "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"2"}} Validation failed: Repository URL and Upstream Name cannot be empty. Both are required for syncing from the upstream. (ActiveRecord::RecordInvalid) /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:56:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:33:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `block in save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/app/lib/katello/lazy_accessor.rb:102:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/app/lib/actions/katello/repository/create.rb:20:in `plan' /
reproducible with: * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.41-1.el6.noarch * candlepin-common-1.0.20-1.el6.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.41-1.el6.noarch * candlepin-tomcat6-0.9.41-1.el6.noarch * elasticsearch-0.90.10-7.el6.noarch * foreman-1.7.2.3-1.el6_6sat.noarch * foreman-compute-1.7.2.3-1.el6_6sat.noarch * foreman-gce-1.7.2.3-1.el6_6sat.noarch * foreman-libvirt-1.7.2.3-1.el6_6sat.noarch * foreman-ovirt-1.7.2.3-1.el6_6sat.noarch * foreman-postgresql-1.7.2.3-1.el6_6sat.noarch * foreman-proxy-1.7.2.1-1.el6_6sat.noarch * foreman-selinux-1.7.2.8-1.el6_6sat.noarch * foreman-vmware-1.7.2.3-1.el6_6sat.noarch * katello-2.2.0.2-1.el6_6sat.noarch * katello-certs-tools-2.2.1-1.el6_6sat.noarch * katello-common-2.2.0.2-1.el6_6sat.noarch * katello-default-ca-1.0-1.noarch * katello-installer-2.2.0.3-1.el6_6sat.noarch * katello-installer-base-2.2.0.3-1.el6_6sat.noarch * katello-server-ca-1.0-1.noarch * openldap-2.4.39-8.el6.x86_64 * openldap-devel-2.4.39-8.el6.x86_64 * pulp-docker-plugins-0.2.1-0.2.beta.el6_6sat.noarch * pulp-katello-0.3-4.el6sat.noarch * pulp-nodes-common-2.5.0-0.7.beta.el6_6sat.noarch * pulp-nodes-parent-2.5.0-0.7.beta.el6_6sat.noarch * pulp-puppet-plugins-2.5.0-0.7.beta.el6sat.noarch * pulp-puppet-tools-2.5.0-0.7.beta.el6sat.noarch * pulp-rpm-plugins-2.5.0-0.7.beta.el6_6sat.noarch * pulp-selinux-2.5.0-0.7.beta.el6_6sat.noarch * pulp-server-2.5.0-0.7.beta.el6_6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-ldap_fluff-0.3.2-1.el6_6sat.noarch * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.3.0-1.el6_6sat.noarch * rubygem-hammer_cli-0.1.4.3-1.el6_6sat.noarch * rubygem-hammer_cli_foreman-0.1.4.3-1.el6_6sat.noarch * rubygem-hammer_cli_foreman_bootdisk-0.1.2.4-1.el6_6sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.3.1-1.el6_6sat.noarch * rubygem-hammer_cli_gutterball-0.0.1.1-1.el6_6sat.noarch * rubygem-hammer_cli_import-0.10.6-1.el6sat.noarch * rubygem-hammer_cli_katello-0.0.7.1-1.el6_6sat.noarch
Faced the same issue on rhel6 sat6. /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' ActiveRecord::RecordInvalid base: ["Repository URL and Upstream Name cannot be empty. Both are required for syncing from the upstream."] Completed 422 Unprocessable Entity in 2959ms (Views: 1.3ms | ActiveRecord: 110.1ms)
hammer failed for the same reason too: hammer> content-view publish --name=cv3 --organization-id=1 Could not publish the content view: Validation failed: Repository URL and Upstream Name cannot be empty. Both are required for syncing from the upstream.
Should be fixed when https://github.com/Katello/katello/pull/4978 makes it to the snap.. 2aa2347b7fd0d4b3fee574062863b2855c5a64a0
Fixed in: https://github.com/Katello/katello/pull/4978
VERIFIED # rpm -q | grep foreman rpm: no arguments given for query [root@qe-sat6-rhel7 ~]# rpm -qa | grep foreman foreman-postgresql-1.7.2.4-1.el7sat.noarch foreman-vmware-1.7.2.4-1.el7sat.noarch ruby193-rubygem-foreman_bootdisk-4.0.2.4-1.el7.noarch foreman-compute-1.7.2.4-1.el7sat.noarch ruby193-rubygem-foreman_docker-1.1.0.2-1.el7sat.noarch ruby193-rubygem-foreman-tasks-0.6.12.1-1.el7sat.noarch rubygem-hammer_cli_foreman_tasks-0.0.3.1-1.el7.noarch ruby193-rubygem-foreman_openscap-0.3.0-1.el7sat.noarch foreman-1.7.2.4-1.el7sat.noarch foreman-gce-1.7.2.4-1.el7sat.noarch ruby193-rubygem-foreman_abrt-0.0.5-2.el7sat.noarch rubygem-hammer_cli_foreman-0.1.4.3-1.el7sat.noarch qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch foreman-selinux-1.7.2.8-1.el7sat.noarch foreman-ovirt-1.7.2.4-1.el7sat.noarch ruby193-rubygem-foreman-redhat_access-0.0.7-2.el7sat.noarch rubygem-hammer_cli_foreman_bootdisk-0.1.2.4-1.el7.noarch foreman-proxy-1.7.2.1-1.el7sat.noarch foreman-libvirt-1.7.2.4-1.el7sat.noarch ruby193-rubygem-foreman_gutterball-0.0.1.4-1.el7sat.noarch qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
This bug is slated to be released with Satellite 6.1.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:1592