panteras_api 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/bin/mesos_consul_consistency_check +10 -4
- data/lib/panteras_api/version.rb +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
N2QxNWI2NjUyMzEzMWU0NTFmYTRmZTExMTU2YTM1OWI3ZDYyMWNhYw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a357bc5e7cd455c33e2bc535d8f6eaa4a2c13a6
|
4
|
+
data.tar.gz: 8e5987d563f1d0b333cfaeb836c51447aad31ceb
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZDhlM2VkNDBmNTY5ZGYxYTgzM2I4ZjU0ZWM2YmQ3OTU3OTBhMjk5YWZkMzk4
|
11
|
-
ZWQxZGJiYWYzNjZmYjM4MjU1MzJiYjExZDQyMzEwNTAzNDRmMGQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzY3ZGE1ZmFjYWFlM2E4ZmU3MmViYmEwNjUxNTJlYzIxMGM5ZDc5Yjg4ZTE3
|
14
|
-
NzUxOGVmYjAzY2M0NjI4MWMxMjZlYzhkMzU3MzczNDMyZGM0YjFhYTVlYmZi
|
15
|
-
OGYwZDQxY2QxNmMwZTZiYzcyMGZkZTc2NGM4YjhhM2YzYWI3M2Q=
|
6
|
+
metadata.gz: 4131bf404c9e2ac9cf6e4c51d1978824c188375222228da82a2bdcbf6b30da7cb827a2cfc3dea1742aa2c632551dd47810fa3b6456e89d149d722e034023729c
|
7
|
+
data.tar.gz: 3dd7148c76f09119877b34264a03ac4d95cd5a930e1356bcd449a33d682059d334bb10c706f04d5b1f659c0718c65a85860099d087ed5b494a69ea4a47200c9f
|
@@ -15,6 +15,7 @@ config_default = {
|
|
15
15
|
}
|
16
16
|
|
17
17
|
options = {}
|
18
|
+
excludes = []
|
18
19
|
bad_news = []
|
19
20
|
good_news = []
|
20
21
|
|
@@ -50,7 +51,7 @@ OptionParser.new("Usage: #{$0} [options]") do |opts|
|
|
50
51
|
end
|
51
52
|
|
52
53
|
opts.on("-e", "--exclude RegExp_PATTERN", "default: empty") do |exclude|
|
53
|
-
|
54
|
+
excludes << exclude
|
54
55
|
end
|
55
56
|
|
56
57
|
|
@@ -137,6 +138,10 @@ Timeout::timeout(timeout_in_seconds) do
|
|
137
138
|
puts "* Consul registered mesos services for #{my_fqdn}:" if config[:debug]
|
138
139
|
consul = ConsulCluster.new(mesos.master_hostname)
|
139
140
|
consul_services = consul.my_service_ids.reject { |p| p =~ /panteras/ }.collect { |d| d }.compact.reject { |i| i.empty? }
|
141
|
+
excludes.each { |exclude|
|
142
|
+
consul_services = consul_services.reject { |p| p =~ /#{exclude}/ }
|
143
|
+
}
|
144
|
+
|
140
145
|
#puts consul.my_services.join("\n") if config[:debug]
|
141
146
|
puts consul_services.sort if config[:debug]
|
142
147
|
good_news << "#{consul_services.size} consul services running."
|
@@ -178,10 +183,11 @@ Timeout::timeout(timeout_in_seconds) do
|
|
178
183
|
good_news << "#{docker_tasks.size} docker tasks running"
|
179
184
|
|
180
185
|
### Compare consul-registered tasks vs docker tasks
|
181
|
-
|
182
|
-
|
186
|
+
|
187
|
+
excludes.each { |exclude|
|
183
188
|
docker_inspect = docker_inspect.reject { |p| p[:mesos_task_id] =~ /#{exclude}/ }
|
184
|
-
|
189
|
+
docker_inspect = docker_inspect.reject { |p| p[:name] =~ /#{exclude}/ }
|
190
|
+
}
|
185
191
|
|
186
192
|
docker_mesos_ids_no_panteras = docker_inspect.reject { |p| p[:name] =~ /panteras/ }.collect { |d| d[:name] if ! d[:chronos_job] }.compact.reject { |i| i.empty? }
|
187
193
|
consul_not_docker = consul_services - docker_mesos_ids_no_panteras
|
data/lib/panteras_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panteras_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.8'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: A convenient api for getting information from consul, mesos, marathon,
|
@@ -62,9 +62,9 @@ executables:
|
|
62
62
|
extensions: []
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
65
|
-
- .gitignore
|
66
|
-
- .rspec
|
67
|
-
- .travis.yml
|
65
|
+
- ".gitignore"
|
66
|
+
- ".rspec"
|
67
|
+
- ".travis.yml"
|
68
68
|
- Gemfile
|
69
69
|
- License
|
70
70
|
- README.md
|
@@ -90,18 +90,19 @@ require_paths:
|
|
90
90
|
- lib
|
91
91
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.4.
|
103
|
+
rubygems_version: 2.4.6
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Ruby API library for Panteras PaaS platform.
|
107
107
|
test_files: []
|
108
|
+
has_rdoc:
|