jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <n...@apache.org>
Subject Re: FW: Error in JCloud KeystoneApi getRoleAdminApi
Date Thu, 11 Dec 2014 06:45:55 GMT
There should be the OS-KSADM extension, which it is enabled by default
IIRC. Which endpoint are you connecting to?
El 11/12/2014 06:35, "Alka Beniwal" <beniwalalka@gmail.com> escribió:

> Hi Jeremy,
>
> As u told I executed  Set<Extension> extensions =
> keystoneApi.getExtensionApi().list();
> and in output list I got
>
> Extension{id=OS-FEDERATION, name=OpenStack Federation APIs
> Extension{id=OS-KSCRUD, name=OpenStack Keystone User CRUD
> Extension{id=OS-EC2, name=OpenStack EC2 API,
> Extension{id=OS-SIMPLE-CERT, name=OpenStack Simple Certificate API
>
> Roleadmin extension APi is not there.
>
>
> Thanks,
> Regards,
> AB
>
> On Wed, Dec 10, 2014 at 11:15 PM, Ignasi Barrera <nacx@apache.org> wrote:
>
> > Just to complete Jeremy's checklist, also make sure you're connecting to
> > the admin endpoint; double check the port. IIRC that extension is not
> > exposed in the default endpoint.
> > El 10/12/2014 18:35, "Jeremy Daggett" <jeremy.daggett@rackspace.com>
> > escribió:
> >
> > > Forwarding to user@Š
> > >
> > > Hi Alka!
> > >
> > > It could be one of the following scenarios you are running in to:
> > >
> > > - the extension is not available in your OpenStack installation
> > > - the user does not have an Admin role to access this specific API
> > >
> > > Does the extension show up when executing this code?
> > >
> > >   Set<Extension> extensions = keystoneApi.getExtensionApi().list();
> > >   // iterate through to see what extensions are available...
> > >
> > > Please let us know, thanks!
> > >
> > > /jd
> > >
> > > On 12/9/14, 9:27 PM, "Alka Beniwal" <beniwalalka@gmail.com> wrote:
> > >
> > > >Hi,
> > > >
> > > >I am developing a code to retrieve list of roles in OpenStack.
> > > >
> > > >*Code-*
> > > > RoleAdminApi roleAdminApi=
> keystoneApi.getRoleAdminApi().get();//error
> > > >        FluentIterable<? extends Role> list1 = roleAdminApi.list();
> > > >
> > > >*Error-*
> > > >java.lang.IllegalStateException: Optional.get() cannot be called on an
> > > >absent value
> > > >
> > > >
> > > >Any help is appreciated.
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >Thanks,
> > > >Regards,
> > > >AB
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message