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

JcloudsLocation for port-forwarding #1082

Conversation

aledsage
Copy link
Member

@aledsage aledsage commented Dec 2, 2013

Some changes I've had sitting around for far too long, that I've finally revisited! These were originally started in github.com/cloudsoft/brooklyn-networking

- Refactors methods for creation of users
- Adds JcloudsPortForwarderExtension
- Calls out to port-forwarder for port 22, if configured
@buildhive
Copy link

Brooklyn Central » brooklyn #1379 SUCCESS
This pull request looks good
(what's this?)

sshProps.put("port", port);
if (initialPassword.isPresent()) sshProps.put("password", initialPassword.get());
if (initialPrivateKey.isPresent()) sshProps.put("privateKeyData", initialPrivateKey.get());
if (initialPrivateKey.isPresent()) sshProps.put("privateKeyData", initialPrivateKey.get());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do this twice?

@sjcorbett
Copy link
Member

@aledsage I've made minor comments that I think are worth addressing, but otherwise this looks good. New live test passed on AWS. As @richardcloudsoft mentioned, is there anything to go alongside this for the brooklyn-networking project?

@sjcorbett
Copy link
Member

The changes in this pull request cause the build of the cloudstack module in brooklyn-networking to fail:

[ERROR] /Users/sam/code/cloudsoft/brooklyn-networking/cloudstack/src/main/java/io/cloudsoft/networking/cloudstack/legacy/LegacyJcloudsCloudstackBtAlpha2Location.java:[68,5] method does not override or implement a method from a supertype
[ERROR] /Users/sam/code/cloudsoft/brooklyn-networking/cloudstack/src/main/java/io/cloudsoft/networking/cloudstack/legacy/LegacyJcloudsCloudstackSubnetLocation.java:[192,18] waitForReachable(org.jclouds.compute.ComputeService,org.jclouds.compute.domain.NodeMetadata,com.google.common.base.Optional<com.google.common.net.HostAndPort>,org.jclouds.domain.LoginCredentials,brooklyn.util.config.ConfigBag) in brooklyn.location.jclouds.JcloudsLocation cannot be applied to (org.jclouds.compute.ComputeService,org.jclouds.compute.domain.NodeMetadata,org.jclouds.domain.LoginCredentials,brooklyn.util.config.ConfigBag)
[ERROR] /Users/sam/code/cloudsoft/brooklyn-networking/cloudstack/src/main/java/io/cloudsoft/networking/cloudstack/legacy/LegacyJcloudsCloudstackSubnetLocation.java:[187,5] method does not override or implement a method from a supertype
[ERROR] /Users/sam/code/cloudsoft/brooklyn-networking/cloudstack/src/main/java/io/cloudsoft/networking/cloudstack/legacy/LegacyJcloudsCloudstackSubnetLocation.java:[196,5] method does not override or implement a method from a supertype

@aledsage
Copy link
Member Author

aledsage commented Dec 3, 2013

@sjcorbett @richardcloudsoft thanks, I've incorporated those comments (see the most recent commit).

Are you happy for me to merge now?

I've updated the brooklyn-networking downstream project at https://github.com/cloudsoft/brooklyn-networking/pull/3

@sjcorbett
Copy link
Member

@aledsage Go for it.

aledsage added a commit that referenced this pull request Dec 3, 2013
…rtforwarding

JcloudsLocation for port-forwarding
@aledsage aledsage merged commit ca4d84c into brooklyncentral:master Dec 3, 2013
@aledsage aledsage deleted the feature/JcloudsLocation-for-portforwarding branch December 3, 2013 17:33
aledsage added a commit to aledsage/legacy-brooklyn that referenced this pull request Dec 11, 2013
- in brooklyncentral#1082
  a superset of these changes were done in master
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.

None yet

3 participants