vagrant-skytap 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ad66d0732292fb4e3eade24cdcc614b00b18869
4
- data.tar.gz: 193d5678f30a527277f1bd04816c41d6857a2e2f
3
+ metadata.gz: 23cca41d3984a6e739646a9986ce68b3a9655c0f
4
+ data.tar.gz: 830c1d85da9fd373e726f22226e3c1210c8f8c32
5
5
  SHA512:
6
- metadata.gz: 27195d6fe141492a6979a4995ea2ba7aa20f0245a4e3409786f9bb65a58b3e1620cf9ef085221a2d00d13af7bf327d1f65bcdda13e831a15440adf45e07b39d2
7
- data.tar.gz: d05d051aaf236112118c65d4ffeef8193ce29ec2fc2e2508622a0f8014ded4718d4be620abb5bf1224a01b2ae2f71641866bec76ecb72544b4c73a1aaa436b70
6
+ metadata.gz: a5b9d656915ae1fea5dea53592aaf47d558bc841bd5dbcb519e2a8d4390a6eae1e97ecd10c6d118fab1b385dafce3285b8dac63ba34157c1f6d499e37cc8ecc8
7
+ data.tar.gz: e275fb3e235b03714d3e2b7c1ce972799f96efade7c0adfe28b6337f20975b63e9887f8bc8d3ce17d287d1eeb1ccd5fe6842ea606935b066abe5a5ff8f2a8465
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.3 (April 25, 2016)
2
+
3
+ * Improve error messaging for network tunnels.
4
+ * Change default timeout value.
5
+ * Update Vagrantfile for example box file.
6
+
1
7
  # 0.3.2 (April 19, 2016)
2
8
 
3
9
  * Retry all operations on 423 response (previously this was not happening when attaching to a VPN).
data/boxes/Vagrantfile CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  Vagrant.configure(2) do |config|
5
5
  config.vm.provider :skytap do |skytap|
6
- skytap.vm_url = "https://cloud.skytap.com/vms/3157858"
6
+ # Ubuntu 12.04 LTS Server (64-bit) in US-West region.
7
+ skytap.vm_url = "https://cloud.skytap.com/vms/8350530"
7
8
  end
8
9
  end
Binary file
@@ -109,8 +109,8 @@ module VagrantPlugins
109
109
  # VPN to use for connection to VM
110
110
  @vpn_url = nil if @vpn_url == UNSET_VALUE
111
111
 
112
- # Set the default timeout for waiting for an instance to be ready
113
- @instance_ready_timeout = 120 if @instance_ready_timeout == UNSET_VALUE
112
+ # Set the default timeout for runstate changes (e.g. running a VM)
113
+ @instance_ready_timeout = 300 if @instance_ready_timeout == UNSET_VALUE
114
114
 
115
115
  # Hardware settings default to nil (will be obtained
116
116
  # from the source VM)
@@ -51,19 +51,16 @@ module VagrantPlugins
51
51
  def valid?
52
52
  @validation_error_message = nil
53
53
 
54
- unless host_network.tunnelable?
55
- @validation_error_message = I18n.t("vagrant_skytap.connections.tunnel.errors.host_network_not_tunnelable")
56
- return false
57
- end
58
-
59
- unless host_network.nat_enabled?
60
- @validation_error_message = I18n.t("vagrant_skytap.connections.tunnel.errors.host_network_nat_disabled")
54
+ unless host_network.tunnelable? && host_network.nat_enabled?
55
+ @validation_error_message = I18n.t("vagrant_skytap.connections.tunnel.errors.host_network_not_connectable")
61
56
  return false
62
57
  end
63
58
 
64
59
  unless guest_network.nat_enabled?
65
60
  if guest_network.subnet.overlaps?(host_network.subnet)
66
- @validation_error_message = I18n.t("vagrant_skytap.connections.tunnel.errors.guest_network_overlaps")
61
+ @validation_error_message = I18n.t("vagrant_skytap.connections.tunnel.errors.guest_network_overlaps",
62
+ guest_subnet: guest_network.subnet, host_subnet: host_network.subnet,
63
+ environment_url: iface.vm.environment.url)
67
64
  return false
68
65
  end
69
66
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module VagrantPlugins
24
24
  module Skytap
25
- VERSION = "0.3.2"
25
+ VERSION = "0.3.3"
26
26
  end
27
27
  end
data/locales/en.yml CHANGED
@@ -184,14 +184,20 @@ en:
184
184
  verb_create_and_use: |-
185
185
  Create and use tunnel to host network
186
186
  errors:
187
- host_network_not_tunnelable: |-
188
- The host's network must be tunnelable.
189
- host_network_nat_disabled: |-
190
- The host's network must have NAT enabled.
187
+ host_network_not_connectable: |-
188
+ To connect to the guest machine using a network tunnel, the host
189
+ VM must be connected to a network which is visible to other
190
+ networks and has a NAT subnet. Please go to the network settings
191
+ page for this VM and make these changes, then run `vagrant up` to
192
+ try again. (Note: it may be necessary to power off this VM before
193
+ making these changes.)
191
194
  guest_network_overlaps: |-
192
- The guest's network subnet overlaps with the host's network.
193
- (This can be resolved by changing network subnets, or by
194
- enabling NAT on the guest network.)
195
+ The host and guest networks could not be connected via a network
196
+ tunnel because the guest VM's network subnet (%{guest_subnet})
197
+ overlaps with the host network subnet (%{host_subnet}). Please
198
+ change the guest network's subnet, or enable NAT on the guest
199
+ network's subnet, then run `vagrant up` to try again.
200
+ The guest VM's environment URL is: %{environment_url}
195
201
 
196
202
  commands:
197
203
  publish_urls:
@@ -4,6 +4,8 @@ Vagrant::Spec::Acceptance.configure do |c|
4
4
  c.component_paths << File.expand_path("../spec/acceptance", __FILE__)
5
5
  c.skeleton_paths << File.expand_path("../spec/acceptance/skeletons", __FILE__)
6
6
 
7
+ c.assert_retries = 10
8
+
7
9
  c.provider "skytap",
8
10
  box: File.expand_path("../skytap-test.box", __FILE__),
9
11
  contexts: ["provider-context/skytap"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-skytap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric True
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-20 00:00:00.000000000 Z
12
+ date: 2016-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -120,6 +120,7 @@ files:
120
120
  - boxes/empty.box
121
121
  - boxes/metadata.json
122
122
  - boxes/README.md
123
+ - boxes/ubuntu-1204-x64-us-west.box
123
124
  - boxes/Vagrantfile
124
125
  - CHANGELOG.md
125
126
  - Gemfile