Re: [jclouds-labs-google] [JCLOUDS-442] reduces the firewalls created by createNodesInGroup (#20)

2014-02-05 Thread Andrea Turli
@@ -70,7 +76,14 @@ public BaseGoogleComputeEngineApiLiveTest() { - provider = google-compute-engine; + this.provider = google-compute-engine; not sure why this happens, I'll revert as it seems more common on jclouds --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs-google] [JCLOUDS-442] reduces the firewalls created by createNodesInGroup (#20)

2014-02-05 Thread Andrea Turli
@@ -56,7 +57,7 @@ public FirewallOptions addAllowedRule(Firewall.Rule allowedRule) { /** * @see org.jclouds.googlecomputeengine.domain.Firewall#getAllowed() */ - public FirewallOptions allowedRules(SetFirewall.Rule allowedRules) { + public FirewallOptions

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-02-25 Thread Andrea Turli
@demobox I think this PR needs to be applied first to 1.7.x and to `master` as well. Are you suggesting a different workflow? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/296#issuecomment-36007673

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-02-26 Thread Andrea Turli
Hi Ignasi, I think you are right, a little of context could definitely ease the review. Recently I've been working with SoftLayer and I tried to fix some blocking issue (PR#200, PR#204) but unfortunately they didn't fix them all. In particular VirtualGuestToNodeMetadata happens to be slow and

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-05 Thread Andrea Turli
a VirtualGuest into a json string valid for creating a CCI via softlayer api + * The string is set into the payload of the HttpRequest + * + * @author Andrea Turli + */ +public class VirtualGuestToJson implements Binder { I agree with you but in the jclouds philosophy I think VirtualGuestApi

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-05 Thread Andrea Turli
@@ -197,20 +181,4 @@ public SoftLayerTemplateOptions userMetadata(MapString, String userMetadata) { public SoftLayerTemplateOptions userMetadata(String key, String value) { return SoftLayerTemplateOptions.class.cast(super.userMetadata(key, value)); } - - /** -*

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-05 Thread Andrea Turli
@@ -135,100 +148,129 @@ public SoftLayerComputeServiceAdapter(SoftLayerApi client, checkState(orderInSystem, order for guest %s doesn't have login details within %sms, result, Long.toString(guestLoginDelay)); it is actually a good idea. Not sure if any other provider

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-11 Thread Andrea Turli
Thank you very much for your review, Ignasi! I think your comments make really sense to me and the summary is quite useful Sorry for the missing (important!) tests but I'll add them while I address your comments. --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-11 Thread Andrea Turli
+ private final int statusId; + private final String mountType; + private final String mountMode; + private final int bootableFlag; + private final String device; + private final VirtualDiskImage virtualDiskImage; + private final VirtualGuest guest; + +

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-11 Thread Andrea Turli
+ private final int statusId; + private final String mountType; + private final String mountMode; + private final int bootableFlag; + private final String device; + private final VirtualDiskImage virtualDiskImage; + private final VirtualGuest guest; + +

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-11 Thread Andrea Turli
@Consumes(MediaType.APPLICATION_JSON) - @Fallback(Fallbacks.NullOnNotFoundOr404.class) - ProductPackage getProductPackage(@PathParam(id) long id); + @Fallback(Fallbacks.EmptySetOnNotFoundOr404.class) + SetSoftwareDescription getAllObjects(); @nacx this confuses me as well: the

Re: [jclouds-labs-google] [JCLOUDS-442] reduces the firewalls created by createNodesInGroup (#20)

2014-03-11 Thread Andrea Turli
* @see org.jclouds.googlecomputeengine.features.FirewallApi#patch(String, org.jclouds.googlecomputeengine.options.FirewallOptions) */ - private void getOrCreateFirewalls(GoogleComputeEngineTemplateOptions templateOptions, Network network, -

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-11 Thread Andrea Turli
/** * @author Adrian Cole */ @Test(groups = unit, testName = VirtualGuestToNodeMetadataTest) public class VirtualGuestToNodeMetadataTest { + + // TODO + /* I think this test doesn't make sense anymore as the VirtualGuestToNodeMetadata is now really simpler. --- Reply to this

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-03-12 Thread Andrea Turli
@nacx I've addressed all of your comments but the 'rename API methods' as we are still waiting for opinions from @demobox The LiveTests are quite ok but still not perfect Results : Tests run: 150, Failures: 18, Errors: 0, Skipped: 13 The failures come from `SoftLayerTemplateBuilderLiveTest`

[jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-03-21 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-labs master Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-labs/pull/57 -- Commit Summary -- * [JCLOUDS-500] Initial commit for docker -- File Changes

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-03-21 Thread Andrea Turli
+ @QueryParam(limit) String limit, + @QueryParam(since) String since, + @QueryParam(before) String before); + + /** +* List containers +* +* @return the running containers. +*/ + @Named(containers:list) + @GET +

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-03-21 Thread Andrea Turli
+ locationBuilder.description(); + locationBuilder.id(); + locationBuilder.scope(LocationScope.HOST); + nodeMetadataBuilder.location(locationBuilder.build()); + // TODO setup hardware and hostname properly + if (container.getStatus() != null) { +

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-03-21 Thread Andrea Turli
+ } + + private int getLoginPort(Container container) { + if (container.getNetworkSettings() != null) { + MapString, ListMapString,String ports = container.getNetworkSettings().getPorts(); + if(ports != null) { +return

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-03-21 Thread Andrea Turli
+ */ +@Singleton +public class DockerComputeServiceAdapter implements +ComputeServiceAdapterContainer, Hardware, Image, Location { + + @Resource + @Named(ComputeServiceConstants.COMPUTE_LOGGER) + protected Logger logger = Logger.NULL; + + private final DockerApi api; +

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
+import com.google.common.base.Splitter; +import com.google.common.collect.Iterables; + +import static com.google.common.collect.Iterables.getLast; + +/** + * @author Andrea Turli + */ +public class OperatingSystems { + + public static FunctionString, Integer bits() { + return

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
Password pw = get(result.getOperatingSystem().getPasswords(), 0); return new NodeAndInitialCredentialsVirtualGuest(result, result.getId() + , LoginCredentials.builder().user(pw.getUsername()).password( pw.getPassword()).build()); } - private

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
+List? extends Volume volumes2 = h2.getVolumes(); +ComparisonChain comparisonChain = ComparisonChain.start().compare(getCores(h1), getCores(h2)) +.compare(h1.getRam(), h2.getRam()) +.compare(getSpace(h1), getSpace(h2)) +

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
@@ -107,13 +176,30 @@ protected ConcreteBuilder self() { private final String country; private final String state; private final String description; + private final int accountId; + private final String address; good spot, thanks! --- Reply to this email directly or view

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
} @Override public String toString() { - return string().toString(); + return OperatingSystem{ + + id=' + id + '\'' + Stupid IDE :) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/296/files#r11151050

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-04-01 Thread Andrea Turli
+ @Nullable + public SoftwareDescription getSoftwareDescription() { + return this.softwareDescription; + } + + @Override + public int hashCode() { + return Objects.hashCode(id); + } + + @Override + public boolean equals(Object obj) { + if (this == obj)

[jclouds-labs-google] add support for rhel, suse and windows images (#23)

2014-04-11 Thread Andrea Turli
As per https://developers.google.com/compute/docs/operating-systems, I#39;ve added the RHEL, SUSE and Windows support to listImages and getImage You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-labs-google feature/add-operating-systems Or you can

Re: [jclouds-labs-google] add support for rhel, suse and windows images (#23)

2014-04-11 Thread Andrea Turli
.build(); } @Override public Image getImage(String id) { return Objects.firstNonNull(api.getImageApiForProject(userProject.get()).get(id), - Objects.firstNonNull(api.getImageApiForProject(DEBIAN_PROJECT).get(id), -

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-04-12 Thread Andrea Turli
@imesh this provider is still at its early stage but it covers all of the CRUD operations offerred by remote api for image management and container management. How do you plan to contribute? --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs-google] add support for rhel, suse and windows images (#23)

2014-04-12 Thread Andrea Turli
return Objects.firstNonNull(api.getImageApiForProject(userProject.get()).get(id), - Objects.firstNonNull(api.getImageApiForProject(DEBIAN_PROJECT).get(id), -

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-04-12 Thread Andrea Turli
Hi @imesh thanks for your presentation. If you cat test it that would be great! Please let us know your result/experience/suggestion eithere here or (better) on jclouds ml. Thanks! --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-04-17 Thread Andrea Turli
Thanks @demobox I will. Not sure about the latest 2 checkstyle violations: any hint? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/57#issuecomment-40726804

[jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-04-25 Thread Andrea Turli
https://issues.apache.org/jira/browse/JCLOUDS-550 You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-labs-google fix/machineType-obsolete Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-labs-google/pull/24

Re: [jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-04-25 Thread Andrea Turli
@abayer @ignasi, do you mind to have a look and merge it if fine? thanks --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/24#issuecomment-41392055

Re: [jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-04-25 Thread Andrea Turli
Thanks @nacx, your first comment is a very good spot: maybe better to remove the checkNotNull, ok? For you second comment: would it make sense to add a tag to the hardware to store the deprecated status, so that one can filter on it? --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Add vSphere support (#364)

2014-05-16 Thread Andrea Turli
+dependency +groupIdorg.apache.jclouds.driver/groupId +artifactIdjclouds-sshj/artifactId +version${project.version}/version +scopetest/scope +/dependency +dependency +

Re: [jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-05-21 Thread Andrea Turli
} public Builder fromMachineType(MachineType in) { return super.fromResource(in).memoryMb(in.getMemoryMb()).imageSpaceGb(in.getImageSpaceGb()).scratchDisks(in .getScratchDisks()).maximumPersistentDisks(in.getMaximumPersistentDisks()) -

Re: [jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-05-21 Thread Andrea Turli
+ api.getMachineTypeApiForProject(userProject.get()) + .listInZone(DEFAULT_ZONE_NAME) + .concat() + .filter(new PredicateMachineType() { + @Override + public boolean

Re: [jclouds-labs-google] [JCLOUDS-550] fix for obsolete machineTypes (#24)

2014-05-21 Thread Andrea Turli
I've addressed your comments and test @mikolajz CreateServer. The example is fine, but .smallest() doesn't return f1-micro but n1-standard-1 as it is the first hardware that supports the image required. In fact MachineTypeInZoneToHardware.apply has this logic where ```

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-22 Thread Andrea Turli
+ .id() + .ram(container.getConfig().getMemory()) + .processor(new Processor(container.getConfig().getCpuShares(), container.getConfig().getCpuShares())) + .build()); + // TODO Set up location

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-22 Thread Andrea Turli
+ builder.operatingSystem(OperatingSystem.builder().description(linux).family(OsFamily.LINUX).build()); + return builder.build(); + } + + private String cleanUpName(String name) { + return name.startsWith(/) ? name.substring(1) : name; + } + + private

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-22 Thread Andrea Turli
+ + @Inject + public DockerComputeServiceAdapter(DockerApi api) { + this.api = checkNotNull(api, api); + } + + @Override + public NodeAndInitialCredentialsContainer createNodeWithGroupEncodedIntoName(String group, String name, +

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-22 Thread Andrea Turli
+ @SuppressWarnings(unchecked) + @Override + public R extends HttpRequest R bindToRequest(R request, Object input) { + checkArgument(checkNotNull(input, input) instanceof File, this binder is only valid for File!); + checkNotNull(request, request); + + File dockerFile

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-22 Thread Andrea Turli
+*/ + @Named(images:list) + @GET + @Path(/images/json) + @Fallback(Fallbacks.EmptySetOnNotFoundOr404.class) + SetImage listImages(ListImageOptions options); + + /** +* Inspect an image +* +* @param imageId The id of the image to inspect. +* @return

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-05-30 Thread Andrea Turli
+ } + + @Override + public IterableLocation listLocations() { + return ImmutableSet.of(); + } + + @Override + public Container getNode(String id) { + return api.getRemoteApi().inspectContainer(id); + } + + @Override + public void destroyNode(String id) {

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-06-03 Thread Andrea Turli
@imesh Thanks for your feedback. That's odd because I can see ``` $ mvn dependency:tree|grep guava [INFO] | \- com.google.guava:guava:jar:17.0:compile ``` and I can build jclouds docker master Are you using jclouds-docker from another application as @andrewgaul was guessing? --- Reply to

Re: [jclouds] Add vSphere support (#364)

2014-06-05 Thread Andrea Turli
@igreenfield Thanks for resuming my old work on jclouds-vsphere (https://github.com/jclouds/legacy-jclouds/pull/910) with this refreshed PR. I'd have appreciated to be in the loop to help. Also, I think this PR should be issued against jclouds/jclouds-lab project. @nacx @demobox wdyt? ---

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-06-06 Thread Andrea Turli
+ destroyNode(container.getId()); + throw new IllegalStateException(String.format(Container %s has not started correctly, container.getId())); + } + return new NodeAndInitialCredentialsContainer(container, container.getId(), +

[jclouds] refactor BaseComputeServiceLiveTest (#429)

2014-07-01 Thread Andrea Turli
To simplify the extension of this Live test. This don#39;t change the behavior of the test but it should simplify the testing of some apis, like docker, that needs to inject a particular template built with `buildTemplate` across all the tests in this class. You can merge this Pull Request by

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-07-01 Thread Andrea Turli
Here you can find the result of `mvn clean install -Plive` https://gist.github.com/andreaturli/595ce6e44a987ed5be06 unfortunately there are still issue with the DockerComputeServiceLiveTest but I think it is good to be accepted on jclouds-labs at least and fix liveTests there, if you agree

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-07-02 Thread Andrea Turli
@@ -47,17 +47,17 @@ public DatacenterToLocation(JustProvider provider) { @Override public Location apply(Datacenter datacenter) { -return new LocationBuilder().scope(LocationScope.ZONE) -.metadata(ImmutableMap.String, Objectof())

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-07-02 Thread Andrea Turli
+ String operatingSystemReferenceCode = checkNotNull(virtualGuest.getOperatingSystem() + .getOperatingSystemReferenceCode(), operatingSystemReferenceCode); + templateObject = new TemplateObject(hostname, domain, startCpus, maxMemory, true, +

[jclouds] [JCLOUDS-474] refactor SoftLayer support (#431)

2014-07-02 Thread Andrea Turli
It modernizes SoftLayer CCI support by re-using the same API calls used by SoftLayer Python client. The implementation should be not more easily maintainable and robust. You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds new/softlayer-cci Or you can

Re: [jclouds] Refactor SoftLayer CCI support (#296)

2014-07-02 Thread Andrea Turli
Closed #296. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/296#event-137605769

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)

2014-07-07 Thread Andrea Turli
great @nacx! Thanks again for your valuable reviews --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/57#issuecomment-48165987

[jclouds-site] add docker guide (#110)

2014-07-08 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-site feature/docker Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-site/pull/110 -- Commit Summary -- * add docker guide -- File Changes -- M

Re: [jclouds-site] add docker guide (#110)

2014-07-15 Thread Andrea Turli
@nacx could you merge it now? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/110#issuecomment-49020978

Re: [jclouds-site] add docker guide (#110)

2014-07-15 Thread Andrea Turli
Thanks @nacx, not sure why I don't get notification from this repo :+1: --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/110#issuecomment-49040391

Re: [jclouds] [JCLOUDS-474] refactor SoftLayer support (#431)

2014-07-15 Thread Andrea Turli
@nacx please find the result of `mvn clean install -Plive` on that [gist](https://gist.github.com/andreaturli/ae37d84c446c5f0f182c) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/431#issuecomment-49044336

Re: [jclouds-labs] Fix DockerErrorHandler’s use of Strings2.toString (#69)

2014-07-17 Thread Andrea Turli
Lgtm :+1 Thanks @aledsage for taking care of it --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/69#issuecomment-49331519

Re: [jclouds-labs] Fix DockerErrorHandler’s use of Strings2.toString (#69)

2014-07-17 Thread Andrea Turli
The error reported by the builders is now for cdmi, similar issue --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/69#issuecomment-49332591

Re: [jclouds] [JCLOUDS-474] refactor SoftLayer support (#431)

2014-07-18 Thread Andrea Turli
Hi @andrewgaul I'm not able to do that just now as I don't have access to my laptop for next 2 weeks. Sorry about that. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/431#issuecomment-49499874

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-07-30 Thread Andrea Turli
Sorry @ashmrtnz I still need to address them. I should have time next week, though, if it is fine for you. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/22#issuecomment-50678291

Re: [jclouds] [JCLOUDS-474] refactor SoftLayer support (#431)

2014-08-03 Thread Andrea Turli
Hi @andrewgaul I was looking now at the checkstyle violations but you already fix them: thanks! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/431#issuecomment-51002371

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (9b124ee)

2014-08-06 Thread Andrea Turli
Hi @Icheng61 I've documented an initial example at http://jclouds.apache.org/guides/docker/. Please give it a go and let us know the result. --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (9b124ee)

2014-08-07 Thread Andrea Turli
By default, Docker assigns a NAT'ed IP to the created container which is parsed in the Container domain class If you need more advanced networking configuration you can try http://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/ or https://docs.docker.com/articles/networking/ but

[jclouds-site] Update docker.md (#122)

2014-08-08 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-site patch-1 Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-site/pull/122 -- Commit Summary -- * Update docker.md -- File Changes -- M

Re: [jclouds] Enforce ASF copyright header via Checkstyle (#472)

2014-08-11 Thread Andrea Turli
Hi @demobox I think it should be ok now with PR https://github.com/jclouds/jclouds/pull/476 --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/472#issuecomment-51773373

[jclouds] fix ASF copyright headers on SoftLayer (#476)

2014-08-11 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds fix/sl-checkstyle-violations Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds/pull/476 -- Commit Summary -- * fix ASF copyright headers on SoftLayer --

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-08-11 Thread Andrea Turli
+ + /** +* Returns the specified ForwardingRule resource. +* +* @param region the name of the region scoping this request. +* @param forwardingRule the name of the ForwardingRule resource to return. +* @return a ForwardingRule resource. +*/ +

[jclouds] fix JCLOUDS-662 (#479)

2014-08-12 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds fix/JCLOUDS-662 Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds/pull/479 -- Commit Summary -- * fix creation of blockDevices using

Re: [jclouds] fix JCLOUDS-662 (#479)

2014-08-12 Thread Andrea Turli
squashed and rebased! thanks @demobox! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/479#issuecomment-51922305

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-08-13 Thread Andrea Turli
@@ -79,6 +80,15 @@ FirewallApi getFirewallApiForProject(@PathParam(project) String projectName); /** +* Provides access to ForwardingRule features +* +* @param projectName the name of the project +*/ + @Delegate + @Path(/projects/{project}) @jdaggett

[jclouds] backport to 1.8.x of JCLOUDS-662 (#484)

2014-08-13 Thread Andrea Turli
fix creation of blockDevices using SoftLayerTemplateOptions You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds 1.8.x Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds/pull/484 -- Commit Summary -- * fix

Re: [jclouds-labs] Add vSphere support (#61)

2014-09-01 Thread Andrea Turli
Brilliant! So you can remove vijava dependency right now from pom.xml! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/61#issuecomment-54031325

Re: [jclouds-site] Domain classes, better builders blog post. (#124)

2014-09-03 Thread Andrea Turli
+name: sampledb +} +], +host: %, +name: demouser +} +] +} +{% endhighlight %} + +To parse the response, jclouds uses [domain

Re: [jclouds] Updated the requests in unit test case to include globalIdentifier (#531)

2014-09-28 Thread Andrea Turli
Hi Jai, To run live tests please have a look at http://wiki.apache.org/jclouds/Testing where for provider you need softlayer. HTH, Andrea Il 28/set/2014 04:02 jaiganeshm notificati...@github.com ha scritto: Pls find the stack trace in the below gist link

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-09-30 Thread Andrea Turli
+ + /** +* Creates a ForwardingRule resource in the specified project and region using the data included in the request. +* +* @param forwardingRuleName the name of the forwarding rule. +* @param targetSelfLink the URL of the target resource to receive the matched

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-09-30 Thread Andrea Turli
+ @Transform(ParseTargetPools.ToPagedIterable.class) + @Fallback(EmptyPagedIterableOnNotFoundOr404.class) + PagedIterableTargetPool listInRegion(@PathParam(region) String region); + + @Named(TargetPools:list) + @GET + @Consumes(MediaType.APPLICATION_JSON) +

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-09-30 Thread Andrea Turli
org.testng.Assert.assertEquals; +import static org.testng.Assert.assertTrue; +import static org.testng.AssertJUnit.assertNull; + +/** + * @author Andrea Turli + */ +@Test(groups = unit) +public class ForwardingRuleApiExpectTest extends BaseGoogleComputeEngineApiExpectTest { it is probably a good idea

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-09-30 Thread Andrea Turli
+ + /** +* Creates a ForwardingRule resource in the specified project and region using the data included in the request. +* +* @param forwardingRuleName the name of the forwarding rule. +* @param targetSelfLink the URL of the target resource to receive the matched

Re: [jclouds] Updated the requests in unit test case to include globalIdentifier (#531)

2014-10-05 Thread Andrea Turli
Thanks @jaiganeshm I'll review that asap, so that we can merge it soon. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/531#issuecomment-57944005

[jclouds] fix support for private images in SoftLayer (#568)

2014-10-10 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds fix/private-images Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds/pull/568 -- Commit Summary -- * fix support for private images in SoftLayer -- File

Re: [jclouds] fix support for private images in SoftLayer (#568)

2014-10-10 Thread Andrea Turli
thank @nacx I took the occasion to refactor listImages a bit more, now looks to me simpler to read and maintain. Thoughts? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/568#issuecomment-58666540

Re: [jclouds] fix support for private images in SoftLayer (#568)

2014-10-13 Thread Andrea Turli
Thanks @demobox Main reason for this cleanup is that the private image support is currently `broken` so it would be nice to have that merged soon. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/568#issuecomment-58907317

Re: [jclouds] fix support for private images in SoftLayer (#568)

2014-10-14 Thread Andrea Turli
Thanks @adriancole @demobox, I've addressed your comments and I've got a LGTM so good to merge --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/568#issuecomment-59002034

Re: [jclouds] fix support for private images in SoftLayer (#568)

2014-10-15 Thread Andrea Turli
@demobox, I've cherry-picked the commit onto master, shall I close the PR manually? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/568#issuecomment-59170282

Re: [jclouds] fix support for private images in SoftLayer (#568)

2014-10-15 Thread Andrea Turli
Closed #568. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/568#event-179079167

[jclouds-site] add softlayer getting started (#134)

2014-10-15 Thread Andrea Turli
You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds-site feature/softlayer Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-site/pull/134 -- Commit Summary -- * add softlayer getting started -- File

Re: [jclouds-site] add softlayer getting started (#134)

2014-10-16 Thread Andrea Turli
tdsoftlayer/td -td/td +tdSG,US-CA,US-TX,US-VA,US-WA,NL,HK,NSFTW-IL,AU,CA-ON,GB/td great idea! thanks --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/134/files#r18943488

Re: [jclouds-site] add softlayer getting started (#134)

2014-10-16 Thread Andrea Turli
+ +{% highlight java %} +// Get a context with softlayer that offers the portable BlobStore API +BlobStoreContext context = ContextBuilder.newBuilder(swift) + .credentials(tenantName:accessKey, apiKey) +

Re: [jclouds-site] add softlayer getting started (#134)

2014-10-17 Thread Andrea Turli
@jdaggett do you think it is good to merge it? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/134#issuecomment-59516058

Re: [jclouds-site] add softlayer getting started (#134)

2014-10-17 Thread Andrea Turli
@jdaggett yeah maybe it is less confusing, thanks! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/134#issuecomment-59572197

Re: [jclouds-site] add softlayer getting started (#134)

2014-10-22 Thread Andrea Turli
@jdaggett can we close that? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/134#issuecomment-60057592

Re: [jclouds-labs-google] initial commit to support GCE LB (#22)

2014-10-22 Thread Andrea Turli
thanks @danbroudy for your help. I've pushed my latest changes which address most of the comments but probably need some more polish. Feel free to continue from here, Happy to review your changes once finished with @ccustine --- Reply to this email directly or view it on GitHub:

[jclouds] add support for extra SoftLayerTemplateOptions (#582)

2014-10-23 Thread Andrea Turli
- add support for primaryNetworkComponent.networkVlan.id, primaryBackendNetworkComponent.networkVlan.id, postInstallScriptUri, user-data, privateNetworkOnly via SoftLayerTemplateOptions You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds master Or you

Re: [jclouds] add support for extra SoftLayerTemplateOptions (#582)

2014-10-24 Thread Andrea Turli
@demobox could you please have a look and merge it if ok it is a simple commit but I need to apply it to master and 1.8.x asap. Thanks! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/582#issuecomment-60369268

Re: [jclouds] add support for extra SoftLayerTemplateOptions (#582)

2014-10-24 Thread Andrea Turli
merged --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/582#issuecomment-60394241

[jclouds] backport from master (#584)

2014-10-24 Thread Andrea Turli
it backports to 1.8.x - https://github.com/jclouds/jclouds/commit/a563dd9fbb7fcca3ba0606ec548f655012bb2d4f - https://github.com/jclouds/jclouds/commit/f134367c692c70b560c7ba1d6408277725185361 You can merge this Pull Request by running: git pull https://github.com/andreaturli/jclouds 1.8.x

Re: [jclouds-labs-google] Remove redundant binder implementations in GCE. (#65)

2014-10-25 Thread Andrea Turli
lgtm :+1: thanks for this cleanup --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/65#issuecomment-60490322

Re: [jclouds-labs-google] Cleanup binders in GCE: don't use sneaky injection. don't redundantly check null (#64)

2014-10-25 Thread Andrea Turli
public class DiskCreationBinder extends BindToJsonPayload { - @Inject - public DiskCreationBinder(Json jsonBinder) { + @Inject public DiskCreationBinder(Json jsonBinder) { Is this style preferable? why? --- Reply to this email directly or view it on GitHub:

  1   2   3   4   5   6   7   8   9   10   >