katello 4.0.3 → 4.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +0 -33
- data/app/assets/stylesheets/katello/contents.scss +1 -1
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -11
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +2 -9
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +10 -24
- data/app/controllers/katello/api/v2/api_controller.rb +15 -3
- data/app/controllers/katello/api/v2/content_credentials_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_export_incrementals_controller.rb +1 -8
- data/app/controllers/katello/api/v2/content_exports_controller.rb +1 -14
- data/app/controllers/katello/api/v2/content_imports_controller.rb +38 -15
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_components_controller.rb +22 -1
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +6 -1
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +2 -59
- data/app/controllers/katello/api/v2/content_views_controller.rb +3 -58
- data/app/controllers/katello/api/v2/host_errata_controller.rb +7 -6
- data/app/controllers/katello/api/v2/host_packages_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +18 -22
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +16 -16
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
- data/app/controllers/katello/api/v2/package_groups_controller.rb +4 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +13 -12
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +50 -4
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +7 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +10 -0
- data/app/controllers/katello/concerns/api/v2/registration_commands_controller_extensions.rb +46 -0
- data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +8 -0
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +31 -22
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -8
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/registration_commands_controller_extensions.rb +34 -0
- data/app/helpers/katello/katello_urls_helper.rb +23 -0
- data/app/lib/actions/candlepin/owner/import.rb +10 -3
- data/app/lib/actions/candlepin/product/content_update.rb +1 -1
- data/app/lib/actions/foreman/environment/destroy.rb +2 -2
- data/app/lib/actions/katello/agent_action.rb +1 -6
- data/app/lib/actions/katello/capsule_content/refresh_repos.rb +0 -7
- data/app/lib/actions/katello/capsule_content/sync.rb +1 -1
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +1 -2
- data/app/lib/actions/katello/content_view/add_to_environment.rb +9 -7
- data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -10
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -3
- data/app/lib/actions/katello/content_view/promote_to_environment.rb +1 -4
- data/app/lib/actions/katello/content_view/publish.rb +21 -31
- data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -5
- data/app/lib/actions/katello/content_view_version/auto_create_products.rb +22 -0
- data/app/lib/actions/katello/content_view_version/auto_create_repositories.rb +22 -0
- data/app/lib/actions/katello/content_view_version/destroy.rb +0 -10
- data/app/lib/actions/katello/content_view_version/export.rb +20 -22
- data/app/lib/actions/katello/content_view_version/import.rb +27 -13
- data/app/lib/actions/katello/content_view_version/import_library.rb +4 -2
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +12 -67
- data/app/lib/actions/katello/content_view_version/republish_repositories.rb +0 -4
- data/app/lib/actions/katello/content_view_version/reset_content_view_repositories_from_metadata.rb +11 -0
- data/app/lib/actions/katello/foreman/content_update.rb +0 -3
- data/app/lib/actions/katello/host/auto_attach_subscriptions.rb +0 -4
- data/app/lib/actions/katello/organization/manifest_import.rb +7 -1
- data/app/lib/actions/katello/organization/manifest_refresh.rb +28 -7
- data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +2 -2
- data/app/lib/actions/katello/product/create.rb +0 -1
- data/app/lib/actions/katello/repository/check_matching_content.rb +4 -3
- data/app/lib/actions/katello/repository/destroy.rb +1 -1
- data/app/lib/actions/katello/repository/discover.rb +1 -1
- data/app/lib/actions/katello/repository/filtered_index_content.rb +1 -4
- data/app/lib/actions/katello/repository/import_upload.rb +0 -1
- data/app/lib/actions/katello/repository/update.rb +0 -1
- data/app/lib/actions/middleware/record_smart_proxy_sync_history.rb +0 -5
- data/app/lib/actions/pulp/repository/create.rb +1 -7
- data/app/lib/actions/pulp/repository/distributor_publish.rb +2 -10
- data/app/lib/actions/pulp/repository/sync.rb +1 -3
- data/app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb +17 -0
- data/app/lib/actions/pulp3/content_guard/refresh.rb +10 -6
- data/app/lib/actions/pulp3/content_view_version/create_export_history.rb +57 -0
- data/app/lib/actions/pulp3/content_view_version/create_import_history.rb +34 -0
- data/app/lib/actions/pulp3/orchestration/content_view_version/copy_version_units_to_library.rb +2 -3
- data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +34 -51
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +2 -2
- data/app/lib/actions/pulp3/orchestration/content_view_version/import.rb +13 -1
- data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/repository/sync.rb +1 -0
- data/app/lib/actions/pulp3/repository/refresh_remote.rb +17 -0
- data/app/lib/katello/agent/client_message_handler.rb +3 -11
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +117 -3
- data/app/lib/katello/errors.rb +6 -11
- data/app/lib/katello/event_daemon/monitor.rb +0 -1
- data/app/lib/katello/event_daemon/runner.rb +2 -2
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +10 -6
- data/app/lib/katello/http_resource.rb +1 -6
- data/app/lib/katello/logging.rb +11 -6
- data/app/lib/katello/qpid/connection.rb +1 -3
- data/app/lib/katello/repo_discovery.rb +15 -1
- data/app/lib/katello/resources/candlepin/owner.rb +3 -2
- data/app/lib/katello/resources/candlepin/pool.rb +6 -2
- data/app/lib/katello/resources/candlepin.rb +10 -0
- data/app/lib/katello/util/package.rb +1 -1
- data/app/lib/katello/util/pulpcore_content_filters.rb +1 -1
- data/app/lib/katello/validators/hostgroup_kickstart_repository_validator.rb +0 -6
- data/app/models/katello/authorization/content_view.rb +8 -0
- data/app/models/katello/authorization/content_view_version_import_history.rb +11 -0
- data/app/models/katello/concerns/content_facet_host_extensions.rb +1 -1
- data/app/models/katello/concerns/content_view_filter_rule_common.rb +2 -2
- data/app/models/katello/concerns/host_managed_extensions.rb +1 -32
- data/app/models/katello/concerns/hostgroup_extensions.rb +2 -9
- data/app/models/katello/concerns/http_proxy_extensions.rb +2 -4
- data/app/models/katello/concerns/location_extensions.rb +2 -25
- data/app/models/katello/concerns/operatingsystem_extensions.rb +0 -2
- data/app/models/katello/concerns/organization_extensions.rb +4 -18
- data/app/models/katello/concerns/redhat_extensions.rb +10 -18
- data/app/models/katello/concerns/smart_proxy_extensions.rb +6 -31
- data/app/models/katello/content_view.rb +17 -113
- data/app/models/katello/content_view_component.rb +5 -0
- data/app/models/katello/content_view_docker_filter_rule.rb +1 -0
- data/app/models/katello/content_view_package_filter_rule.rb +4 -0
- data/app/models/katello/content_view_package_group_filter.rb +1 -0
- data/app/models/katello/content_view_repository.rb +4 -5
- data/app/models/katello/content_view_version.rb +9 -33
- data/app/models/katello/content_view_version_export_history.rb +18 -4
- data/app/models/katello/content_view_version_import_history.rb +42 -0
- data/app/models/katello/erratum.rb +1 -1
- data/app/models/katello/events/delete_pool.rb +19 -0
- data/app/models/katello/glue/candlepin/environment.rb +7 -0
- data/app/models/katello/glue/candlepin/owner.rb +12 -1
- data/app/models/katello/glue/candlepin/pool.rb +42 -25
- data/app/models/katello/glue/provider.rb +3 -6
- data/app/models/katello/glue/pulp/repo.rb +19 -9
- data/app/models/katello/host/content_facet.rb +1 -0
- data/app/models/katello/host/subscription_facet.rb +3 -1
- data/app/models/katello/kt_environment.rb +0 -6
- data/app/models/katello/package_group.rb +4 -0
- data/app/models/katello/ping.rb +15 -4
- data/app/models/katello/pool.rb +9 -0
- data/app/models/katello/product.rb +0 -6
- data/app/models/katello/product_content.rb +3 -1
- data/app/models/katello/pulp_sync_status.rb +0 -10
- data/app/models/katello/repository.rb +20 -35
- data/app/models/katello/root_repository.rb +0 -5
- data/app/models/katello/subscription.rb +10 -0
- data/app/models/katello/sync_plan.rb +7 -0
- data/app/models/setting/content.rb +7 -8
- data/app/presenters/katello/content_view_version_compare_presenter.rb +2 -6
- data/app/presenters/katello/product_content_presenter.rb +3 -5
- data/app/services/cert/certs.rb +3 -7
- data/app/services/katello/applicability/applicable_content_helper.rb +1 -2
- data/app/services/katello/candlepin/event_handler.rb +22 -22
- data/app/services/katello/candlepin/message_handler.rb +24 -15
- data/app/services/katello/content_view_manager.rb +24 -0
- data/app/services/katello/event_monitor/poller_thread.rb +25 -20
- data/app/services/katello/managed_content_medium_provider.rb +4 -0
- data/app/services/katello/organization_creator.rb +120 -0
- data/app/services/katello/product_content_finder.rb +5 -1
- data/app/services/katello/pulp/pulp_content_unit.rb +6 -6
- data/app/services/katello/pulp/smart_proxy_repository.rb +2 -17
- data/app/services/katello/pulp3/api/ansible_collection.rb +14 -2
- data/app/services/katello/pulp3/api/apt.rb +1 -1
- data/app/services/katello/pulp3/api/content_guard.rb +6 -40
- data/app/services/katello/pulp3/api/core.rb +27 -2
- data/app/services/katello/pulp3/api/docker.rb +1 -1
- data/app/services/katello/pulp3/api/file.rb +5 -1
- data/app/services/katello/pulp3/api/yum.rb +9 -1
- data/app/services/katello/pulp3/content_view_version/export.rb +18 -40
- data/app/services/katello/pulp3/content_view_version/import.rb +75 -30
- data/app/services/katello/pulp3/content_view_version/import_gpg_keys.rb +32 -0
- data/app/services/katello/pulp3/content_view_version/import_validator.rb +53 -21
- data/app/services/katello/pulp3/content_view_version/importable_products.rb +47 -0
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb +52 -0
- data/app/services/katello/pulp3/content_view_version/metadata_generator.rb +99 -0
- data/app/services/katello/pulp3/pulp_content_unit.rb +1 -1
- data/app/services/katello/pulp3/repository/ansible_collection.rb +5 -1
- data/app/services/katello/pulp3/repository/apt.rb +2 -1
- data/app/services/katello/pulp3/repository/yum.rb +0 -16
- data/app/services/katello/pulp3/repository.rb +20 -1
- data/app/services/katello/pulp3/rpm.rb +5 -1
- data/app/services/katello/pulp3/task.rb +12 -5
- data/app/services/katello/pulp3/task_group.rb +10 -5
- data/app/services/katello/smart_proxy_helper.rb +1 -8
- data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +0 -1
- data/app/services/katello/ui_notifications/system_error.rb +25 -0
- data/app/views/katello/api/v2/content_view_components/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +0 -1
- data/app/views/katello/api/v2/{puppet_modules → content_view_version_import_histories}/index.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_version_import_histories/show.json.rabl +14 -0
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +2 -2
- data/app/views/katello/api/v2/content_view_versions/show.json.rabl +0 -7
- data/app/views/katello/api/v2/content_views/base.json.rabl +20 -9
- data/app/views/katello/api/v2/environments/show.json.rabl +0 -1
- data/app/views/katello/api/v2/package_groups/index.json.rabl +4 -0
- data/app/views/katello/api/v2/repositories/base.json.rabl +0 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repository_sets/index.json.rabl +4 -1
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +22 -0
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +1 -1
- data/app/views/overrides/activation_keys/_host_media_type_select.html.erb +1 -1
- data/app/views/overrides/smart_proxies/_download_policy.erb +1 -1
- data/config/initializers/monkeys.rb +0 -1
- data/config/katello.yaml.example +0 -1
- data/config/routes/api/v2.rb +9 -21
- data/config/routes/overrides.rb +1 -2
- data/db/migrate/20140422000001_update_products_add_organization.rb +3 -2
- data/db/migrate/20160701180402_add_sortable_version_to_puppet_modules.rb +2 -0
- data/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb +1 -1
- data/db/migrate/20210119162528_delete_puppet_and_ostree_repos.rb +14 -20
- data/db/migrate/20210224160921_remove_disabled_products_from_sync_plans.rb +6 -0
- data/db/migrate/20210302165636_remove_katello_puppet_modules.rb +62 -0
- data/db/migrate/20210309160925_create_katello_content_view_version_import_histories.rb +13 -0
- data/db/migrate/20210318204533_add_import_type_to_import_histories.rb +8 -0
- data/db/migrate/20210319123300_add_foreign_keys_to_import_export_histories.rb +6 -0
- data/db/migrate/20210322142311_add_auth_url_token_to_root_repositories.rb +6 -0
- data/db/migrate/20210331180353_katello_pool_organization_id_not_nullable.rb +16 -0
- data/db/migrate/20210409033915_add_created_in_katello_to_taxonomy.rb +9 -0
- data/db/seeds.d/101-locations.rb +0 -3
- data/db/seeds.d/102-organizations.rb +1 -5
- data/db/seeds.d/109-katello-notification-blueprints.rb +12 -0
- data/db/seeds.d/111-upgrade_tasks.rb +3 -2
- data/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js +325 -156
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-animate/angular-animate.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-resource/angular-resource.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-route/angular-route.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-sanitize/angular-sanitize.js +21 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +9 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-repository-sets.html +2 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +11 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +18 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html +10 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +7 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +14 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +5 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-repository-sets.controller.js +9 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-repository-sets.html +2 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -56
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +2 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +2 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +0 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/environments.html +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +21 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +71 -311
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +0 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +13 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +21 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +0 -6
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +3 -3
- data/lib/katello/engine.rb +16 -15
- data/lib/katello/middleware/organization_created_enforcer.rb +22 -0
- data/lib/katello/permission_creator.rb +12 -28
- data/lib/katello/permissions/host_permissions.rb +3 -2
- data/lib/katello/plugin.rb +6 -19
- data/lib/katello/repository_types/ansible_collection.rb +1 -1
- data/lib/katello/repository_types/deb.rb +1 -1
- data/lib/katello/repository_types/docker.rb +1 -1
- data/lib/katello/repository_types/file.rb +1 -1
- data/lib/katello/repository_types/yum.rb +1 -1
- data/lib/katello/tasks/clean_backend_objects.rake +25 -0
- data/lib/katello/tasks/jenkins.rake +6 -0
- data/lib/katello/tasks/receptor/extract_orgs.rake +1 -3
- data/lib/katello/tasks/reimport.rake +0 -1
- data/lib/katello/tasks/repository.rake +0 -30
- data/lib/katello/tasks/update_subscription_facet_backend_data.rake +3 -3
- data/lib/katello/tasks/upgrades/4.0/remove_ostree_puppet_content.rake +2 -4
- data/lib/katello/tasks/upgrades/4.1/fix_invalid_pools.rake +62 -0
- data/lib/katello/tasks/upgrades/4.1/sync_noarch_content.rake +15 -0
- data/lib/katello/version.rb +1 -1
- data/lib/katello.rb +1 -1
- data/locale/action_names.rb +65 -63
- data/locale/bn/katello.edit.po +1357 -1606
- data/locale/bn/katello.po +465 -744
- data/locale/cs/katello.edit.po +1213 -1087
- data/locale/cs/katello.po +307 -219
- data/locale/de/katello.edit.po +1498 -1520
- data/locale/de/katello.po +589 -625
- data/locale/en/katello.edit.po +1198 -1074
- data/locale/en/katello.po +304 -213
- data/locale/es/katello.edit.po +2344 -2304
- data/locale/es/katello.po +1407 -1407
- data/locale/fr/katello.edit.po +2720 -2642
- data/locale/fr/katello.po +1703 -1750
- data/locale/gu/katello.edit.po +1546 -1797
- data/locale/gu/katello.po +654 -935
- data/locale/hi/katello.edit.po +1545 -1793
- data/locale/hi/katello.po +653 -931
- data/locale/it/katello.edit.po +1323 -1310
- data/locale/it/katello.po +407 -409
- data/locale/ja/katello.edit.po +2645 -2557
- data/locale/ja/katello.po +1646 -1664
- data/locale/katello.pot +1435 -1289
- data/locale/kn/katello.edit.po +1546 -1795
- data/locale/kn/katello.po +654 -933
- data/locale/ko/katello.edit.po +1464 -1449
- data/locale/ko/katello.po +554 -554
- data/locale/mr/katello.edit.po +1545 -1758
- data/locale/mr/katello.po +653 -896
- data/locale/or/katello.edit.po +1546 -1795
- data/locale/or/katello.po +654 -933
- data/locale/pa/katello.edit.po +1541 -1775
- data/locale/pa/katello.po +649 -913
- data/locale/pt/katello.edit.po +1289 -1255
- data/locale/pt/katello.po +398 -394
- data/locale/pt_BR/katello.edit.po +2370 -2315
- data/locale/pt_BR/katello.po +1435 -1421
- data/locale/ru/katello.edit.po +1611 -1608
- data/locale/ru/katello.po +704 -716
- data/locale/ta/katello.edit.po +1358 -1605
- data/locale/ta/katello.po +465 -742
- data/locale/te/katello.edit.po +1545 -1792
- data/locale/te/katello.po +653 -930
- data/locale/zh_CN/katello.edit.po +3052 -2930
- data/locale/zh_CN/katello.po +2055 -2039
- data/locale/zh_TW/katello.edit.po +1571 -1669
- data/locale/zh_TW/katello.po +649 -777
- data/package.json +2 -2
- data/webpack/{scenes/ContentViews/Details/Repositories/RepoAddedStatus.js → components/AddedStatusLabel.js} +5 -5
- data/webpack/components/RoutedTabs/RoutedTabs.js +91 -0
- data/webpack/components/RoutedTabs/__tests__/RoutedTabs.test.js +32 -0
- data/webpack/components/RoutedTabs/index.js +4 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageConstants.js +2 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageHelpers.js +21 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageSelectors.js +21 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/ActivationKeys.test.js +18 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/Force.test.js +9 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/IgnoreSubmanErrors.test.js +9 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/LifeCycleEnvironment.test.js +11 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/ActivationKeys.test.js.snap +58 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/Force.test.js.snap +25 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/IgnoreSubmanErrors.test.js.snap +25 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/LifeCycleEnvironment.test.js.snap +27 -0
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +99 -0
- data/webpack/components/extensions/RegistrationCommands/fields/Force.js +38 -0
- data/webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js +38 -0
- data/webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js +56 -0
- data/webpack/components/extensions/RegistrationCommands/index.js +81 -0
- data/webpack/components/pf3Table/formatters/EntitlementsInlineEditFormatter.js +23 -24
- data/webpack/components/pf3Table/formatters/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap +3 -1
- data/webpack/components/pf3Table/formatters/entitlementsValueFormatter.js +16 -0
- data/webpack/containers/Application/overrides.scss +3 -0
- data/webpack/fills_index.js +3 -0
- data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +0 -2
- data/webpack/scenes/ContentViews/ContentViewsConstants.js +8 -1
- data/webpack/scenes/ContentViews/Copy/__tests__/contentViewCopyResult.fixtures.json +1 -3
- data/webpack/scenes/ContentViews/Create/__tests__/contentViewCreateResult.fixtures.json +1 -3
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js +28 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentVersion.js +45 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +124 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +161 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +163 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/unpublishedCVComponents.fixtures.json +64 -0
- data/webpack/scenes/ContentViews/Details/ContentViewDetailActions.js +67 -7
- data/webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js +61 -4
- data/webpack/scenes/ContentViews/Details/ContentViewDetails.js +34 -11
- data/webpack/scenes/ContentViews/Details/Filters/CVFilterDetailType.js +33 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js +117 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js +115 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentType.js +7 -10
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilterDetails.js +49 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilterDetailsHeader.js +56 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilters.js +3 -17
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVRpmFilterContent.test.js +116 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/allFilterPackageGroups.fixtures.json +69 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetail.fixtures.json +103 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetails.test.js +116 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvPackageFilterDetail.fixtures.json +147 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvPackageFilterRules.fixtures.json +30 -0
- data/webpack/scenes/ContentViews/Details/Histories/ContentViewHistories.js +136 -0
- data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.fixtures.json +370 -0
- data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.test.js +94 -0
- data/webpack/scenes/ContentViews/Details/Repositories/ContentCounts.js +0 -1
- data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +106 -13
- data/webpack/scenes/ContentViews/Details/Repositories/LastSync.js +11 -5
- data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +5 -1
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js +138 -0
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewDetailRepos.fixtures.json +0 -2
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewDetailRepos.test.js +1 -1
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewRepoAdd.fixture.json +57 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionContent.js +73 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionEnvironments.js +31 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.js +64 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss +8 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionPackages.js +0 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +105 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +728 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +154 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/emptyCVVersion.fixtures.json +13 -0
- data/webpack/scenes/ContentViews/Details/__tests__/contentViewDetail.test.js +3 -1
- data/webpack/scenes/ContentViews/Details/__tests__/contentViewDetails.fixtures.json +0 -2
- data/webpack/scenes/ContentViews/Table/ContentViewVersionCell.js +33 -0
- data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +17 -22
- data/webpack/scenes/ContentViews/Table/tableDataGenerator.js +51 -102
- data/webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js +5 -3
- data/webpack/scenes/ContentViews/__tests__/contentViewList.fixtures.json +30 -5
- data/webpack/scenes/ContentViews/__tests__/contentViewPage.test.js +95 -0
- data/webpack/scenes/ContentViews/components/ContentViewIcon.js +11 -5
- data/webpack/scenes/ContentViews/components/EnvironmentLabels.js +16 -0
- data/webpack/scenes/ContentViews/components/IconWithCount.js +1 -1
- data/webpack/scenes/ContentViews/components/InactiveText.js +15 -0
- data/webpack/scenes/ContentViews/expansions/DetailsExpansion.js +19 -1
- data/webpack/scenes/Subscriptions/Details/SubscriptionPurposeAttributes.js +1 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +1 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +3 -3
- data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +17 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +2 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +144 -0
- data/webpack/scenes/Tasks/helpers.js +2 -2
- data/webpack/test-utils/react-testing-lib-wrapper.js +11 -3
- data/webpack/utils/__tests__/useParamsWithHash.test.js +22 -0
- data/webpack/utils/helpers.js +2 -0
- data/webpack/utils/paramsFromHash.js +16 -0
- data/webpack/utils/useUrlParams.js +14 -0
- metadata +122 -206
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +0 -82
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
- data/app/controllers/katello/concerns/registration_controller_extensions.rb +0 -16
- data/app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb +0 -20
- data/app/lib/actions/candlepin/owner/create.rb +0 -16
- data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -11
- data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +0 -78
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content_for_version.rb +0 -20
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -34
- data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -23
- data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -28
- data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -46
- data/app/lib/actions/katello/environment/library_create.rb +0 -35
- data/app/lib/actions/katello/organization/create.rb +0 -38
- data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +0 -36
- data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +0 -19
- data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +0 -54
- data/app/lib/actions/pulp3/content_migration.rb +0 -31
- data/app/lib/actions/pulp3/content_migration_presenter.rb +0 -59
- data/app/lib/actions/pulp3/content_migration_reset.rb +0 -22
- data/app/lib/katello/foreman.rb +0 -32
- data/app/lib/katello/mapping.rb +0 -31
- data/app/lib/katello/util/hostgroup_facets_helper.rb +0 -126
- data/app/lib/katello/validators/content_view_puppet_module_validator.rb +0 -32
- data/app/models/katello/concerns/environment_extensions.rb +0 -74
- data/app/models/katello/content_view_puppet_environment.rb +0 -116
- data/app/models/katello/content_view_puppet_environment_puppet_module.rb +0 -11
- data/app/models/katello/content_view_puppet_module.rb +0 -63
- data/app/models/katello/puppet_module.rb +0 -77
- data/app/models/katello/repository_puppet_module.rb +0 -7
- data/app/services/katello/pulp/puppet_module.rb +0 -21
- data/app/services/katello/pulp/repository/puppet.rb +0 -68
- data/app/services/katello/pulp3/migration.rb +0 -329
- data/app/services/katello/pulp3/migration_plan.rb +0 -178
- data/app/services/katello/pulp3/migration_switchover.rb +0 -126
- data/app/services/katello/puppet_class_importer_extensions.rb +0 -32
- data/app/views/foreman/hosts/_registration.html.erb +0 -12
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +0 -30
- data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +0 -3
- data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +0 -7
- data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -9
- data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +0 -7
- data/app/views/katello/api/v2/host_subscriptions/content_override.json.rabl +0 -3
- data/app/views/katello/api/v2/host_subscriptions/product_content.json.rabl +0 -29
- data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +0 -7
- data/app/views/katello/api/v2/puppet_modules/base.json.rabl +0 -9
- data/app/views/katello/api/v2/puppet_modules/compare.json.rabl +0 -10
- data/app/views/katello/api/v2/puppet_modules/name.json.rabl +0 -3
- data/app/views/katello/api/v2/puppet_modules/names.json.rabl +0 -7
- data/app/views/katello/api/v2/puppet_modules/show.json.rabl +0 -4
- data/db/migrate/20210512192745_fix_red_hat_root_repository_arch.rb +0 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register-client.directive.js +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register-os-client.directive.js +0 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-client.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-deb-client.html +0 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-oracle-client.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-sles-client.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +0 -61
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +0 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +0 -74
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +0 -57
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-versions.html +0 -64
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +0 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-puppet-modules.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +0 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +0 -6903
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +0 -7094
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +0 -7303
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +0 -6895
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +0 -6865
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +0 -6720
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +0 -7077
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +0 -6832
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +0 -6766
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +0 -6703
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-puppet-modules.html +0 -66
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-content-views.controller.js +0 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-repositories.controller.js +0 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-content-views.html +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-info.html +0 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-repositories.html +0 -52
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module.html +0 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +0 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +0 -71
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +0 -47
- data/lib/katello/repository_types/puppet.rb +0 -5
- data/lib/katello/tasks/fix_hostgroup_facets.rake +0 -8
- data/lib/katello/tasks/pulp3_content_switchover.rake +0 -32
- data/lib/katello/tasks/pulp3_migration.rake +0 -41
- data/lib/katello/tasks/pulp3_migration_abort.rake +0 -22
- data/lib/katello/tasks/pulp3_migration_reset.rake +0 -26
- data/lib/katello/tasks/pulp3_migration_stats.rake +0 -41
- data/lib/katello/tasks/pulp3_post_migration_check.rake +0 -51
- data/lib/monkeys/passenger_tee_input.rb +0 -20
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/webpack/components/TabWrapper/TabWrapper.js +0 -26
- data/webpack/components/TabWrapper/index.js +0 -3
- data/webpack/components/TabbedView/TabbedView.js +0 -38
- data/webpack/components/TabbedView/TabbedView.scss +0 -3
- data/webpack/components/TabbedView/index.js +0 -3
- data/webpack/scenes/ContentViews/expansions/EnvironmentsExpansion.js +0 -19
- data/webpack/scenes/ContentViews/expansions/VersionsExpansion.js +0 -11
@@ -2,10 +2,12 @@ module Katello
|
|
2
2
|
module Candlepin
|
3
3
|
class MessageHandler
|
4
4
|
# Service to handle parsing the messages we receive from candlepin
|
5
|
-
|
5
|
+
attr_reader :subscription_facet, :message, :pool
|
6
6
|
|
7
7
|
def initialize(message)
|
8
8
|
@message = message
|
9
|
+
@subscription_facet = ::Katello::Host::SubscriptionFacet.find_by_uuid(consumer_uuid) if consumer_uuid
|
10
|
+
@pool = ::Katello::Pool.find_by_cp_id(pool_id) if pool_id
|
9
11
|
end
|
10
12
|
|
11
13
|
def subject
|
@@ -20,6 +22,10 @@ module Katello
|
|
20
22
|
@event_data ||= (data = content['eventData']) ? JSON.parse(data) : {}
|
21
23
|
end
|
22
24
|
|
25
|
+
def entity_id
|
26
|
+
content['entityId']
|
27
|
+
end
|
28
|
+
|
23
29
|
def target_name
|
24
30
|
content['targetName']
|
25
31
|
end
|
@@ -51,18 +57,9 @@ module Katello
|
|
51
57
|
end
|
52
58
|
end
|
53
59
|
|
54
|
-
def pool
|
55
|
-
Katello::Pool.find_by(:cp_id => pool_id)
|
56
|
-
end
|
57
|
-
|
58
|
-
def subscription_facet
|
59
|
-
return nil if self.consumer_uuid.nil?
|
60
|
-
::Katello::Host::SubscriptionFacet.where(uuid: self.consumer_uuid).first
|
61
|
-
end
|
62
|
-
|
63
60
|
def create_pool_on_host
|
64
|
-
return if self.subscription_facet.nil?
|
65
|
-
old_host_ids =
|
61
|
+
return if self.subscription_facet.nil? || pool.nil?
|
62
|
+
old_host_ids = subscription_facet_host_ids
|
66
63
|
::Katello::SubscriptionFacetPool.where(subscription_facet_id: self.subscription_facet.id,
|
67
64
|
pool_id: pool.id).first_or_create
|
68
65
|
pool.import_audit_record(old_host_ids)
|
@@ -70,7 +67,7 @@ module Katello
|
|
70
67
|
|
71
68
|
def remove_pool_from_host
|
72
69
|
return if self.subscription_facet.nil? || pool.nil?
|
73
|
-
old_host_ids =
|
70
|
+
old_host_ids = subscription_facet_host_ids
|
74
71
|
::Katello::SubscriptionFacetPool.where(subscription_facet_id: self.subscription_facet.id,
|
75
72
|
pool_id: pool.id).destroy_all
|
76
73
|
pool.import_audit_record(old_host_ids)
|
@@ -80,13 +77,19 @@ module Katello
|
|
80
77
|
if pool
|
81
78
|
::Katello::EventQueue.push_event(::Katello::Events::ImportPool::EVENT_TYPE, pool.id)
|
82
79
|
else
|
83
|
-
|
80
|
+
begin
|
81
|
+
::Katello::Pool.import_pool(pool_id, index_hosts)
|
82
|
+
rescue ActiveRecord::RecordInvalid
|
83
|
+
# if we hit this block it's likely that the pool's subscription, product are being created
|
84
|
+
# as a result of manifest import/refresh or custom product creation
|
85
|
+
Rails.logger.warn("Unable to import pool. It will likely be created by another process.")
|
86
|
+
end
|
84
87
|
end
|
85
88
|
end
|
86
89
|
|
87
90
|
def delete_pool
|
88
91
|
if Katello::Pool.where(:cp_id => pool_id).destroy_all.any?
|
89
|
-
Rails.logger.info "
|
92
|
+
Rails.logger.info "Deleted Katello::Pool with cp_id=#{pool_id}"
|
90
93
|
end
|
91
94
|
end
|
92
95
|
|
@@ -119,6 +122,12 @@ module Katello
|
|
119
122
|
|
120
123
|
org.simple_content_access?(cached: false)
|
121
124
|
end
|
125
|
+
|
126
|
+
private
|
127
|
+
|
128
|
+
def subscription_facet_host_ids
|
129
|
+
::Katello::SubscriptionFacetPool.where(pool_id: pool_id).joins(:subscription_facet).pluck(:host_id)
|
130
|
+
end
|
122
131
|
end
|
123
132
|
end
|
124
133
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Katello
|
2
|
+
class ContentViewManager
|
3
|
+
def self.add_version_to_environment(content_view_version:, environment:)
|
4
|
+
content_view = content_view_version.content_view
|
5
|
+
if (cve = content_view.content_view_environment(environment))
|
6
|
+
content_view_version.content_view_environments << cve
|
7
|
+
else
|
8
|
+
cve = content_view.add_environment(environment, content_view_version)
|
9
|
+
end
|
10
|
+
cve
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.create_candlepin_environment(content_view_environment:)
|
14
|
+
unless content_view_environment.exists_in_candlepin?
|
15
|
+
::Katello::Resources::Candlepin::Environment.create(
|
16
|
+
content_view_environment.content_view.organization.label,
|
17
|
+
content_view_environment.cp_id,
|
18
|
+
content_view_environment.label,
|
19
|
+
content_view_environment.content_view.description.try(:truncate, 255)
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -51,29 +51,34 @@ module Katello
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def run_event(event)
|
54
|
-
|
54
|
+
Katello::Logging.time("katello event handled") do |data|
|
55
|
+
data[:type] = event.event_type
|
56
|
+
data[:object_id] = event.object_id
|
57
|
+
data[:expired] = false
|
58
|
+
data[:rescheduled] = false
|
55
59
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
60
|
+
event_instance = nil
|
61
|
+
begin
|
62
|
+
::User.as_anonymous_admin do
|
63
|
+
event_instance = ::Katello::EventQueue.create_instance(event)
|
64
|
+
event_instance.run
|
65
|
+
end
|
66
|
+
rescue => e
|
67
|
+
@failed_count += 1
|
68
|
+
@logger.error("event_queue_error: type=#{event.event_type}, object_id=#{event.object_id}")
|
69
|
+
@logger.error(e.message)
|
70
|
+
@logger.error(e.backtrace.join("\n"))
|
71
|
+
ensure
|
72
|
+
if event_instance.try(:retry)
|
73
|
+
result = ::Katello::EventQueue.reschedule_event(event)
|
74
|
+
if result == :expired
|
75
|
+
@logger.warn("event_queue_event_expired: type=#{event.event_type} object_id=#{event.object_id}")
|
76
|
+
elsif !result.nil?
|
77
|
+
@logger.warn("event_queue_rescheduled: type=#{event.event_type} object_id=#{event.object_id}")
|
78
|
+
end
|
74
79
|
end
|
80
|
+
::Katello::EventQueue.clear_events(event.event_type, event.object_id, event.created_at)
|
75
81
|
end
|
76
|
-
::Katello::EventQueue.clear_events(event.event_type, event.object_id, event.created_at)
|
77
82
|
end
|
78
83
|
end
|
79
84
|
|
@@ -0,0 +1,120 @@
|
|
1
|
+
module Katello
|
2
|
+
class OrganizationCreator
|
3
|
+
attr_reader :library_view, :library_environment, :library_cvv, :content_view_environment, :anonymous_provider, :redhat_provider
|
4
|
+
|
5
|
+
def self.seed_all_organizations!
|
6
|
+
User.as_anonymous_admin do
|
7
|
+
Organization.not_created_in_katello.each do |org|
|
8
|
+
self.new(org).seed!
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.create_all_organizations!
|
14
|
+
Katello::Ping.ping!(services: [:candlepin])
|
15
|
+
|
16
|
+
User.as_anonymous_admin do
|
17
|
+
Organization.not_created_in_katello.each do |org|
|
18
|
+
creator = self.new(org)
|
19
|
+
creator.create!
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def initialize(organization)
|
25
|
+
@organization = organization
|
26
|
+
end
|
27
|
+
|
28
|
+
def seed!
|
29
|
+
ActiveRecord::Base.transaction do
|
30
|
+
@organization.setup_label_from_name
|
31
|
+
@organization.save!
|
32
|
+
|
33
|
+
create_library_environment
|
34
|
+
create_library_view
|
35
|
+
create_library_cvv
|
36
|
+
create_content_view_environment
|
37
|
+
create_anonymous_provider
|
38
|
+
create_redhat_provider
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def create!
|
43
|
+
ActiveRecord::Base.transaction do
|
44
|
+
seed!
|
45
|
+
|
46
|
+
create_backend_objects!
|
47
|
+
|
48
|
+
@organization.created_in_katello = true
|
49
|
+
@organization.save!
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def create_backend_objects!
|
54
|
+
Katello::Ping.ping!(services: [:candlepin])
|
55
|
+
|
56
|
+
if needs_candlepin_organization?
|
57
|
+
::Katello::Resources::Candlepin::Owner.create(@organization.label, @organization.name)
|
58
|
+
end
|
59
|
+
|
60
|
+
::Katello::ContentViewManager.create_candlepin_environment(
|
61
|
+
content_view_environment: @content_view_environment
|
62
|
+
)
|
63
|
+
|
64
|
+
@organization.debug_cert # trigger creation
|
65
|
+
end
|
66
|
+
|
67
|
+
def needs_candlepin_organization?
|
68
|
+
!@organization.candlepin_owner_exists?
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def create_content_view_environment
|
74
|
+
@content_view_environment ||= ::Katello::ContentViewManager.add_version_to_environment(
|
75
|
+
content_view_version: @library_cvv,
|
76
|
+
environment: @library_environment
|
77
|
+
)
|
78
|
+
end
|
79
|
+
|
80
|
+
def create_library_environment
|
81
|
+
@library_environment = Katello::KTEnvironment.where(
|
82
|
+
:name => "Library",
|
83
|
+
:label => "Library",
|
84
|
+
:library => true,
|
85
|
+
:organization => @organization
|
86
|
+
).first_or_create!
|
87
|
+
end
|
88
|
+
|
89
|
+
def create_library_view
|
90
|
+
@library_view = Katello::ContentView.where(
|
91
|
+
default: true,
|
92
|
+
name: 'Default Organization View',
|
93
|
+
organization: @organization
|
94
|
+
).first_or_create!
|
95
|
+
end
|
96
|
+
|
97
|
+
def create_library_cvv
|
98
|
+
@library_cvv = Katello::ContentViewVersion.where(
|
99
|
+
content_view: @library_view,
|
100
|
+
major: 1
|
101
|
+
).first_or_create!
|
102
|
+
end
|
103
|
+
|
104
|
+
def create_redhat_provider
|
105
|
+
@redhat_provider = Katello::Provider.where(
|
106
|
+
:name => "Red Hat",
|
107
|
+
:provider_type => Katello::Provider::REDHAT,
|
108
|
+
organization: @organization
|
109
|
+
).first_or_create!
|
110
|
+
end
|
111
|
+
|
112
|
+
def create_anonymous_provider
|
113
|
+
@anonymous_provider = Katello::Provider.where(
|
114
|
+
:name => Katello::Provider::ANONYMOUS,
|
115
|
+
:provider_type => Katello::Provider::ANONYMOUS,
|
116
|
+
organization: @organization
|
117
|
+
).first_or_create!
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -18,7 +18,7 @@ module Katello
|
|
18
18
|
if match_environment
|
19
19
|
environment = consumable.lifecycle_environment
|
20
20
|
view = consumable.content_view
|
21
|
-
return
|
21
|
+
return ProductContent.none unless environment && view
|
22
22
|
version = ContentViewVersion.in_environment(environment).where(:content_view_id => view).first
|
23
23
|
end
|
24
24
|
|
@@ -30,6 +30,10 @@ module Katello
|
|
30
30
|
consumable.organization.enabled_product_content_for(roots)
|
31
31
|
end
|
32
32
|
|
33
|
+
def self.wrap_with_overrides(product_contents:, overrides:)
|
34
|
+
product_contents.map { |pc| ProductContentPresenter.new(pc, overrides) }
|
35
|
+
end
|
36
|
+
|
33
37
|
def presenter_with_overrides(overrides)
|
34
38
|
product_content.map { |pc| ProductContentPresenter.new(pc, overrides) }
|
35
39
|
end
|
@@ -46,7 +46,7 @@ module Katello
|
|
46
46
|
Katello.pulp_server.extensions.send(self.name.demodulize.underscore)
|
47
47
|
end
|
48
48
|
|
49
|
-
def self.pulp_units_batch_all(unit_ids = nil, page_size =
|
49
|
+
def self.pulp_units_batch_all(unit_ids = nil, page_size = Setting[:bulk_load_size])
|
50
50
|
fields = self.const_get(:PULP_INDEXED_FIELDS) if self.constants.include?(:PULP_INDEXED_FIELDS)
|
51
51
|
criteria = {:limit => page_size, :skip => 0}
|
52
52
|
criteria[:fields] = fields if fields
|
@@ -58,7 +58,7 @@ module Katello
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.pulp_units_batch_for_repo(repository, options = {})
|
61
|
-
page_size = options.fetch(:page_size,
|
61
|
+
page_size = options.fetch(:page_size, Setting[:bulk_load_size])
|
62
62
|
|
63
63
|
fields = self.const_get(:PULP_INDEXED_FIELDS) if self.constants.include?(:PULP_INDEXED_FIELDS)
|
64
64
|
criteria = {:type_ids => [const_get(:CONTENT_TYPE)], :limit => page_size, :skip => 0}
|
@@ -69,7 +69,7 @@ module Katello
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
def self.pulp_units_batch(criteria, page_size =
|
72
|
+
def self.pulp_units_batch(criteria, page_size = Setting[:bulk_load_size], &block)
|
73
73
|
response = {}
|
74
74
|
Enumerator.new do |yielder|
|
75
75
|
loop do
|
@@ -84,7 +84,7 @@ module Katello
|
|
84
84
|
def self.fetch_all
|
85
85
|
count = 0
|
86
86
|
results = []
|
87
|
-
sub_list = fetch(0,
|
87
|
+
sub_list = fetch(0, Setting[:bulk_load_size])
|
88
88
|
|
89
89
|
until sub_list.empty? #we can't know how many there are, so we have to keep looping until we get nothing
|
90
90
|
count += sub_list.count
|
@@ -95,14 +95,14 @@ module Katello
|
|
95
95
|
results.concat(sub_list)
|
96
96
|
end
|
97
97
|
|
98
|
-
sub_list = fetch(count,
|
98
|
+
sub_list = fetch(count, Setting[:bulk_load_size])
|
99
99
|
end
|
100
100
|
results
|
101
101
|
end
|
102
102
|
|
103
103
|
def self.fetch_by_uuids(uuids)
|
104
104
|
results = []
|
105
|
-
uuids.each_slice(
|
105
|
+
uuids.each_slice(Setting[:bulk_load_size]) do |sub_list|
|
106
106
|
fetched = fetch(0, sub_list.length, sub_list)
|
107
107
|
if block_given?
|
108
108
|
value = yield(fetched)
|
@@ -17,8 +17,7 @@ module Katello
|
|
17
17
|
|
18
18
|
def current_repositories(environment_id = nil, content_view_id = nil)
|
19
19
|
yum_repos = current_yum_repos(environment_id, content_view_id) || []
|
20
|
-
|
21
|
-
yum_repos + puppet_envs
|
20
|
+
yum_repos
|
22
21
|
end
|
23
22
|
|
24
23
|
def current_yum_repos(environment_id = nil, content_view_id = nil)
|
@@ -32,22 +31,12 @@ module Katello
|
|
32
31
|
katello_repos.where(:pulp_id => pulp_repo_ids)
|
33
32
|
end
|
34
33
|
|
35
|
-
def current_puppet_environments(environment_id = nil, content_view_id = nil)
|
36
|
-
puppet_repos = Katello::ContentViewPuppetEnvironment.all
|
37
|
-
puppet_repos = puppet_repos.where(:environment_id => environment_id) if environment_id
|
38
|
-
puppet_repos = puppet_repos.in_content_view(content_view_id) if content_view_id
|
39
|
-
|
40
|
-
pulp_repos = self.smart_proxy.pulp_api.extensions.repository.search_by_repository_ids(puppet_repos.pluck(:pulp_id))
|
41
|
-
|
42
|
-
puppet_repos.where(:pulp_id => pulp_repos.map { |pulp_repo| pulp_repo['id'] })
|
43
|
-
end
|
44
|
-
|
45
34
|
def orphaned_repos
|
46
35
|
@smart_proxy.pulp_repositories.map { |x| x["id"] } - repos_available_to_capsule.map { |x| x.pulp_id }
|
47
36
|
end
|
48
37
|
|
49
38
|
def repos_available_to_capsule
|
50
|
-
yum_repos_available_to_capsule
|
39
|
+
yum_repos_available_to_capsule
|
51
40
|
end
|
52
41
|
|
53
42
|
def yum_repos_available_to_capsule
|
@@ -55,10 +44,6 @@ module Katello
|
|
55
44
|
yum_repos.find_all { |repo| repo.node_syncable? }
|
56
45
|
end
|
57
46
|
|
58
|
-
def puppet_environments_available_to_capsule
|
59
|
-
Katello::ContentViewPuppetEnvironment.in_environment(@smart_proxy.lifecycle_environments)
|
60
|
-
end
|
61
|
-
|
62
47
|
def delete_orphaned_repos
|
63
48
|
orphaned_repos.map { |repo| self.smart_proxy.pulp_api.extensions.repository.delete(repo) }.compact
|
64
49
|
end
|
@@ -21,11 +21,19 @@ module Katello
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.repository_sync_url_class
|
24
|
-
PulpAnsibleClient::
|
24
|
+
PulpAnsibleClient::AnsibleRepositorySyncURL
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.copy_class
|
28
|
+
PulpAnsibleClient::Copy
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.add_remove_content_class
|
32
|
+
PulpAnsibleClient::RepositoryAddRemoveContent
|
25
33
|
end
|
26
34
|
|
27
35
|
def api_client
|
28
|
-
PulpAnsibleClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpAnsibleClient::Configuration))
|
36
|
+
api_client_class(PulpAnsibleClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpAnsibleClient::Configuration)))
|
29
37
|
end
|
30
38
|
|
31
39
|
def repositories_api
|
@@ -43,6 +51,10 @@ module Katello
|
|
43
51
|
def distributions_api
|
44
52
|
PulpAnsibleClient::DistributionsAnsibleApi.new(api_client)
|
45
53
|
end
|
54
|
+
|
55
|
+
def copy_api
|
56
|
+
PulpAnsibleClient::AnsibleCopyApi.new(api_client)
|
57
|
+
end
|
46
58
|
end
|
47
59
|
end
|
48
60
|
end
|
@@ -29,7 +29,7 @@ module Katello
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def api_client
|
32
|
-
PulpDebClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpDebClient::Configuration))
|
32
|
+
api_client_class(PulpDebClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpDebClient::Configuration)))
|
33
33
|
end
|
34
34
|
|
35
35
|
def repositories_api
|
@@ -4,10 +4,6 @@ module Katello
|
|
4
4
|
module Pulp3
|
5
5
|
module Api
|
6
6
|
class ContentGuard < Core
|
7
|
-
def default_name
|
8
|
-
'RHSMCertGuard'
|
9
|
-
end
|
10
|
-
|
11
7
|
def self.client_module
|
12
8
|
PulpCertguardClient
|
13
9
|
end
|
@@ -17,56 +13,26 @@ module Katello
|
|
17
13
|
end
|
18
14
|
|
19
15
|
def api_client
|
20
|
-
PulpCertguardClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpCertguardClient::Configuration))
|
16
|
+
api_client_class(PulpCertguardClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpCertguardClient::Configuration)))
|
21
17
|
end
|
22
18
|
|
23
19
|
def rhsm_api_client
|
24
20
|
PulpCertguardClient::ContentguardsRhsmApi.new(api_client)
|
25
21
|
end
|
26
22
|
|
27
|
-
def ca_cert
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
def refresh
|
32
|
-
found = list(name: default_name).results.first
|
33
|
-
if found && found.ca_certificate != ca_cert
|
34
|
-
partial_update(found.pulp_href)
|
35
|
-
else
|
36
|
-
found = create
|
37
|
-
end
|
38
|
-
persist_if_needed(found.pulp_href)
|
39
|
-
end
|
40
|
-
|
41
|
-
def persist_if_needed(href)
|
42
|
-
return if self.smart_proxy.pulp_mirror?
|
43
|
-
Katello::Util::Support.active_record_retry do
|
44
|
-
found = Katello::Pulp3::ContentGuard.find_by(:name => default_name)
|
45
|
-
if found
|
46
|
-
found.update(pulp_href: href)
|
47
|
-
else
|
48
|
-
Katello::Pulp3::ContentGuard.create(name: default_name, pulp_href: href)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def create(name = default_name)
|
54
|
-
data = PulpCertguardClient::CertguardRHSMCertGuard.new(name: name, ca_certificate: ca_cert)
|
23
|
+
def create(name = "RHSMCertGuard", ca_certificate = Cert::Certs.ca_cert)
|
24
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new(name: name, ca_certificate: ca_certificate)
|
55
25
|
rhsm_api_client.create(data)
|
56
26
|
rescue self.class.api_exception_class => e
|
57
|
-
|
58
|
-
found
|
59
|
-
else
|
60
|
-
raise e
|
61
|
-
end
|
27
|
+
raise e unless list&.results&.first
|
62
28
|
end
|
63
29
|
|
64
30
|
def list(options = {})
|
65
31
|
rhsm_api_client.list options
|
66
32
|
end
|
67
33
|
|
68
|
-
def partial_update(href)
|
69
|
-
data = PulpCertguardClient::CertguardRHSMCertGuard.new(ca_certificate:
|
34
|
+
def partial_update(href, ca_certificate = Cert::Certs.ca_cert)
|
35
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new(ca_certificate: ca_certificate)
|
70
36
|
rhsm_api_client.partial_update(href, data)
|
71
37
|
end
|
72
38
|
|
@@ -58,6 +58,20 @@ module Katello
|
|
58
58
|
fail NotImplementedError
|
59
59
|
end
|
60
60
|
|
61
|
+
def self.ignore_409_exception(*)
|
62
|
+
yield
|
63
|
+
rescue => e
|
64
|
+
raise e unless e&.code == 409
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
|
68
|
+
def cancel_task(task_href)
|
69
|
+
data = PulpcoreClient::TaskResponse.new(state: 'canceled')
|
70
|
+
self.class.ignore_409_exception do
|
71
|
+
tasks_api.tasks_cancel(task_href, data)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
61
75
|
def exporter_api
|
62
76
|
PulpcoreClient::ExportersPulpApi.new(core_api_client)
|
63
77
|
end
|
@@ -66,6 +80,10 @@ module Katello
|
|
66
80
|
PulpcoreClient::ImportersPulpApi.new(core_api_client)
|
67
81
|
end
|
68
82
|
|
83
|
+
def importer_check_api
|
84
|
+
PulpcoreClient::ImportersCoreImportCheckApi.new(core_api_client)
|
85
|
+
end
|
86
|
+
|
69
87
|
def export_api
|
70
88
|
PulpcoreClient::ExportersCoreExportsApi.new(core_api_client)
|
71
89
|
end
|
@@ -79,7 +97,14 @@ module Katello
|
|
79
97
|
end
|
80
98
|
|
81
99
|
def core_api_client
|
82
|
-
PulpcoreClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpcoreClient::Configuration))
|
100
|
+
client = PulpcoreClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpcoreClient::Configuration))
|
101
|
+
api_client_class(client)
|
102
|
+
end
|
103
|
+
|
104
|
+
def api_client_class(client)
|
105
|
+
request_id = ::Logging.mdc['request']
|
106
|
+
client.default_headers['Correlation-ID'] = request_id if request_id
|
107
|
+
client
|
83
108
|
end
|
84
109
|
|
85
110
|
def uploads_api
|
@@ -171,7 +196,7 @@ module Katello
|
|
171
196
|
end
|
172
197
|
|
173
198
|
def self.fetch_from_list
|
174
|
-
page_size =
|
199
|
+
page_size = Setting[:bulk_load_size]
|
175
200
|
page_opts = { "offset" => 0, limit: page_size }
|
176
201
|
response = {}
|
177
202
|
|
@@ -37,7 +37,7 @@ module Katello
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def api_client
|
40
|
-
PulpContainerClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpContainerClient::Configuration))
|
40
|
+
api_client_class(PulpContainerClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpContainerClient::Configuration)))
|
41
41
|
end
|
42
42
|
|
43
43
|
def repositories_api
|
@@ -28,8 +28,12 @@ module Katello
|
|
28
28
|
PulpFileClient::RepositorySyncURL
|
29
29
|
end
|
30
30
|
|
31
|
+
def self.add_remove_content_class
|
32
|
+
PulpFileClient::RepositoryAddRemoveContent
|
33
|
+
end
|
34
|
+
|
31
35
|
def api_client
|
32
|
-
PulpFileClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpFileClient::Configuration))
|
36
|
+
api_client_class(PulpFileClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpFileClient::Configuration)))
|
33
37
|
end
|
34
38
|
|
35
39
|
def repositories_api
|
@@ -32,8 +32,16 @@ module Katello
|
|
32
32
|
PulpRpmClient::RpmPackageGroup
|
33
33
|
end
|
34
34
|
|
35
|
+
def self.copy_class
|
36
|
+
PulpRpmClient::Copy
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.add_remove_content_class
|
40
|
+
PulpRpmClient::RepositoryAddRemoveContent
|
41
|
+
end
|
42
|
+
|
35
43
|
def api_client
|
36
|
-
PulpRpmClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpRpmClient::Configuration))
|
44
|
+
api_client_class(PulpRpmClient::ApiClient.new(smart_proxy.pulp3_configuration(PulpRpmClient::Configuration)))
|
37
45
|
end
|
38
46
|
|
39
47
|
def repositories_api
|