[jira] [Commented] (JCLOUDS-890) Chef bootstrap fails if no attributes are defined

2015-04-23 Thread Ignasi Barrera (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509847#comment-14509847 ] Ignasi Barrera commented on JCLOUDS-890: Patch: https://github.com/jclouds/jcloud

[jclouds] JCLOUDS-890: Prevent NPE when generating the Chef attributes file (#734)

2015-04-23 Thread Ignasi Barrera
https://issues.apache.org/jira/browse/JCLOUDS-890 You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds/pull/734 -- Commit Summary -- * JCLOUDS-890: Prevent NPE when generating the Chef attributes file -- File Changes -- M apis/chef/src/main

Re: [jclouds-labs-openstack] adding: StackApi, Stack and StackResource (#188)

2015-04-23 Thread Zack Shoylev
> +.template(template) > +.templateUrl(templateUrl) > +.parameters(parameters) > +.disableRollback(disableRollback) > +.files(files) > +.environment(environment).build(); > + } > + > + public static final class Builder { >

Re: [jclouds-labs-openstack] adding: StackApi, Stack and StackResource (#188)

2015-04-23 Thread Ignasi Barrera
> +.template(template) > +.templateUrl(templateUrl) > +.parameters(parameters) > +.disableRollback(disableRollback) > +.files(files) > +.environment(environment).build(); > + } > + > + public static final class Builder { >

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Zack Shoylev
It should be easy to refactor. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/733#issuecomment-95685477

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Zack Shoylev
> - try { > - permissions = getPosixFilePermissions(path); > - if (access == ContainerAccess.PRIVATE) { > -permissions.remove(PosixFilePermission.OTHERS_READ); > - } else if (access == ContainerAccess.PUBLIC_READ) { > -permissions.add(PosixFilePe

Re: [jclouds-labs-openstack] adding: StackApi, Stack and StackResource (#188)

2015-04-23 Thread Zack Shoylev
> +.template(template) > +.templateUrl(templateUrl) > +.parameters(parameters) > +.disableRollback(disableRollback) > +.files(files) > +.environment(environment).build(); > + } > + > + public static final class Builder { >

Re: [jclouds] Fixes AWS EC2 virtualization types of hardware profiles (#732)

2015-04-23 Thread Alex Heneveld
Thanks @nacx - pretty sure there was another `test.aws.` it complained about - `vpc` or `subnet` or `keyPair` i forget - but i was running individual classes from the IDE. i'll do the maven run and post this overnight. --- Reply to this email directly or view it on GitHub: https://github.com/jc

Re: [jclouds] Fixes AWS EC2 virtualization types of hardware profiles (#732)

2015-04-23 Thread Ignasi Barrera
Running them as follows (from the jclouds repo root) should be enough: ```bash mvn integration-test -pl :aws-ec2 -Plive -Dtest.aws.identity= -Dtest.aws.credential= ``` --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/732#issuecomment-95602324

Re: [jclouds-examples] adding google-lb example (#75)

2015-04-23 Thread Ignasi Barrera
> + > +--> > +http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > + 4.0.0 > + org.apache.jclouds.examples > + google-lb > + 1.9.0 > +

Re: [jclouds] Fixes AWS EC2 virtualization types of hardware profiles (#732)

2015-04-23 Thread Alex Heneveld
I've run some of the live tests (template builder and compute in aws-ec2). I stopped when I hit some required settings I didn't understand. "Can this be automated?" :) If not point me at a crib sheet for AWS and i'll run those live tests overnight tonight. --- Reply to this email directly or

Re: [jclouds] Fixes AWS EC2 virtualization types of hardware profiles (#732)

2015-04-23 Thread Ignasi Barrera
Thanks @ahgittin! I'll have a look at it later today. Meanwhile, do you have live test results for this PR? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/732#issuecomment-95600267

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
There is several repeated logic in this PR. Could you extract it to a WindowsUtils (or whatever) class, to encapsulate it there? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/733#issuecomment-95598170

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
> + } > + aclFileAttributes.setAcl(aclList); > +} else { > + List list = aclFileAttributes.getAcl(); > + > list.add(AclEntry.newBuilder().setPrincipal(everyone).setPermissions( > + AclEntryPermission.READ_DATA,

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
> - try { > - permissions = getPosixFilePermissions(path); > - if (access == ContainerAccess.PRIVATE) { > -permissions.remove(PosixFilePermission.OTHERS_READ); > - } else if (access == ContainerAccess.PUBLIC_READ) { > -permissions.add(PosixFilePe

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
> - Set permissions; > - try { > - permissions = getPosixFilePermissions(path); > - if (access == ContainerAccess.PRIVATE) { > -permissions.remove(PosixFilePermission.OTHERS_READ); > - } else if (access == ContainerAccess.PUBLIC_READ) { > -p

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
>Path path = new File(buildPathStartingFromBaseDir(container)).toPath(); > - Set permissions; > - try { > - permissions = getPosixFilePermissions(path); > - } catch (IOException ioe) { > - throw Throwables.propagate(ioe); > + > + if ( System.getProperty("

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
>Path path = new File(buildPathStartingFromBaseDir(container)).toPath(); > - Set permissions; > - try { > - permissions = getPosixFilePermissions(path); > - } catch (IOException ioe) { > - throw Throwables.propagate(ioe); > + > + if ( System.getProperty("

Re: [jclouds] Adds windows ACL code for file permissions, fixes build. (#733)

2015-04-23 Thread Ignasi Barrera
>Path path = new File(buildPathStartingFromBaseDir(container)).toPath(); > - Set permissions; > - try { > - permissions = getPosixFilePermissions(path); > - } catch (IOException ioe) { > - throw Throwables.propagate(ioe); > + > + if ( System.getProperty("

Re: [jclouds-labs] JCLOUDS-852:Added VMImageOpertaions (#167)

2015-04-23 Thread Ignasi Barrera
Thanks @hsbhathiya! lgtm. Mind squashing the commits? Also, while squashing, mind adding a comment in the VirtualMachineApi mock and live test classes indicating that the capture tests are in the VMImage test classes? One would expect those to be in the VirtualMachineApi test classes, so let's m

Re: [jclouds-labs] JCLOUDS-853: Improve Create VirtualMachine Deployment (#154)

2015-04-23 Thread Ignasi Barrera
@hsbhathiya Any plan to have this PR rebased soon? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/154#issuecomment-95594145

Re: [jclouds-labs] JCLOUDS-886: Roles API implementation (#166)

2015-04-23 Thread Christopher Dancy
@nacx very awesome and thanks! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/166#issuecomment-95581166

Re: [jclouds-labs-openstack] adding: StackApi, Stack and StackResource (#188)

2015-04-23 Thread Ignasi Barrera
Just noted a last comment about the use of maps in the builders. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/188#issuecomment-95544168

Re: [jclouds-labs-openstack] adding: StackApi, Stack and StackResource (#188)

2015-04-23 Thread Ignasi Barrera
> +.template(template) > +.templateUrl(templateUrl) > +.parameters(parameters) > +.disableRollback(disableRollback) > +.files(files) > +.environment(environment).build(); > + } > + > + public static final class Builder { >

[jira] [Updated] (JCLOUDS-892) GCE: Compute abstraction should use one network for all groups

2015-04-23 Thread Ignasi Barrera (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ignasi Barrera updated JCLOUDS-892: --- Affects Version/s: 1.9.0 > GCE: Compute abstraction should use one network for all groups > -

[jira] [Updated] (JCLOUDS-892) GCE: Compute abstraction should use one network for all groups

2015-04-23 Thread Ignasi Barrera (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ignasi Barrera updated JCLOUDS-892: --- Labels: google-compute-engine (was: ) > GCE: Compute abstraction should use one network for

Re: [jclouds-labs] JCLOUDS-886: Roles API implementation (#166)

2015-04-23 Thread Ignasi Barrera
Pushed to [master](http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/32478ef6) and [1.9.x](http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/e7fb5098). Thanks @cdancy! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/166#issu

[jira] [Resolved] (JCLOUDS-886) Implement Roles API for jclouds-labs-shipyard

2015-04-23 Thread Ignasi Barrera (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ignasi Barrera resolved JCLOUDS-886. Resolution: Fixed Fix Version/s: 1.9.1 2.0.0 > Implement Roles AP

Re: [jclouds] Fixes AWS EC2 virtualization types of hardware profiles (#732)

2015-04-23 Thread Ignasi Barrera
It seems those are real [violations](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/1718/org.apache.jclouds.provider$aws-ec2/violations/). Can you fix them? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/732#issuecomment-95530401