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

vcloud-director (for port-forwarding): should re-authenticate when token expires #6

Open
aledsage opened this issue Nov 21, 2014 · 0 comments

Comments

@aledsage
Copy link
Member

I ran a test in my debugger; it stopped at a breakpoint over night. In the morning when it resumed, I got the error below.

I'm guessing that the authentication token had expired, and that we have no logic for vcloud-director to get a new token.

2014-11-21 10:11:05,922 ERROR b.n.v.PortForwarderVcloudDirector [brooklyn-execmanager-WAeM2j6d-9]: Failed creating port forwarding rule on brooklyn.networking.vclouddirector.PortForwarderVcloudDirector@2c05c9f3 to 192.168.109.12:22
com.vmware.vcloud.sdk.VCloudException: Access is forbidden
        at com.vmware.vcloud.sdk.Response.handleUnExpectedResponse(Response.java:132) ~[vcloud-java-sdk-5.5.0.jar:na]
        at com.vmware.vcloud.sdk.SdkUtil.validateResponse(SdkUtil.java:189) ~[vcloud-java-sdk-5.5.0.jar:na]
        at com.vmware.vcloud.sdk.SdkUtil.get(SdkUtil.java:99) ~[vcloud-java-sdk-5.5.0.jar:na]
        at com.vmware.vcloud.sdk.admin.extensions.VcloudAdminExtension.<init>(VcloudAdminExtension.java:97) ~[vcloud-java-sdk-5.5.0.jar:na]
        at com.vmware.vcloud.sdk.VcloudClient.getVcloudAdminExtension(VcloudClient.java:741) ~[vcloud-java-sdk-5.5.0.jar:na]
        at brooklyn.networking.vclouddirector.NatService.queryEdgeGateways(NatService.java:214) ~[brooklyn-networking-vcloud-director-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.vclouddirector.NatService.getEdgeGateway(NatService.java:193) ~[brooklyn-networking-vcloud-director-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.vclouddirector.NatService.openPortForwarding(NatService.java:144) ~[brooklyn-networking-vcloud-director-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.vclouddirector.PortForwarderVcloudDirector.openPortForwarding(PortForwarderVcloudDirector.java:154) [brooklyn-networking-vcloud-director-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.vclouddirector.PortForwarderVcloudDirector.openPortForwarding(PortForwarderVcloudDirector.java:127) [brooklyn-networking-vcloud-director-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.subnet.PortForwarderClient.openPortForwarding(PortForwarderClient.java:144) [brooklyn-networking-common-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.subnet.SubnetTierImpl$SubnetTierJcloudsPortForwarderExtension.openPortForwarding(SubnetTierImpl.java:171) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:617) [classes/:na]
        at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:520) [classes/:na]
        at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:118) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:56) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:277) [classes/:na]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:1) [classes/:na]
        at brooklyn.util.task.Tasks.withBlockingDetails(Tasks.java:99) [classes/:na]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:275) [classes/:na]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:1) [classes/:na]
        at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:337) [classes/:na]
        at brooklyn.util.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:469) [classes/:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
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

No branches or pull requests

1 participant