You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Richard Lawley <ri...@richardlawley.com> on 2019/03/29 12:28:38 UTC

NetScaler-Related API Functions missing, causing Session Expired

I've recently upgraded a couple of installations from 4.8 to 4.11.2.
Since the upgrade, I am unable to perform certain operations, such as
adding a Network Offering, via the UI.  This shows up as getting a
Session Expired message, and kicking me out.  I've checked the
underlying requests, and it seems that the following API calls all
return 401 (verified with CMK):

* listRegisteredServicePackages (used when going to Add Network Offering)
* listNetscalerControlCenter (used when viewing Netscaler Element in
Network Service Providers)

We don't use Netscaler, but it seems that something is preventing us
from accessing those APIs (using admin user), which is preventing us
from adding a network offering.

The Management server contains the log entry:
The given command 'listNetscalerControlCenter' either does not exist,
is not available for user, or not available from ip address
'/x.x.x.x'.

Possibly also related, I've noticed that after running "cmk sync" it
discovers 567 APIs, but on a clean install in my test lab it discovers
590.

Any suggestions for how these APIs might be being made unavailable?

Regards,
Richard

Re: NetScaler-Related API Functions missing, causing Session Expired

Posted by Richard Lawley <ri...@richardlawley.com>.
Thanks - that's resolved the issue.  This wasn't mentioned in the
upgrade guide, and I didn't run into it initially!

Regards,

Richard

On Fri, 29 Mar 2019 at 18:12, Paul Angus <pa...@shapeblue.com> wrote:
>
> Have you migrated to dynamic roles yet?  The old commands.properties file has been deprecated.
> Assuming that you haven't customised your commands.properties file, you should run the migration script using the 'install default roles' switch ( -D ).
>
> http://docs.cloudstack.apache.org/en/4.11.2.0/adminguide/accounts.html#using-dynamic-roles
>
>
> paul.angus@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue
>
>
>
>
> -----Original Message-----
> From: Richard Lawley <ri...@richardlawley.com>
> Sent: 29 March 2019 12:29
> To: users@cloudstack.apache.org
> Subject: NetScaler-Related API Functions missing, causing Session Expired
>
> I've recently upgraded a couple of installations from 4.8 to 4.11.2.
> Since the upgrade, I am unable to perform certain operations, such as adding a Network Offering, via the UI.  This shows up as getting a Session Expired message, and kicking me out.  I've checked the underlying requests, and it seems that the following API calls all return 401 (verified with CMK):
>
> * listRegisteredServicePackages (used when going to Add Network Offering)
> * listNetscalerControlCenter (used when viewing Netscaler Element in Network Service Providers)
>
> We don't use Netscaler, but it seems that something is preventing us from accessing those APIs (using admin user), which is preventing us from adding a network offering.
>
> The Management server contains the log entry:
> The given command 'listNetscalerControlCenter' either does not exist, is not available for user, or not available from ip address '/x.x.x.x'.
>
> Possibly also related, I've noticed that after running "cmk sync" it discovers 567 APIs, but on a clean install in my test lab it discovers 590.
>
> Any suggestions for how these APIs might be being made unavailable?
>
> Regards,
> Richard

RE: NetScaler-Related API Functions missing, causing Session Expired

Posted by Paul Angus <pa...@shapeblue.com>.
Have you migrated to dynamic roles yet?  The old commands.properties file has been deprecated.
Assuming that you haven't customised your commands.properties file, you should run the migration script using the 'install default roles' switch ( -D ).

http://docs.cloudstack.apache.org/en/4.11.2.0/adminguide/accounts.html#using-dynamic-roles


paul.angus@shapeblue.comĀ 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-----Original Message-----
From: Richard Lawley <ri...@richardlawley.com> 
Sent: 29 March 2019 12:29
To: users@cloudstack.apache.org
Subject: NetScaler-Related API Functions missing, causing Session Expired

I've recently upgraded a couple of installations from 4.8 to 4.11.2.
Since the upgrade, I am unable to perform certain operations, such as adding a Network Offering, via the UI.  This shows up as getting a Session Expired message, and kicking me out.  I've checked the underlying requests, and it seems that the following API calls all return 401 (verified with CMK):

* listRegisteredServicePackages (used when going to Add Network Offering)
* listNetscalerControlCenter (used when viewing Netscaler Element in Network Service Providers)

We don't use Netscaler, but it seems that something is preventing us from accessing those APIs (using admin user), which is preventing us from adding a network offering.

The Management server contains the log entry:
The given command 'listNetscalerControlCenter' either does not exist, is not available for user, or not available from ip address '/x.x.x.x'.

Possibly also related, I've noticed that after running "cmk sync" it discovers 567 APIs, but on a clean install in my test lab it discovers 590.

Any suggestions for how these APIs might be being made unavailable?

Regards,
Richard