Repository no update with new repo

Problem:
1._ Create new product. --> Sync Repo
2._ Create new Contenview.
3._ Assing subscription to Host
4._ At host execute:
Subscription-manager refresh but no add new entry.
Re-register de machine and no add new entry on repo
Subscription-manager attach --poolid=xxxxx and not add new entry.

Expected outcome:

Foreman and Proxy versions:
1.24
Foreman and Proxy plugin versions:

candlepin-2.9.14-1.el7.noarch
candlepin-selinux-2.9.14-1.el7.noarch
foreman-1.24.0-15.el7.noarch
foreman-cli-1.24.0-15.el7.noarch
foreman-debug-1.24.0-15.el7.noarch
foreman-installer-1.24.0-7.el7.noarch
foreman-installer-katello-1.24.0-7.el7.noarch
foreman-postgresql-1.24.0-15.el7.noarch
foreman-proxy-1.24.0-5.el7.noarch
foreman-release-1.24.0-4.el7.noarch
foreman-release-scl-7-2.el7.noarch
foreman-selinux-1.24.0-4.el7.noarch
foreman-vmware-1.24.0-15.el7.noarch
ges08lv.teide.int-foreman-client-1.0-1.noarch
ges08lv.teide.int-foreman-proxy-1.0-1.noarch
ges08lv.teide.int-foreman-proxy-client-1.0-1.noarch
ges08lv.teide.int-qpid-broker-1.0-2.noarch
ges08lv.teide.int-qpid-client-cert-1.0-1.noarch
ges08lv.teide.int-qpid-router-client-1.0-1.noarch
ges08lv.teide.int-qpid-router-server-1.0-1.noarch
katello-3.14.0-4.el7.noarch
katello-certs-tools-2.6.0-1.el7.noarch
katello-client-bootstrap-1.7.4-1.el7.noarch
katello-common-3.14.0-4.el7.noarch
katello-debug-3.14.0-4.el7.noarch
katello-default-ca-1.0-1.noarch
katello-repos-3.14.0-5.el7.noarch
katello-selinux-3.1.1-1.el7.noarch
katello-server-ca-1.0-1.noarch
katello-service-3.14.0-4.el7.noarch
pulp-admin-client-2.21.0-1.el7.noarch
pulp-client-1.0-1.noarch
pulp-deb-plugins-1.10.0-1.el7.noarch
pulp-docker-plugins-3.2.5-1.el7.noarch
pulp-katello-1.0.3-1.el7.noarch
pulp-puppet-plugins-2.21.0-1.el7.noarch
pulp-puppet-tools-2.21.0-1.el7.noarch
pulp-rpm-admin-extensions-2.21.0-1.el7.noarch
pulp-rpm-plugins-2.21.0-1.el7.noarch
pulp-selinux-2.21.0-1.el7.noarch
pulp-server-2.21.0-1.el7.noarch
python-gofer-qpid-2.12.5-3.el7.noarch
python-pulp-bindings-2.21.0-1.el7.noarch
python-pulp-client-lib-2.21.0-1.el7.noarch
python-pulp-common-2.21.0-1.el7.noarch
python-pulp-deb-common-1.10.0-1.el7.noarch
python-pulp-docker-common-3.2.5-1.el7.noarch
python-pulp-oid_validation-2.21.0-1.el7.noarch
python-pulp-puppet-common-2.21.0-1.el7.noarch
python-pulp-repoauth-2.21.0-1.el7.noarch
python-pulp-rpm-common-2.21.0-1.el7.noarch
python-pulp-streamer-2.21.0-1.el7.noarch
python2-qpid-1.37.0-4.el7.noarch
python2-qpid-proton-0.29.0-1.el7.x86_64
python2-qpid-qmf-1.39.0-1.el7.x86_64
qpid-cpp-client-1.39.0-1.el7.x86_64
qpid-cpp-client-devel-1.39.0-1.el7.x86_64
qpid-cpp-server-1.39.0-1.el7.x86_64
qpid-cpp-server-linearstore-1.39.0-1.el7.x86_64
qpid-dispatch-router-1.9.0-1.el7.x86_64
qpid-proton-c-0.29.0-1.el7.x86_64
qpid-qmf-1.39.0-1.el7.x86_64
qpid-tools-1.39.0-1.el7.noarch
rubygem-foreman_maintain-0.5.0-1.el7.noarch
rubygem-smart_proxy_pulp-1.5.0-1.el7.noarch
tfm-ror51-rubygem-actioncable-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-actionmailer-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-actionpack-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-actionview-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-activejob-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-activemodel-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-activerecord-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-activesupport-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-arel-8.0.0-2.el7.centos.noarch
tfm-ror51-rubygem-builder-3.2.3-2.el7.centos.noarch
tfm-ror51-rubygem-coffee-rails-4.2.2-2.el7.centos.noarch
tfm-ror51-rubygem-coffee-script-2.4.1-2.el7.centos.noarch
tfm-ror51-rubygem-coffee-script-source-1.12.2-2.el7.centos.noarch
tfm-ror51-rubygem-concurrent-ruby-1.0.5-4.el7.centos.noarch
tfm-ror51-rubygem-crass-1.0.2-2.el7.centos.noarch
tfm-ror51-rubygem-erubi-1.7.0-2.el7.centos.noarch
tfm-ror51-rubygem-execjs-2.7.0-2.el7.centos.noarch
tfm-ror51-rubygem-globalid-0.4.1-2.el7.centos.noarch
tfm-ror51-rubygem-i18n-0.9.1-3.el7.centos.noarch
tfm-ror51-rubygem-loofah-2.1.1-3.el7.centos.noarch
tfm-ror51-rubygem-mail-2.7.0-3.el7.centos.noarch
tfm-ror51-rubygem-method_source-0.9.0-2.el7.centos.noarch
tfm-ror51-rubygem-mime-types-3.1-2.el7.centos.noarch
tfm-ror51-rubygem-mime-types-data-3.2016.0521-2.el7.centos.noarch
tfm-ror51-rubygem-mini_mime-1.0.0-2.el7.centos.noarch
tfm-ror51-rubygem-multi_json-1.12.2-2.el7.centos.noarch
tfm-ror51-rubygem-mustermann-1.0.1-2.el7.centos.noarch
tfm-ror51-rubygem-nio4r-2.1.0-2.el7.centos.x86_64
tfm-ror51-rubygem-nokogiri-1.8.1-2.el7.centos.x86_64
tfm-ror51-rubygem-rack-2.0.3-2.el7.centos.noarch
tfm-ror51-rubygem-rack-protection-2.0.0-2.el7.centos.noarch
tfm-ror51-rubygem-rack-test-0.7.0-2.el7.centos.noarch
tfm-ror51-rubygem-rails-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-rails-dom-testing-2.0.3-2.el7.centos.noarch
tfm-ror51-rubygem-rails-html-sanitizer-1.0.3-3.el7.centos.noarch
tfm-ror51-rubygem-railties-5.1.6-1.el7.centos.noarch
tfm-ror51-rubygem-sinatra-2.0.0-2.el7.centos.noarch
tfm-ror51-rubygem-sprockets-3.7.1-2.el7.noarch
tfm-ror51-rubygem-sprockets-rails-3.2.1-2.el7.centos.noarch
tfm-ror51-rubygem-sqlite3-1.3.13-2.el7.centos.x86_64
tfm-ror51-rubygem-thor-0.20.0-2.el7.centos.noarch
tfm-ror51-rubygem-thread_safe-0.3.6-2.el7.centos.noarch
tfm-ror51-rubygem-tilt-2.0.8-2.el7.centos.noarch
tfm-ror51-rubygem-turbolinks-2.5.4-2.el7.centos.noarch
tfm-ror51-rubygem-tzinfo-1.2.4-3.el7.centos.noarch
tfm-ror51-rubygem-websocket-driver-0.6.5-3.el7.centos.x86_64
tfm-ror51-rubygem-websocket-extensions-0.1.2-2.el7.centos.noarch
tfm-ror51-runtime-1.1-2.el7.centos.x86_64
tfm-ror52-rubygem-actioncable-5.2.1-1.el7.noarch
tfm-ror52-rubygem-actionmailer-5.2.1-1.el7.noarch
tfm-ror52-rubygem-actionpack-5.2.1-1.el7.noarch
tfm-ror52-rubygem-actionview-5.2.1-1.el7.noarch
tfm-ror52-rubygem-activejob-5.2.1-1.el7.noarch
tfm-ror52-rubygem-activemodel-5.2.1-1.el7.noarch
tfm-ror52-rubygem-activerecord-5.2.1-1.el7.noarch
tfm-ror52-rubygem-activestorage-5.2.1-1.el7.noarch
tfm-ror52-rubygem-activesupport-5.2.1-1.el7.noarch
tfm-ror52-rubygem-arel-9.0.0-1.el7.noarch
tfm-ror52-rubygem-builder-3.2.3-1.el7.noarch
tfm-ror52-rubygem-coffee-rails-4.2.2-1.el7.noarch
tfm-ror52-rubygem-coffee-script-2.4.1-1.el7.noarch
tfm-ror52-rubygem-coffee-script-source-1.12.2-1.el7.noarch
tfm-ror52-rubygem-concurrent-ruby-1.1.4-1.el7.noarch
tfm-ror52-rubygem-crass-1.0.4-1.el7.noarch
tfm-ror52-rubygem-erubi-1.7.1-1.el7.noarch
tfm-ror52-rubygem-execjs-2.7.0-1.el7.noarch
tfm-ror52-rubygem-globalid-0.4.1-3.el7.noarch
tfm-ror52-rubygem-i18n-1.4.0-1.el7.noarch
tfm-ror52-rubygem-loofah-2.2.2-2.el7.noarch
tfm-ror52-rubygem-mail-2.7.0-1.el7.noarch
tfm-ror52-rubygem-marcel-0.3.2-1.el7.noarch
tfm-ror52-rubygem-method_source-0.9.0-1.el7.noarch
tfm-ror52-rubygem-mime-types-3.2.2-1.el7.noarch
tfm-ror52-rubygem-mime-types-data-3.2018.0812-1.el7.noarch
tfm-ror52-rubygem-mimemagic-0.3.2-1.el7.noarch
tfm-ror52-rubygem-mini_mime-1.0.0-1.el7.noarch
tfm-ror52-rubygem-mini_portile2-2.3.0-1.el7.noarch
tfm-ror52-rubygem-multi_json-1.13.1-1.el7.noarch
tfm-ror52-rubygem-mustermann-1.0.2-1.el7.noarch
tfm-ror52-rubygem-nio4r-2.3.1-1.el7.x86_64
tfm-ror52-rubygem-nokogiri-1.8.4-2.el7.x86_64
tfm-ror52-rubygem-rack-2.0.6-1.el7.noarch
tfm-ror52-rubygem-rack-protection-2.0.3-1.el7.noarch
tfm-ror52-rubygem-rack-test-1.1.0-1.el7.noarch
tfm-ror52-rubygem-rails-5.2.1-1.el7.noarch
tfm-ror52-rubygem-rails-dom-testing-2.0.3-3.el7.noarch
tfm-ror52-rubygem-rails-html-sanitizer-1.0.4-2.el7.noarch
tfm-ror52-rubygem-railties-5.2.1-1.el7.noarch
tfm-ror52-rubygem-sinatra-2.0.3-1.el7.noarch
tfm-ror52-rubygem-sprockets-3.7.2-3.el7.noarch
tfm-ror52-rubygem-sprockets-rails-3.2.1-1.el7.noarch
tfm-ror52-rubygem-sqlite3-1.3.13-1.el7.x86_64
tfm-ror52-rubygem-thor-0.20.0-3.el7.noarch
tfm-ror52-rubygem-thread_safe-0.3.6-1.el7.noarch
tfm-ror52-rubygem-tilt-2.0.8-1.el7.noarch
tfm-ror52-rubygem-turbolinks-2.5.4-1.el7.noarch
tfm-ror52-rubygem-tzinfo-1.2.5-1.el7.noarch
tfm-ror52-rubygem-websocket-driver-0.7.0-1.el7.x86_64
tfm-ror52-rubygem-websocket-extensions-0.1.3-1.el7.noarch
tfm-ror52-runtime-1.0-4.el7.x86_64
tfm-rubygem-activerecord-import-1.0.0-1.el7.noarch
tfm-rubygem-activerecord-session_store-1.1.1-2.el7.noarch
tfm-rubygem-addressable-2.6.0-1.el7.noarch
tfm-rubygem-algebrick-0.7.3-6.el7.noarch
tfm-rubygem-ancestry-3.0.0-3.el7.noarch
tfm-rubygem-anemone-0.7.2-16.el7.noarch
tfm-rubygem-angular-rails-templates-1.0.2-4.el7.noarch
tfm-rubygem-apipie-bindings-0.3.0-1.el7.noarch
tfm-rubygem-apipie-params-0.0.5-3.el7.noarch
tfm-rubygem-apipie-rails-0.5.14-1.el7.noarch
tfm-rubygem-audited-4.9.0-1.el7.noarch
tfm-rubygem-awesome_print-1.8.0-3.el7.noarch
tfm-rubygem-bcrypt-3.1.12-1.el7.x86_64
tfm-rubygem-bundler_ext-0.4.1-3.el7.noarch
tfm-rubygem-clamp-1.1.2-4.el7.noarch
tfm-rubygem-concurrent-ruby-edge-0.4.1-1.fm1_23.el7.noarch
tfm-rubygem-connection_pool-2.2.2-1.el7.noarch
tfm-rubygem-css_parser-1.4.7-3.el7.noarch
tfm-rubygem-daemons-1.2.3-5.el7.noarch
tfm-rubygem-deacon-1.0.0-3.el7.noarch
tfm-rubygem-declarative-0.0.10-1.el7.noarch
tfm-rubygem-declarative-option-0.1.0-1.el7.noarch
tfm-rubygem-deep_cloneable-3.0.0-1.el7.noarch
tfm-rubygem-deface-1.5.3-1.el7.noarch
tfm-rubygem-domain_name-0.5.20160310-3.el7.noarch
tfm-rubygem-dynflow-1.4.1-1.fm1_24.el7.noarch
tfm-rubygem-ethon-0.12.0-1.el7.noarch
tfm-rubygem-excon-0.58.0-3.el7.noarch
tfm-rubygem-facter-2.4.0-6.el7.x86_64
tfm-rubygem-faraday-0.15.4-1.el7.noarch
tfm-rubygem-fast_gettext-1.4.1-3.el7.noarch
tfm-rubygem-ffi-1.4.0-8.el7.x86_64
tfm-rubygem-fog-aws-3.5.0-1.el7.noarch
tfm-rubygem-fog-core-2.1.0-1.el7.noarch
tfm-rubygem-fog-digitalocean-0.4.0-1.el7.noarch
tfm-rubygem-fog-google-1.8.2-1.el7.noarch
tfm-rubygem-fog-json-1.2.0-1.el7.noarch
tfm-rubygem-fog-openstack-1.0.8-2.el7.noarch
tfm-rubygem-fog-ovirt-1.2.0-1.el7.noarch
tfm-rubygem-fog-rackspace-0.1.4-3.el7.noarch
tfm-rubygem-fog-vsphere-3.2.1-1.el7.noarch
tfm-rubygem-fog-xenserver-1.0.0-1.el7.noarch
tfm-rubygem-fog-xml-0.1.2-6.el7.noarch
tfm-rubygem-foreman-tasks-0.17.5-1.fm1_24.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.fm1_24.el7.noarch
tfm-rubygem-foreman_docker-5.0.0-2.fm1_23.el7.noarch
tfm-rubygem-foreman_remote_execution-2.0.6-1.fm1_24.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7.noarch
tfm-rubygem-formatador-0.2.1-11.el7.noarch
tfm-rubygem-friendly_id-5.2.4-2.el7.noarch
tfm-rubygem-get_process_mem-0.2.1-3.el7.noarch
tfm-rubygem-gettext_i18n_rails-1.8.0-1.el7.noarch
tfm-rubygem-gitlab-sidekiq-fetcher-0.5.2-1.el7.noarch
tfm-rubygem-google-api-client-0.23.9-1.el7.noarch
tfm-rubygem-googleauth-0.6.7-1.el7.noarch
tfm-rubygem-graphql-1.8.14-1.el7.noarch
tfm-rubygem-graphql-batch-0.3.10-1.el7.noarch
tfm-rubygem-hammer_cli-0.19.0-2.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.19.4-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.8-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.3.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-4.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.13-1.fm1_23.el7.noarch
tfm-rubygem-hammer_cli_katello-0.20.2-1.el7.noarch
tfm-rubygem-hashie-3.6.0-1.el7.noarch
tfm-rubygem-highline-1.7.8-4.el7.noarch
tfm-rubygem-http-cookie-1.0.2-3.el7.noarch
tfm-rubygem-httpclient-2.8.3-2.el7.noarch
tfm-rubygem-ipaddress-0.8.0-11.el7.noarch
tfm-rubygem-jwt-2.2.1-1.el7.noarch
tfm-rubygem-katello-3.14.0-5.el7.noarch
tfm-rubygem-ldap_fluff-0.4.7-3.el7.noarch
tfm-rubygem-little-plugger-1.1.4-1.el7.noarch
tfm-rubygem-locale-2.0.9-13.el7.noarch
tfm-rubygem-logging-2.2.2-3.el7.noarch
tfm-rubygem-memoist-0.16.0-1.el7.noarch
tfm-rubygem-multipart-post-2.0.0-1.el7.noarch
tfm-rubygem-net-ldap-0.16.1-1.el7.noarch
tfm-rubygem-net-ping-2.0.1-3.el7.noarch
tfm-rubygem-net-scp-1.2.1-3.el7.noarch
tfm-rubygem-net-ssh-4.2.0-1.el7.noarch
tfm-rubygem-netrc-0.11.0-4.el7.noarch
tfm-rubygem-oauth-0.5.4-3.el7.noarch
tfm-rubygem-optimist-3.0.0-1.el7.noarch
tfm-rubygem-os-1.0.0-1.el7.noarch
tfm-rubygem-ovirt-engine-sdk-4.2.3-3.el7.x86_64
tfm-rubygem-parse-cron-0.1.4-4.fm1_23.el7.noarch
tfm-rubygem-passenger-4.0.18-10.12.el7.x86_64
tfm-rubygem-passenger-native-4.0.18-10.12.el7.x86_64
tfm-rubygem-passenger-native-libs-4.0.18-10.12.el7.x86_64
tfm-rubygem-pg-0.21.0-3.el7.x86_64
tfm-rubygem-polyglot-0.3.5-2.el7.noarch
tfm-rubygem-powerbar-2.0.1-1.el7.noarch
tfm-rubygem-promise.rb-0.7.4-1.el7.noarch
tfm-rubygem-public_suffix-3.0.3-1.el7.noarch
tfm-rubygem-pulp_2to3_migration_client-0.0.1a1.dev01570560174-1.el7.noarch
tfm-rubygem-pulp_ansible_client-0.2.0b1.dev0.1560866833-1.el7.noarch
tfm-rubygem-pulp_docker_client-4.0.0b6.dev01562331743-1.el7.noarch
tfm-rubygem-pulp_file_client-0.0.1b10.dev.1557779852-1.el7.noarch
tfm-rubygem-pulp_rpm_client-3.0.0b7.dev01570381057-1.el7.noarch
tfm-rubygem-pulpcore_client-3.0.0rc2.dev.1557772471-1.el7.noarch
tfm-rubygem-qpid_messaging-1.38.0-1.el7.x86_64
tfm-rubygem-rabl-0.13.1-2.el7.noarch
tfm-rubygem-rack-cors-1.0.2-1.el7.noarch
tfm-rubygem-rack-jsonp-1.3.1-7.el7.noarch
tfm-rubygem-rails-i18n-5.1.1-2.el7.noarch
tfm-rubygem-rainbow-2.2.1-3.el7.noarch
tfm-rubygem-rbovirt-0.1.7-2.el7.noarch
tfm-rubygem-rbvmomi-2.2.0-1.el7.noarch
tfm-rubygem-record_tag_helper-1.0.0-2.el7.noarch
tfm-rubygem-redis-4.1.2-1.el7.noarch
tfm-rubygem-representable-3.0.4-1.el7.noarch
tfm-rubygem-responders-3.0.0-1.el7.noarch
tfm-rubygem-rest-client-2.0.2-1.el7.noarch
tfm-rubygem-retriable-3.1.2-1.el7.noarch
tfm-rubygem-roadie-3.4.0-1.el7.noarch
tfm-rubygem-roadie-rails-2.0.0-1.el7.noarch
tfm-rubygem-robotex-1.0.0-21.el7.noarch
tfm-rubygem-ruby2ruby-2.4.2-1.el7.noarch
tfm-rubygem-ruby_parser-3.10.1-2.el7.noarch
tfm-rubygem-runcible-2.12.1-1.el7.noarch
tfm-rubygem-safemode-1.3.5-2.el7.noarch
tfm-rubygem-scoped_search-4.1.7-1.el7.noarch
tfm-rubygem-secure_headers-6.0.0-1.el7.noarch
tfm-rubygem-sequel-5.7.1-2.el7.noarch
tfm-rubygem-sexp_processor-4.10.0-5.el7.noarch
tfm-rubygem-sidekiq-5.2.7-1.el7.noarch
tfm-rubygem-signet-0.11.0-1.el7.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.2.2-1.fm1_23.el7.noarch
tfm-rubygem-sshkey-1.9.0-3.el7.noarch
tfm-rubygem-statsd-instrument-2.1.4-2.el7.noarch
tfm-rubygem-trollop-2.1.2-3.el7.noarch
tfm-rubygem-typhoeus-1.3.1-1.el7.noarch
tfm-rubygem-uber-0.1.0-1.el7.noarch
tfm-rubygem-unf-0.1.3-7.el7.noarch
tfm-rubygem-unf_ext-0.0.7.2-1.el7.x86_64
tfm-rubygem-unicode-0.4.4.4-1.el7.x86_64
tfm-rubygem-unicode-display_width-1.0.5-3.el7.noarch
tfm-rubygem-useragent-0.16.8-3.el7.noarch
tfm-rubygem-validates_lengths_from_database-0.5.0-5.el7.noarch
tfm-rubygem-webpack-rails-0.9.8-3.el7.noarch
tfm-rubygem-wicked-1.3.3-1.el7.noarch
tfm-rubygem-will_paginate-3.1.7-1.el7.noarch
tfm-rubygem-x-editable-rails-1.5.5-3.el7.noarch
tfm-rubygem-xmlrpc-0.3.0-1.el7.noarch
tfm-rubygem-zest-0.0.4-1.el7.noarch
tfm-runtime-5.0-9.el7.x86_64

Distribution and version:
Centos 7
Other relevant data:

Hello,

I believe you might be hitting the same bug in the post here: CentOS host cannot subscribe to repositories

First, run this command on your Foreman server:
sudo su - postgres -c "psql -d candlepin -c \"select id,enddate from cp_pool where enddate > '2049-12-31 00:00:00';\""

If it returns any rows, then you are hitting that bug. To fix, upgrade to Katello 3.14.1 and follow these instructions: CentOS host cannot subscribe to repositories

Let us know if you have any other questions.

@Carlos_Lorenzo, for just a bit of extra data, what @iballou has referred to really should only affect custom (non-RedHat) repositories created between Jan. 1, 2020 and the install of Katello 3.14.1.