Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Andrea Turli
thanks @nacx for your help and review -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#issuecomment-362618718

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Andrea Turli
merging it -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#issuecomment-362617035

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Andrea Turli
Closed #1175. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#event-1455308130

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Andrea Turli
merged at [master](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=09936b5) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#issuecomment-362618900

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Ignasi Barrera
nacx approved this pull request. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#pullrequestreview-93641279

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-02 Thread Ignasi Barrera
nacx commented on this pull request. > - @Provides - @Singleton - @Named("SECURITYGROUP_PRESENT") - protected final Predicate securityGroupEventualConsistencyDelay( -FindSecurityGroupWithNameAndReturnTrue in, -

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-02-01 Thread Andrea Turli
@andreaturli pushed 1 commit. ff4a725 simplify securitygroup cache -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds/pull/1175/files/753638f986a376e6abd94ccc57ea35bad91a79af..ff4a7257f537a28788cfdf3d0956808a4115c4c2

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Andrea Turli
@andreaturli pushed 1 commit. 753638f fix listSecurityGroupsForNode -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds/pull/1175/files/4e0b06b2510001ccd9a83f3166989d6119255f46..753638f986a376e6abd94ccc57ea35bad91a79af

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Ignasi Barrera
nacx commented on this pull request. > + return ImmutableSet.of(); + } + return getSecurityGroupApi(region).listSecurityGroups().concat().transform(neutronSecurityGroupToSecurityGroup.create(location)).toSet(); + } + + @Override + public Set

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Andrea Turli
andreaturli commented on this pull request. > + return ImmutableSet.of(); + } + return getSecurityGroupApi(region).listSecurityGroups().concat().transform(neutronSecurityGroupToSecurityGroup.create(location)).toSet(); + } + + @Override + public Set

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Andrea Turli
andreaturli commented on this pull request. > + return ImmutableSet.of(); + } + return getSecurityGroupApi(region).listSecurityGroups().concat().transform(neutronSecurityGroupToSecurityGroup.create(location)).toSet(); + } + + @Override + public Set

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Andrea Turli
@nacx here's the result of `NeutronSecurityGroupExtensionLiveTest` against a provider with keystone v3 and Neutron support ``` --- T E S T S --- Running

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-31 Thread Ignasi Barrera
nacx requested changes on this pull request. I've debugged the failure and it turns to be a test concurrency issue with the two tests that verify the behavior of the SG cache. If you apply this patch to make sure both tests don't use the same security group, tests should pass: ```diff diff

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-30 Thread Andrea Turli
here's my live tests results: - for `NovaSecurityGroupExtension` ``` --- T E S T S --- Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-30 Thread Andrea Turli
@andreaturli pushed 1 commit. 4e0b06b fix removal from security group cache -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-30 Thread Ignasi Barrera
nacx commented on this pull request. Just one comment. Apart from that looks good. Could you share the results of the live tests for the Nova and Neutron SG extensions? > + if (region == null) { + return ImmutableSet.of(); + } + return

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-22 Thread Andrea Turli
rebuild please -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1175#issuecomment-359433463

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-19 Thread Andrea Turli
@nacx I think I've addressed most of your comments and now the duplication of `Find/Create` SecurityGroup is gone. I still have some expected tests to fix but please let me know if the code is more readable now. Thanks -- You are receiving this because you are subscribed to this thread.

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-19 Thread Andrea Turli
@andreaturli pushed 1 commit. 0bdbdbf addressing Nacx comments -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds/pull/1175/files/7846a2ddf32ed07e6fc394a43d954fc6fe039d28..0bdbdbf29214504f4e676e0afd6fb43f83275e4e

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-19 Thread Andrea Turli
@nacx thanks for the review Main reason I have 2 couples of `Create/FindSecurityGroup` now (I want to remove them before merging this PR) is because of `NovaSecurityGroupExtension` and `NeutronSecurityGroupExtension` `NovaSecurityGroupExtension` needs to use `NovaApi` to create security groups,

Re: [jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-19 Thread Ignasi Barrera
nacx requested changes on this pull request. Thanks @andreaturli! Looks like a great starting point. Apart from the comments I've made I found it difficult to understand the duplicated "Create/FindSecurityGroup" classes. For a proper review, could you please: * Explain what is each new class,

[jclouds/jclouds] [JCLOUDS-1377] add support for injectable Neutron Context into Nova (#1175)

2018-01-19 Thread Andrea Turli
cc @nacx You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds/pull/1175 -- Commit Summary -- * [JCLOUDS-1377] add support for injectable Neutron Context into Nova -- File Changes -- M apis/openstack-nova/pom.xml (5) M apis/openstack