Re: [jclouds/jclouds-labs] Fix AzureTemplateBuilderLiveTest and AzureComputeServiceLiveTest (#323)
@andreaturli pushed 1 commit. d9600c0 fix import -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds-labs/pull/323/files/5b68d091d61b69037c7563f79cdb5e627da88529..d9600c00f8ff2ffdb925038ff3dd4cee371b2ab3
[jira] [Commented] (JCLOUDS-1179) putBlob doesn't handle 401s
[ https://issues.apache.org/jira/browse/JCLOUDS-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15566357#comment-15566357 ] Zack Shoylev commented on JCLOUDS-1179: --- https://github.com/jclouds/jclouds/pull/1018 The tests for this were pretty much impossible with our current version of mock web server (https://github.com/square/okhttp/issues/675), and there were some problems with running a live test as well. I tested against a separate piece of code, but I added a test that would work eventually. This should address this same problem for other providers that use http 1.1 with 100-continue. This seems to be a somewhat common problem (https://curl.haxx.se/mail/lib-2004-08/0002.html). > putBlob doesn't handle 401s > > > Key: JCLOUDS-1179 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1179 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 1.9.2, 2.0.0 > Environment: Devstack on Ubuntu 14.04 >Reporter: Nick Howes >Assignee: Zack Shoylev > Labels: openstack-swift > > After the token used by jclouds expires, subsequent `putBlob` requests to > swift fail with 401. > Unlike other operations, the `putBlob` command does not resolve this by > `POST`ing to keystone, but instead tries a few times to `PUT` the blob to > swift. Each request fails with a 401 and then it gives up. > Other operations such as a get _will_ handle a retry by refreshing the auth > token, after which subsequent puts work (until the next expiry) > Project to reproduce can be found here > https://github.com/UniversityofWarwick/jclouds-bug > It should be noted that when running this script I have altered [token] > expiration in /etc/keystone/keystone.conf to be 2 seconds. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
Re: [jclouds/jclouds] JCLOUDS-1179 This also addresses the same problem with other providers (#1018)
https://issues.apache.org/jira/browse/JCLOUDS-1179 -- 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/1018#issuecomment-253019605
[jclouds/jclouds] JCLOUDS-1179 This also addresses the same problem with other providers (#1018)
You can view, comment on, or merge this pull request online at: https://github.com/jclouds/jclouds/pull/1018 -- Commit Summary -- * JCLOUDS-1179 This also addresses the same problem with other providers -- File Changes -- M apis/openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ObjectApiMockTest.java (71) A apis/openstack-swift/src/test/resources/access2.json (249) M core/src/main/java/org/jclouds/http/internal/BaseHttpCommandExecutorService.java (11) -- Patch Links -- https://github.com/jclouds/jclouds/pull/1018.patch https://github.com/jclouds/jclouds/pull/1018.diff -- 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/1018
Re: [jclouds/jclouds-labs] Fix AzureTemplateBuilderLiveTest and AzureComputeServiceLiveTest (#323)
@andreaturli pushed 1 commit. 5b68d09 Fixed build -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds-labs/pull/323/files/7bcf96291e93580e3979121e8c4771d9e2948088..5b68d091d61b69037c7563f79cdb5e627da88529
Re: [jclouds/jclouds-labs] Fix AzureTemplateBuilderLiveTest and AzureComputeServiceLiveTest (#323)
@nacx any suggestions to fix https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/1526/org.apache.jclouds.labs$azurecompute-arm/console ? -- 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-labs/pull/323#issuecomment-252915659
Re: [jclouds/jclouds-labs] Fix AzureTemplateBuilderLiveTest and AzureComputeServiceLiveTest (#323)
@andreaturli pushed 5 commits. 8d0cd4d Make api versions configurable 5b832bf wip 716ab74 wip 4045789 AzureComputeServiceLiveTest passing 7bcf962 Cleanup code -- You are receiving this because you are subscribed to this thread. View it on GitHub: https://github.com/jclouds/jclouds-labs/pull/323/files/8d223b1ee45dbd496d3d4d6149a89c6fe4928f84..7bcf96291e93580e3979121e8c4771d9e2948088