bosh_cli 1.3058.0 → 1.3062.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30e29841a01e7863c1bc7fbd7d7f6facafa5f5a2
4
- data.tar.gz: 76b9871a63b6f7e6ebc398e128da498ed6351eb8
3
+ metadata.gz: 779da24861d181c978ca8b16f3f7bfa65cccf7d4
4
+ data.tar.gz: 1de415f4a2aeb597440adda4fb880aa7f2ff5588
5
5
  SHA512:
6
- metadata.gz: e98677e4af68cfbfb0e29b34d77bcce6e8947a54af51cebe6149d9df24a867c95d52a9b23e2fb50b1cdc89f28e298224830a2beba2a111d900a222a6627b32e3
7
- data.tar.gz: bddb4b2552fbc28bcff0dd50a87d841a1dde8ae06279d1365e4b7438ddd9c63d4b8e8556bb573d99268236be89927a60f709bc081abcbcdea02801a78005b759
6
+ metadata.gz: 7b925992ecb46f46a2fc989fe0a60de1b8d8cf6a698497c30ac6e3a0417c31ec936549b13f1f2d3d1061230b61da8982b79cc90d58aeab196d1db25731ff9a45
7
+ data.tar.gz: 74b25b52ead27fe0ce628b0cb463fcb48c37293c5b4a42e300d6b8719b81ab6982494048c33ee85fcf22b4eedcdb91e0262f90e4e19806fc6da8b04e9da93597
@@ -44,10 +44,16 @@ module Bosh::Cli::Command
44
44
  s
45
45
  end
46
46
 
47
+ has_disk_cid = instances[0].has_key?('disk_cid')
48
+
47
49
  instances_table = table do |t|
48
50
  headings = ['Instance', 'State', 'Resource Pool', 'IPs']
49
51
  if options[:details]
50
- headings += ['CID', 'Agent ID', 'Resurrection']
52
+ if has_disk_cid
53
+ headings += ['VM CID', 'Disk CID', 'Agent ID', 'Resurrection']
54
+ else
55
+ headings += ['VM CID', 'Agent ID', 'Resurrection']
56
+ end
51
57
  end
52
58
  if options[:dns]
53
59
  headings += ['DNS A records']
@@ -69,7 +75,11 @@ module Bosh::Cli::Command
69
75
  row = [job, instance['job_state'], instance['resource_pool'], ips]
70
76
 
71
77
  if options[:details]
72
- row += [instance['vm_cid'], instance['agent_id'], instance['resurrection_paused'] ? 'paused' : 'active']
78
+ if has_disk_cid
79
+ row += [instance['vm_cid'], instance['disk_cid'] || 'n/a', instance['agent_id'], instance['resurrection_paused'] ? 'paused' : 'active']
80
+ else
81
+ row += [instance['vm_cid'], instance['agent_id'], instance['resurrection_paused'] ? 'paused' : 'active']
82
+ end
73
83
  end
74
84
 
75
85
  if options[:dns]
@@ -16,6 +16,8 @@ module Bosh::Cli
16
16
  option '--gateway_identity_file FILE', 'Gateway identity file'
17
17
  option '--default_password PASSWORD',
18
18
  'Use default ssh password (NOT RECOMMENDED)'
19
+ option '--strict_host_key_checking <yes/no>',
20
+ 'Can use this flag to skip host key checking (NOT RECOMMENDED)'
19
21
 
20
22
  def shell(*args)
21
23
  if args.size > 0
@@ -187,20 +189,23 @@ module Bosh::Cli
187
189
 
188
190
  say("Starting interactive shell on job #{job}/#{index}")
189
191
 
192
+ skip_strict_host_key_checking = options[:strict_host_key_checking] =~ (/(no|false)$/i) ?
193
+ '-o StrictHostKeyChecking=no' : '-o StrictHostKeyChecking=yes'
194
+
190
195
  if gateway
191
196
  port = gateway.open(session['ip'], 22)
192
- ssh_session = Process.spawn('ssh', "#{user}@localhost", '-p', port.to_s)
197
+ ssh_session = Process.spawn('ssh', "#{user}@localhost", '-p', port.to_s, skip_strict_host_key_checking)
193
198
  Process.waitpid(ssh_session)
194
199
  gateway.close(port)
195
200
  else
196
- ssh_session = Process.spawn('ssh', "#{user}@#{session['ip']}")
201
+ ssh_session = Process.spawn('ssh', "#{user}@#{session['ip']}", skip_strict_host_key_checking)
197
202
  Process.waitpid(ssh_session)
198
203
  end
199
204
  end
200
205
  end
201
206
 
202
207
  def perform_operation(operation, deployment_name, job, index, args)
203
- setup_ssh(deployment_name, job, index, nil) do |sessions, user, gateway|
208
+ setup_ssh(deployment_name, job, index, options[:default_password]) do |sessions, user, gateway|
204
209
  sessions.each do |session|
205
210
  unless session['status'] == 'success' && session['ip']
206
211
  err("Failed to set up SSH on #{job}/#{index}: #{session.inspect}")
data/lib/cli/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.3058.0'
3
+ VERSION = '1.3062.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3058.0
4
+ version: 1.3062.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_common
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3058.0
19
+ version: 1.3062.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3058.0
26
+ version: 1.3062.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bosh-template
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3058.0
33
+ version: 1.3062.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3058.0
40
+ version: 1.3062.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cf-uaa-lib
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.3058.0
131
+ version: 1.3062.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.3058.0
138
+ version: 1.3062.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-ssh
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -306,7 +306,7 @@ dependencies:
306
306
  version: '0'
307
307
  description: |-
308
308
  BOSH CLI
309
- 7510f3
309
+ 704861
310
310
  email: support@cloudfoundry.com
311
311
  executables:
312
312
  - bosh