katello 3.4.0.rc2 → 3.4.0

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.

Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb +43 -0
  3. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +20 -14
  4. data/app/controllers/katello/api/v2/content_views_controller.rb +2 -2
  5. data/app/controllers/katello/api/v2/errata_controller.rb +1 -0
  6. data/app/controllers/katello/api/v2/packages_controller.rb +6 -2
  7. data/app/lib/actions/candlepin/async_hypervisors.rb +22 -0
  8. data/app/lib/actions/candlepin/import_pool_handler.rb +19 -23
  9. data/app/lib/actions/katello/capsule_content/sync.rb +1 -0
  10. data/app/lib/actions/katello/host/hypervisors.rb +16 -4
  11. data/app/lib/actions/katello/host/hypervisors_update.rb +2 -2
  12. data/app/lib/actions/katello/host/upload_package_profile.rb +13 -6
  13. data/app/lib/actions/katello/repository/remove_content.rb +8 -8
  14. data/app/lib/actions/middleware/backend_services_check.rb +2 -2
  15. data/app/lib/katello/capsule_content.rb +6 -0
  16. data/app/lib/katello/resources/candlepin.rb +12 -7
  17. data/app/models/katello/concerns/organization_extensions.rb +4 -0
  18. data/app/models/katello/events/import_pool.rb +17 -0
  19. data/app/models/katello/glue/candlepin/owner.rb +4 -0
  20. data/app/models/katello/host/subscription_facet.rb +9 -2
  21. data/app/models/katello/ping.rb +4 -4
  22. data/app/models/katello/subscription_status.rb +5 -2
  23. data/app/services/cert/certs.rb +7 -0
  24. data/config/routes/api/rhsm.rb +4 -2
  25. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +2 -1
  26. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +4 -6
  27. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +2 -2
  28. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +1 -1
  29. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +1 -0
  30. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +1 -1
  31. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -1
  32. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +1 -1
  33. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-environments.html +4 -11
  34. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/new-gpg-key.html +1 -1
  35. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/new-host-collection.html +1 -1
  36. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +1 -1
  37. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
  38. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-sync-plan-modal.controller.js +46 -0
  39. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +15 -2
  40. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/new-sync-plan-modal.html +18 -0
  41. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new-form.html +40 -38
  42. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.routes.js +0 -19
  43. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/content-access-mode-banner.directive.js +22 -0
  44. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +2 -1
  45. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +1 -1
  46. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +2 -0
  47. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +5 -0
  48. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +0 -3
  49. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +16 -24
  50. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan-form.html +52 -48
  51. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan.html +3 -1
  52. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan-helper.service.js +66 -0
  53. data/lib/katello/engine.rb +10 -0
  54. data/lib/katello/params_parser_wrapper.rb +16 -0
  55. data/lib/katello/permissions/host_permissions.rb +7 -3
  56. data/lib/katello/plugin.rb +4 -4
  57. data/lib/katello/tasks/regenerate_ueber_certs.rake +1 -1
  58. data/lib/katello/tasks/repository.rake +23 -0
  59. data/lib/katello/version.rb +1 -1
  60. metadata +13 -5
  61. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-new-sync-plan.html +0 -2
@@ -8,7 +8,7 @@ namespace :katello do
8
8
  organizations = user_org.present? ? [user_org] : Organization.all
9
9
 
10
10
  organizations.each do |org|
11
- ::Katello::Resources::Candlepin::Owner.generate_ueber_cert(org.label)
11
+ org.regenerate_ueber_cert
12
12
  end
13
13
  puts "Regenerated the ueber certificate(s) for #{organizations.map(&:name).join(', ')}"
14
14
  end
@@ -59,6 +59,29 @@ namespace :katello do
59
59
  end
60
60
  end
61
61
 
62
+ desc "Change the download policy of all repos. Specify DOWNLOAD_POLICY=policy. Options are #{::Runcible::Models::YumImporter::DOWNLOAD_POLICIES.join(', ')}."
63
+ task :change_download_policy => ["environment", "check_ping"] do
64
+ policy = ENV['DOWNLOAD_POLICY']
65
+ unless ::Runcible::Models::YumImporter::DOWNLOAD_POLICIES.include?(policy)
66
+ puts "Invalid download policy specified: '#{policy}'. "
67
+ puts "Options are #{::Runcible::Models::YumImporter::DOWNLOAD_POLICIES.to_sentence}."
68
+ next
69
+ end
70
+
71
+ User.current = User.anonymous_api_admin
72
+ repos = Katello::Repository.yum_type.where(library_instance_id: nil)
73
+
74
+ repos.find_each.with_index do |repo, index|
75
+ puts "Processing Repository #{index + 1}/#{repos.count}: #{repo.name} (#{repo.id})"
76
+ begin
77
+ ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo,
78
+ download_policy: policy)
79
+ rescue => e
80
+ puts "Failed to update repository #{repo.name} (#{repo.id}): #{e.message}"
81
+ end
82
+ end
83
+ end
84
+
62
85
  def lookup_repositories
63
86
  lifecycle_envs = Katello::KTEnvironment.where(:name => ENV['LIFECYCLE_ENVIRONMENT']) if ENV['LIFECYCLE_ENVIRONMENT']
64
87
  content_views = Katello::ContentView.where(:name => ENV['CONTENT_VIEW']) if ENV['CONTENT_VIEW']
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.4.0.rc2".freeze
2
+ VERSION = "3.4.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0.rc2
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -433,6 +433,7 @@ files:
433
433
  - app/assets/stylesheets/katello/widgets/_chosen.scss
434
434
  - app/assets/stylesheets/katello/widgets/tabs.scss
435
435
  - app/controllers/katello/api/api_controller.rb
436
+ - app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb
436
437
  - app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
437
438
  - app/controllers/katello/api/v2/activation_keys_controller.rb
438
439
  - app/controllers/katello/api/v2/api_controller.rb
@@ -520,6 +521,7 @@ files:
520
521
  - app/lib/actions/candlepin/activation_key/create.rb
521
522
  - app/lib/actions/candlepin/activation_key/destroy.rb
522
523
  - app/lib/actions/candlepin/activation_key/update.rb
524
+ - app/lib/actions/candlepin/async_hypervisors.rb
523
525
  - app/lib/actions/candlepin/candlepin_listening_service.rb
524
526
  - app/lib/actions/candlepin/consumer/attach_subscription.rb
525
527
  - app/lib/actions/candlepin/consumer/auto_attach_subscriptions.rb
@@ -870,6 +872,7 @@ files:
870
872
  - app/models/katello/erratum_package.rb
871
873
  - app/models/katello/event.rb
872
874
  - app/models/katello/events/import_host_applicability.rb
875
+ - app/models/katello/events/import_pool.rb
873
876
  - app/models/katello/ext/label_from_name.rb
874
877
  - app/models/katello/file_unit.rb
875
878
  - app/models/katello/glue.rb
@@ -1783,7 +1786,6 @@ files:
1783
1786
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html
1784
1787
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html
1785
1788
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-info.html
1786
- - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-new-sync-plan.html
1787
1789
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-tasks.html
1788
1790
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-create.controller.js
1789
1791
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-repositories.service.js
@@ -1793,7 +1795,9 @@ files:
1793
1795
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html
1794
1796
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html
1795
1797
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js
1798
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-sync-plan-modal.controller.js
1796
1799
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js
1800
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/new-sync-plan-modal.html
1797
1801
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new-form.html
1798
1802
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html
1799
1803
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
@@ -1819,6 +1823,7 @@ files:
1819
1823
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets.module.js
1820
1824
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/settings/setting.factory.js
1821
1825
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/settings/settings.module.js
1826
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/content-access-mode-banner.directive.js
1822
1827
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
1823
1828
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-content-hosts.controller.js
1824
1829
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js
@@ -1848,6 +1853,7 @@ files:
1848
1853
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
1849
1854
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js
1850
1855
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.routes.js
1856
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html
1851
1857
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html
1852
1858
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-type.html
1853
1859
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-delete-bulk.html
@@ -1862,6 +1868,7 @@ files:
1862
1868
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js
1863
1869
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan-form.html
1864
1870
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan.html
1871
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan-helper.service.js
1865
1872
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js
1866
1873
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
1867
1874
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js
@@ -1898,6 +1905,7 @@ files:
1898
1905
  - lib/katello.rb
1899
1906
  - lib/katello/apipie/validators.rb
1900
1907
  - lib/katello/engine.rb
1908
+ - lib/katello/params_parser_wrapper.rb
1901
1909
  - lib/katello/permissions.rb
1902
1910
  - lib/katello/permissions/activation_key_permissions.rb
1903
1911
  - lib/katello/permissions/capsule_content_permissions.rb
@@ -2051,9 +2059,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2051
2059
  version: '0'
2052
2060
  required_rubygems_version: !ruby/object:Gem::Requirement
2053
2061
  requirements:
2054
- - - ">"
2062
+ - - ">="
2055
2063
  - !ruby/object:Gem::Version
2056
- version: 1.3.1
2064
+ version: '0'
2057
2065
  requirements: []
2058
2066
  rubyforge_project:
2059
2067
  rubygems_version: 2.4.6
@@ -1,2 +0,0 @@
1
- <h3 translate>New Sync Plan for {{ product.name }}</h3>
2
- <div ng-include="'sync-plans/new/views/new-sync-plan-form.html'"></div>