katello 2.4.2 → 2.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80f67a786159867d60c20979f0602bb3863524e0
4
- data.tar.gz: dd24b2382a538d7153d4ebaa76f237e18fdcd811
3
+ metadata.gz: f6c7354acf1a09805b67a419f1ad8d278412093f
4
+ data.tar.gz: da753c9a5489643551c0a05cb4e7b545af75c8c4
5
5
  SHA512:
6
- metadata.gz: 30ddccbb6ff1bc0cffa457ee04d0d0284d350893286f88814a87a616a3d3824742f2d45e1aae77c8f07341f9f7827357dd660f456de87a9a4e5d3098578d8eab
7
- data.tar.gz: f0c4848493c531015c3b321b37aa18b0ea3ce9a0e59900a07bc51324571f36a033e20daf7307b2a81a8fca29e0c715f22fc0424b5bee5454d9fbfb9f1e6c3a92
6
+ metadata.gz: 23abb876559fd4263c4932656665b5371953a7eec6d8751a7c2d4609221cb89a4e924a9932f9363d9700ce4b8a97717be39062387d9f7eba8495198db1180552
7
+ data.tar.gz: 7fc67b386840c7d21306a2e879cf7c65afba6e31393e7b0b50124813e0d6b0cd9227ee057b27a2ff83704eee0120423e77bab116223703aa1b1527304b3c4079
@@ -201,6 +201,7 @@ module Katello
201
201
  load "#{Katello::Engine.root}/lib/katello/tasks/asset_compile.rake"
202
202
  load "#{Katello::Engine.root}/lib/katello/tasks/clean_backend_objects.rake"
203
203
  load "#{Katello::Engine.root}/lib/katello/tasks/preupgrade_content_host_check.rake"
204
+ load "#{Katello::Engine.root}/lib/katello/tasks/upgrade_check.rake"
204
205
 
205
206
  load "#{Katello::Engine.root}/lib/katello/tasks/upgrades/2.1/import_errata.rake"
206
207
  load "#{Katello::Engine.root}/lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake"
@@ -7,7 +7,6 @@ namespace :katello do
7
7
  fail _("Some backend services are not running: %s") % ping.inspect
8
8
  end
9
9
 
10
- puts "This script makes no modifications and can be re-run multiple times for the most up to date results."
11
10
  puts "Calculating Host changes on upgrade. This may take a few minutes."
12
11
 
13
12
  User.current = User.anonymous_api_admin
@@ -125,7 +124,5 @@ namespace :katello do
125
124
  else
126
125
  puts "Upgrading will not affect any of your Content Hosts."
127
126
  end
128
-
129
- FileUtils.touch('/var/lib/foreman/3.0_upgrade_ready')
130
127
  end
131
- end
128
+ end
@@ -0,0 +1,35 @@
1
+ DESIRED_VERSION = "2.4.2"
2
+ CP_LISTEN_ACTION = "Actions::Candlepin::ListenOnCandlepinEvents"
3
+
4
+ def current_version
5
+ Katello::VERSION
6
+ end
7
+
8
+ namespace :katello do
9
+ task :upgrade_check => ['environment'] do
10
+ desc "Task that can be run before upgrading to Katello 3.0 to check if system is upgrade ready"
11
+ success = "PASS"
12
+ fail = "FAIL"
13
+
14
+ puts "This script makes no modifications and can be re-run multiple times for the most up to date results."
15
+ puts "Checking upgradeability...\n\n"
16
+
17
+ # check for any running tasks
18
+ task_count = ::ForemanTasks::Task.active.where("label != '#{CP_LISTEN_ACTION}'").count
19
+ task_status = task_count > 1 ? fail : success
20
+ puts "Checking for running tasks..."
21
+ puts "[#{task_status}] - There are #{task_count} active tasks.\n\n"
22
+
23
+ # check the current version
24
+ version_status = current_version == DESIRED_VERSION ? success : fail
25
+ puts "Checking the current version..."
26
+ puts "[#{version_status}] - Current version of Katello is #{current_version} " \
27
+ "and needs to be #{DESIRED_VERSION}\n\n"
28
+
29
+ # run the content host check
30
+ puts "Checking content hosts..."
31
+ Rake::Task["katello:preupgrade_content_host_check"].invoke
32
+
33
+ FileUtils.touch('/var/lib/foreman/3.0_upgrade_ready')
34
+ end
35
+ end
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
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: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1142,7 +1142,6 @@ files:
1142
1142
  - config/initializers/rabl_init.rb
1143
1143
  - config/initializers/runcible.rb
1144
1144
  - config/katello.yaml.example
1145
- - config/katello.yml
1146
1145
  - config/katello_defaults.yml
1147
1146
  - config/locales/README
1148
1147
  - config/locales/bn.yml
@@ -1735,6 +1734,7 @@ files:
1735
1734
  - lib/katello/tasks/setup.rake
1736
1735
  - lib/katello/tasks/simplecov.rake
1737
1736
  - lib/katello/tasks/test.rake
1737
+ - lib/katello/tasks/upgrade_check.rake
1738
1738
  - lib/katello/tasks/upgrades/2.1/import_errata.rake
1739
1739
  - lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
1740
1740
  - lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
data/config/katello.yml DELETED
@@ -1,242 +0,0 @@
1
- # This file contains default values for Katello configuration.
2
- #
3
- # DO NOT EDIT THIS FILE
4
- #
5
- # Add `/etc/katello/katello.yml` (or `config/katello.yml` in development) to override default values,
6
- # file is required even if it's blank.
7
-
8
- # Katello configuration
9
- #
10
- # :vim:sw=2:ts=2:et:
11
-
12
- # Common configuration
13
- #
14
- # The following configuration values are the same for production, test
15
- # and development environments. Values can be overridden bellow.
16
- #
17
- common:
18
- ssl_client_key: '/etc/pki/katello/private/abed.usersys.redhat.com-pulp-client.key'
19
- ssl_client_cert: '/etc/pki/katello/certs/abed.usersys.redhat.com-pulp-client.crt'
20
- use_cp: # set to true/false if you want to override default
21
- use_pulp: # set to true/false if you want to override default
22
- use_elasticsearch: # set to true/false if you want to override default
23
-
24
- rest_client_timeout: 30
25
- gpg_strict_validation: false
26
-
27
- # Puppet publishing location
28
- puppet_repo_root: '/etc/puppet/environments/'
29
-
30
- elastic_index: katello
31
- elastic_url: http://localhost:9200
32
-
33
- post_sync_url: "http://localhost:3000/katello/api/v2/repositories/sync_complete?token=katello"
34
-
35
- simple_search_tokens: [":", " and\\b", " or\\b", " not\\b"]
36
-
37
- redhat_repository_url: https://cdn.redhat.com
38
- redhat_docker_registry_url: https://registry.access.redhat.com
39
-
40
- qpid:
41
- url: amqp:ssl:troy.usersys.redhat.com:5671
42
- subscriptions_queue_address: katello_event_queue
43
-
44
- consumer_cert_rpm: 'katello-ca-consumer-latest.noarch.rpm'
45
-
46
- #setup how often you want
47
- #your notifications to be checked
48
- #for you to receive the right notifications
49
- #default value = 45 seconds
50
- #
51
- notification:
52
- polling_seconds: 120
53
-
54
- # Setup your candlepin environment here
55
- candlepin:
56
- # refers to the url of the candlepin
57
- # example https://localhost:8443/candlepin
58
- url: https://localhost:8443/candlepin
59
-
60
- # Specify your oauth key and secret used to authenticate between Katello and Candlepin
61
- oauth_key: katello
62
- oauth_secret: katello
63
-
64
- # refers to the candlepin-ca.crt location that is needed
65
- # to connect to candlepin over https.This is not necessary
66
- # if the candlepin server is running on the same machine as katello
67
- # but required if the server is on a different machine.
68
- # In the different machine case the katello host needs to have a
69
- # copy of /etc/candlepin/certs/candlepin-ca.crt copied from
70
- # the candlepin host and the location of the copied file needs to be
71
- # specified here..
72
- ca_cert_file:
73
-
74
- # Setup your pulp environment here
75
- pulp:
76
- # refers to the url of the pulp
77
- # example https://localhost/pulp/api
78
- url: https://localhost/pulp/api/v2/
79
-
80
- # Specify your oauth key and secret used to authenticate between Katello and Pulp
81
- oauth_key: katello
82
- oauth_secret: katello
83
-
84
- sync_threads: 4
85
- bulk_load_size: 100
86
- # refers to the apache certificate
87
- # (typically /etc/pki/tls/certs/localhost.crt) location that is needed
88
- # to connect to pulp over https.
89
- ca_cert_file:
90
- default_login: admin
91
- sync_KBlimit:
92
- upload_chunk_size: 1048575 # upload size in bytes to pulp. see SSLRenegBufferSize in apache
93
- skip_checksum_validation: false
94
-
95
- # Setup proxy to use when accessing CDN.
96
- # Katello calls CDN to retrieve list of repositories for a product
97
- # Uncomment in case you want this calls to go through your proxy
98
- cdn_proxy:
99
- # host: localhost
100
- # port: 3128
101
- # user: login
102
- # password: password
103
-
104
- # when adding a new logger don't forget to add it in here even if it's disabled by default
105
- # otherwise log trace feature won't work for such logger
106
- logging:
107
- # enable logging output inline in rails console
108
- console_inline: true
109
- # colorize log including level token based on severity
110
- colorize: false
111
- # adds an extra line after each log message with information from which file:line and method
112
- # was this message logged
113
- log_trace: false
114
- #do not log certain paths (example /notices/get_new)
115
- ignored_paths: []
116
- # configuration of all loggers used in app
117
- loggers:
118
- # this logger is parent of all other loggers, by default this is the only one having appender
119
- # which is used by all other loggers
120
- root:
121
- # only messages with severity >= this level from all loggers will be logged
122
- level: warn
123
- # file or syslog, for file variant you can specify other options below like filename,
124
- # pattern or rolling options
125
- type: file
126
- # 'daily', 'weekly', 'monthly' or number as seconds
127
- age: 'weekly'
128
- # how many old log files to keep (156 = 52 * 3 = 3 years for weekly age)
129
- keep: 156
130
- # logger line pattern, you can use following macros
131
- # [%c] name of the logger that generate the log event
132
- # [%d] datestamp
133
- # [%m] the user supplied log message
134
- # [%p] PID of the current process
135
- # [%r] the time in milliseconds since the program started
136
- # [%T] the name of the thread Thread.current[:name]
137
- # [%t] object_id of the thread
138
- # [%F] filename where the logging request was issued
139
- # [%L] line number where the logging request was issued
140
- # [%M] method name where the logging request was issued
141
- # [%X{string}] variable set using ::Logging.mdc['string'] =
142
- pattern: "[%5l %d %c %X{uuid} #%p] %m\n"
143
- # log filename for this environment, it will be placed into #{Rails.root}/log directory
144
- filename: "production.log"
145
- # you log files will be stored here
146
- # note when you log outside of standard rails path you won't see log output in WEBrick
147
- # STDOUT (usually not wanted in development), to use Rails default path, don't set path
148
- # path: /var/log/katello
149
-
150
- # you can configure each logger individually, you can turn it off completely by using key
151
- # 'enabled' or you can adjust it's logging 'level'. If you specify level higher than root
152
- # logger has, messages below this level are ignored. If you specify lower level than root
153
- # they are still ignored but you can add appender in Katello::Logging just for this logger
154
- # and see these logs outside of main log.
155
- sql:
156
- enabled: false
157
- app:
158
- enabled: true
159
- glue:
160
- enabled: true
161
- pulp_rest:
162
- enabled: true
163
- cp_rest:
164
- enabled: true
165
- cp_proxy:
166
- enabled: true
167
- foreman_rest:
168
- enabled: true
169
- action:
170
- enabled: true
171
- # tire is a special case, all logs coming from it are debug level however they count depends
172
- # on root level configuration, e.g. root debug level will print most info from tire
173
- # unfortunately there is currently no better way
174
- tire_rest:
175
- enabled: false
176
- yard:
177
- enabled: false
178
- #
179
- # Production environment configuration
180
- #
181
- # The following configuration values override ones from the common section
182
- #
183
- production:
184
- logging:
185
- loggers:
186
- sql:
187
- level: fatal
188
-
189
- #
190
- # Development environment configuration
191
- #
192
- # The following configuration values override ones from the common section
193
- #
194
- development:
195
- logging:
196
- ignored_paths: ['/notices/get_new', '/assets/', '/api/tasks/bulk_search']
197
- colorize: true
198
- loggers:
199
- root:
200
- level: debug
201
- type: file
202
- age: 'monthly'
203
- keep: 1
204
- pattern: "[%5l %d %c] %m\n"
205
- filename: "development.log"
206
- yard:
207
- level: info
208
-
209
- # To enable external logs tailing add optional 'tail_command:' option to a logger configuration,
210
- # standard output of the command is logged. Useful with `tail` command. E.g.
211
- #
212
- # tail-pulp:
213
- # enabled: true
214
- # tail_command: ssh root@a_host -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tail -f /var/log/pulp/pulp.log
215
- # tail-cp:
216
- # enabled: true
217
- # tail_command: ssh root@a_host -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tail -f /var/log/tomcat6/catalina.out
218
- # tail-kt-client:
219
- # enabled: true
220
- # tail_command: tail -f ~/.katello/client.log
221
- # tail-foreman:
222
- # enabled: true
223
- # tail_command: tail -f ~/Workspace/redhat/foreman/log/development.log
224
-
225
-
226
- #
227
- # Test environment configuration
228
- #
229
- # The following configuration values override ones from the common section
230
- #
231
- test:
232
- elastic_index: katello_test
233
- logging:
234
- colorize: false
235
- loggers:
236
- root:
237
- level: debug
238
- type: file
239
- age: 'monthly'
240
- keep: 1
241
- pattern: "[%5l %d %c] %m\n"
242
- filename: "test.log"