From user-return-2820-archive-asf-public=cust-asf.ponee.io@jclouds.apache.org Thu Jun 21 09:54:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5F4E718062B for ; Thu, 21 Jun 2018 09:54:05 +0200 (CEST) Received: (qmail 54457 invoked by uid 500); 21 Jun 2018 07:54:04 -0000 Mailing-List: contact user-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jclouds.apache.org Delivered-To: mailing list user@jclouds.apache.org Received: (qmail 54447 invoked by uid 99); 21 Jun 2018 07:54:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2018 07:54:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 00BAFC0286 for ; Thu, 21 Jun 2018 07:54:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.869 X-Spam-Level: ** X-Spam-Status: No, score=2.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hj5nBno3mnP3 for ; Thu, 21 Jun 2018 07:54:02 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5934C5F27B for ; Thu, 21 Jun 2018 07:54:02 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id 16-v6so3344818itl.5 for ; Thu, 21 Jun 2018 00:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=W4GUacBv7wIGOfwdPFZfwguldF/WtPvgoatBys6qvBA=; b=dSeKSV+pnp2XzSNP5CwVlpGmGmV/wUUGq3qfFyquSJNaKbkDLQycNCeirTRiAXQf1S uYOxej/qRwtcX9eYCMob8lPxrwilXEjOqDT/Gb2rj8rxrZuAKND02D/YOR7wV8PU9sQR g+lAUgCnUS2GhHripFjsR6P+68BjpM0RyQahAt2Vht0mgqmt7RQ1nuJbgWbEtibKbZrM q1b8mrYeoG5+zsUC3sh5WfpAwYLu7/6N3vh1e88GjKzFjiTGMTJpYgux6RrgrlibfSWc lAZwpIIv6FPErTqxzsycFMm622fHLuJRjbAcKao+UDO05oq66u4PDDPXOaDtzb3dEejY a2Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=W4GUacBv7wIGOfwdPFZfwguldF/WtPvgoatBys6qvBA=; b=A1ArLYzXPQ9zNaeA8BcQ3o5MW+741tVRo34qGSQGLLJBlOANLqeEBG8MXrC3+p54f9 4FXpfPhXeg2ULSUP3ucaxeA1vUFOCj3ExwoYtwu0oyYJ2ggoj84HD9KoadEk8Yh30rx5 UYEWt5KfLVJPu7SY+OTjvm3GRcyX6ScpGn6AEQndxdzEkJzb3/+2Xm3ZCzG2LGrTadpq 0OS/gyOO12SjI5MeU/HDAbkjSZPTGitqgP8FbLHD33FskB21dxwer158fp6DonK3AQ+j JyQpu+EjaOKd5B7LhI0RZXoCBOqPZtYMrWNS2TEzy56QoLuDej7ALUQkv6tTMg8KHuUp MZrw== X-Gm-Message-State: APt69E2SgXxbvGfHLavUYM/WKfQRnus802Ii61CgALcYO9Bu91m5fzhe kSpu8ZJNe9h6JLzy2aLffdFUHuOBJttgbYE/kVvJsg== X-Google-Smtp-Source: ADUXVKJDnKyc3pu0i4sqdVUJFPcGwvHgFp3ysgCpywekWqQIqbehQTXJWF17o04Gm+RoTP+1QX8VYCilrSxYQj0eCZI= X-Received: by 2002:a24:39d8:: with SMTP id l207-v6mr4522413ita.10.1529567640859; Thu, 21 Jun 2018 00:54:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrea Turli Date: Thu, 21 Jun 2018 09:53:48 +0200 Message-ID: Subject: Re: Issue with jclouds computeService listNodes() ? To: user@jclouds.apache.org Content-Type: multipart/alternative; boundary="000000000000e4ba45056f2237f4" --000000000000e4ba45056f2237f4 Content-Type: text/plain; charset="UTF-8" Mmm very interesting! The only thing that comes to my mind is: - is your account allowed to talk to all the regions? From the stacktrace above looks like org.jclouds.rest.AuthorizationException: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 -> HTTP/1.1 401 Unauthorized so maybe your account is not allowed to talk to that region. Can you confirm? if not you want to control which regions to target you can use `-Djclouds.regions: "us-west-1" in case you want to limit to Oregon. HTH, Andrea On Thu, Jun 21, 2018 at 9:45 AM archieprad@gmail.com wrote: > Hi Andrea, > Thanks for the quick response. I am using an IAM role that has full admin > access. Which is why this case is even more perplexing. Do you have any > other suggestions to try out? > > Cheers > Archana > > On 2018/06/20 21:45:31, archieprad@gmail.com > wrote: > > Hi Ignasi, > > So the function that does the authentication uses a context builder and > generates a temporary access and secret key. I've read that perhaps Jclouds > might not be sending the session token to access aws resources. Do you > think that is what could be happening? > > > > Cheers, > > Archana > > > --000000000000e4ba45056f2237f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Mmm very interesting!

The only thing that comes to = my mind is:
- is your account allowed to talk to all the regions? From t= he stacktrace above looks like
org.jclouds.re= st.AuthorizationException: POST=C2= =A0https://ec2.us-e= ast-1.amazonaws.com/=C2=A0HTTP/= 1.1 -> HTTP/1.1 401 Unauthorized
so maybe your account is not allow= ed to talk to that region. Can you confirm? if not you want to control whic= h regions to target you can use `-Djclouds.regions: "us-west-1" i= n case you want to limit to Oregon.

HTH,
Andrea
=

On Thu, Jun 21, 2018 = at 9:45 AM archieprad@gmail.com= <archieprad@gmail.com> w= rote:
Hi Andrea,
Thanks for the quick response. I am using an IAM role that has full admin a= ccess. Which is why this case is even more perplexing. Do you have any othe= r suggestions to try out?

Cheers
Archana

On 2018/06/20 21:45:31, archieprad@gmail.com <archieprad@gmail.com> wrote:
> Hi Ignasi,
> So the function that does the authentication uses a context builder an= d generates a temporary access and secret key. I've read that perhaps J= clouds might not be sending the session token to access aws resources. Do y= ou think that is what could be happening?
>
> Cheers,
> Archana
>
--000000000000e4ba45056f2237f4--