uricp 0.0.20 → 0.0.21

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
  SHA256:
3
- metadata.gz: e77694a18e045d2917d254afcb2db0a2c4cb7d81471d3ccabfe5c232bc340408
4
- data.tar.gz: c063c5315485f25194e2f195c821470f0cc840cc242a0f88c174653a3a3bf167
3
+ metadata.gz: aeaa81822977930906959744feb0d8bdf9ca820afd10e6b97d32a726cbf67391
4
+ data.tar.gz: cd29b49f83ba53a275f4574c32cbb7f1b92c5218421cef668355a14ab5a36bec
5
5
  SHA512:
6
- metadata.gz: e8af0949b1de2c8c414d8c60f69390ebc5c722189ff9d86b3c0201c3a30aecded256c8c38be244516834ba97ca7e3ee58c325444304f766cef55b11053d018af
7
- data.tar.gz: db89854277d707b488ef4c86bad899407445ff62bd9815aa60259f636b473e17905a83bd53b120f287eabe60012cb20681015a45ef752d3d98660ed6e4b01f71
6
+ metadata.gz: 56c0e441da6e7e709580e09cdcc68c56b3ff731fc9fd028e56160dbfca427048ecab2f79c049f490bd15bcb027a67ec1b4aa01ddd2ce801cda89ad53f9ba6efa
7
+ data.tar.gz: 92122076440ca0cbd0345f29bf4386503c9f3830d6a4ffbfc92a4f55e40b9ea7790ff81cc1ebf1101ce7ac4cb552c312bf2be0cc5c3c49f0b727ab0247f46f90
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uricp (0.0.20)
4
+ uricp (0.0.21)
5
5
  childprocess (~> 1.0)
6
6
  filesize (= 0.0.2)
7
7
  methadone (~> 2.0.2)
@@ -32,7 +32,7 @@ Feature: Manipulate file images in ceph
32
32
  """
33
33
  And the output should contain:
34
34
  """
35
- rbd clone --no-progress --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
35
+ rbd clone --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
36
36
  """
37
37
 
38
38
  Scenario: HTTP URI from file cache via unpopulated rbd cache
@@ -53,7 +53,7 @@ Feature: Manipulate file images in ceph
53
53
  """
54
54
  And the output should contain:
55
55
  """
56
- rbd clone --no-progress --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
56
+ rbd clone --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
57
57
  """
58
58
 
59
59
  Scenario: HTTP URI to rbd via populated caches
@@ -65,7 +65,7 @@ Feature: Manipulate file images in ceph
65
65
  """
66
66
  And the output should contain:
67
67
  """
68
- rbd clone --no-progress --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
68
+ rbd clone --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy'
69
69
  """
70
70
 
71
71
  Scenario: rbd to rbd - no cache
@@ -89,7 +89,7 @@ Feature: Manipulate file images in ceph
89
89
  """
90
90
  And the output should contain:
91
91
  """
92
- rbd clone --no-progress --id libvirt 'servers/img-testy@uricp_snap' 'servers/srv-testy'
92
+ rbd clone --id libvirt 'servers/img-testy@uricp_snap' 'servers/srv-testy'
93
93
  """
94
94
 
95
95
  Scenario: rbd to rbd - unpopulated cache
@@ -117,7 +117,7 @@ Feature: Manipulate file images in ceph
117
117
  """
118
118
  And the output should contain:
119
119
  """
120
- rbd clone --no-progress --id libvirt 'servers/srv-testy@uricp_snap' 'servers/img-testy'
120
+ rbd clone --id libvirt 'servers/srv-testy@uricp_snap' 'servers/img-testy'
121
121
  """
122
122
  And the output should not contain:
123
123
  """
@@ -145,7 +145,7 @@ Feature: Manipulate file images in ceph
145
145
  """
146
146
  And the output should contain:
147
147
  """
148
- rbd clone --no-progress --id libvirt 'servers/img-testy@base' 'servers/srv-testy'
148
+ rbd clone --id libvirt 'servers/img-testy@base' 'servers/srv-testy'
149
149
  """
150
150
 
151
151
  Scenario: RBD export.
@@ -206,7 +206,7 @@ Feature: Manipulate file images in ceph
206
206
  """
207
207
  And the output should contain:
208
208
  """
209
- rbd clone --no-progress --id libvirt 'servers/srv-testy@uricp_snap' 'servers/img-testy'
209
+ rbd clone --id libvirt 'servers/srv-testy@uricp_snap' 'servers/img-testy'
210
210
  """
211
211
  And the output should contain:
212
212
  """
@@ -161,7 +161,7 @@ module Uricp::Strategy
161
161
  if dry_run?
162
162
  result = options['dry-cache'] && options['cache_name'] !~ /srv-...../
163
163
  else
164
- sh "rbd snap ls --id #{rbd_id} --format json #{target}" do |stdout|
164
+ sh "rbd snap ls --id #{rbd_id} --format json #{target} 2>/dev/null" do |stdout|
165
165
  result = JSON.parse(stdout).any? { |x| x['name'] == rbd_base_name }
166
166
  end
167
167
  end
@@ -14,7 +14,7 @@ module Uricp::Strategy
14
14
  end
15
15
 
16
16
  def command
17
- "rbd clone --no-progress --id #{rbd_id} '#{rbd_image_spec(from)}' '#{rbd_image_spec(to)}';"
17
+ "rbd clone --id #{rbd_id} '#{rbd_image_spec(from)}' '#{rbd_image_spec(to)}';"
18
18
  end
19
19
 
20
20
  def proposal
@@ -47,7 +47,7 @@ module Uricp::Strategy
47
47
  return false if dry_run?
48
48
 
49
49
  result = false
50
- sh "rbd snap ls --id #{rbd_id} --format json #{rbd_image_spec(from)}" do |stdout|
50
+ sh "rbd snap ls --id #{rbd_id} --format json #{rbd_image_spec(from)} 2>/dev/null" do |stdout|
51
51
  result = JSON.parse(stdout).any? { |x| x['name'] == rbd_snapshot_name }
52
52
  end
53
53
  result
data/lib/uricp/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uricp
4
- VERSION = '0.0.20'
4
+ VERSION = '0.0.21'
5
5
  DEFAULT_SEGMENT_SIZE = '5 GiB'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uricp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil Wilson