Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (firewall management for) VPC support #151

Merged
merged 8 commits into from
Aug 19, 2016

Conversation

bheuvel
Copy link
Contributor

@bheuvel bheuvel commented May 6, 2016

My environment was set using:

VPC_PUBLIC_IP="11.22.33.44"
VPC_TIER_NAME="vpctiername"
VR_PUBLIC_IP="55.66.77.88"
VR_NETWORK_NAME="vrnetworkname"

NETWORK_NAME=$VPC_TIER_NAME
PUBLIC_SOURCE_NAT_IP=$VPC_PUBLIC_IP

The VPC_.. and VR_... are used to specifically target those. The last two are the "default" which are used in the other tests; (VM Life Cycle) was thereby done in a VPC-tier.

The Networking features test, does the same testing as it used to, only now the 2 (tests/) vms specifically in a guest network/Virtual Router, and also the same (tests/)vms in a tier of a VPC.

Running RSpec tests in folder : vmlifecycle
Using Vagrant file            : Vagrantfile.advanced_networking

VM Life Cycle
  starts Linux and Windows VM
  destroys Linux and Windows VM

Finished in 3 minutes 31 seconds (files took 0.13409 seconds to load)
2 examples, 0 failures

Running RSpec tests in folder : networking
Using Vagrant file            : Vagrantfile.advanced_networking

Networking features
  creates firewall and portwarding rules for both Virtual Router and VPC

Finished in 4 minutes 53.8 seconds (files took 0.12909 seconds to load)
1 example, 0 failures

bheuvel added 6 commits May 4, 2016 19:29
```
Running RSpec tests in folder : vmlifecycle
Using Vagrant file            : Vagrantfile.advanced_networking

VM Life Cycle
  starts Linux and Windows VM
  destroys Linux and Windows VM

Finished in 3 minutes 5.1 seconds (files took 0.13309 seconds to load)
2 examples, 0 failures

Running RSpec tests in folder : networking
Using Vagrant file            : Vagrantfile.advanced_networking

Networking features
  creates firewall and portwarding rules

Finished in 2 minutes 42.1 seconds (files took 0.13307 seconds to load)
1 example, 0 failures

Running RSpec tests in folder : rsync
Using Vagrant file            : Vagrantfile.advanced_networking

VM RSync
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /cyg/y/vagrant-cloudstack/functional-tests/rsync/
Guest path: /vagrant
Command: rsync --verbose --archive --delete -z --copy-links
<--snip-->
mm_receive_fd: no message header
process_mux_new_session: failed to receive fd 0 from slave
mux_client_request_session: read from master failed: Connection reset by peer
Failed to connect to new control master
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
```
RSync to be expected on Windows...
@bheuvel bheuvel force-pushed the refact/prepare_for_vpc branch from 8514e4e to 5a8ffa2 Compare May 6, 2016 17:11
@bheuvel
Copy link
Contributor Author

bheuvel commented Jun 7, 2016

When using a scenario which doesn't use pf_ip_address, following error appears:

vagrant-cloudstack/action/run_instance.rb:315:in `block in configure_firewall': undefined method `has_key?' for nil:NilClass (NoMethodError)

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8c8c01b on refact/prepare_for_vpc into * on master*.

@bheuvel bheuvel force-pushed the refact/prepare_for_vpc branch from 8c8c01b to 7d8202c Compare June 10, 2016 08:18
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7d8202c on refact/prepare_for_vpc into * on master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 54b9f07 on refact/prepare_for_vpc into * on master*.

@bheuvel bheuvel force-pushed the refact/prepare_for_vpc branch from 54b9f07 to 035e2c0 Compare August 16, 2016 15:27
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 035e2c0 on refact/prepare_for_vpc into * on master*.

@miguelaferreira
Copy link
Contributor

Functional tests are successful now:

Running RSpec tests in folder : vmlifecycle
Using Vagrant file            : Vagrantfile.advanced_networking

VM Life Cycle
  starts Linux and Windows VM
  destroys Linux and Windows VM

Finished in 4 minutes 12.3 seconds (files took 0.13136 seconds to load)
2 examples, 0 failures

...

Running RSpec tests in folder : networking
Using Vagrant file            : Vagrantfile

Networking features
  creates firewall and portwarding rules for both Virtual Router and VPC

Finished in 5 minutes 40 seconds (files took 0.13841 seconds to load)
1 example, 0 failures

...

Running RSpec tests in folder : rsync
Using Vagrant file            : Vagrantfile.advanced_networking

VM RSync
Connection to 31.22.84.217 closed.
  does rsync to the VM

Finished in 1 minute 5.53 seconds (files took 0.09702 seconds to load)
1 example, 0 failures

@miguelaferreira miguelaferreira merged commit abf982e into master Aug 19, 2016
@bheuvel bheuvel deleted the refact/prepare_for_vpc branch September 29, 2016 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants