You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by anil lakineni <an...@gmail.com> on 2016/05/17 08:46:20 UTC

Getting unauthorized error when using sync command in cloud monkey

Hi All,

I am unable to sync API's in CloudMonkey and getting below error,

> sync
*Unauthorized: None*
*Failed to sync apis, please check your config?*
*Note: `sync` requires api discovery service enabled on the CloudStack
management server*

Cloud Monkey version: 5.2.0
Citrix Cloud Platform version: 4.5.0

This is my cloud monkey configuration file,
vi ~/.cloudmonkey/config

[core]
profile = local
asyncblock = true
paramcompletion = false
history_file = /root/.cloudmonkey/history
cache_file = /root/.cloudmonkey/cache
log_file = /root/.cloudmonkey/log

[ui]
color = true
prompt = 🐵 >
display = default

[local]
apikey = <xxxxxx>
url = http://<Internal IP>8080/client/api
expires = 600
secretkey = <xxxxx>
timeout = 3600
username = xxxxxx
password = xxxxxx

On both servers, management and cloudmonkey the iptables are in off state.

Please help me to fix this unauthorized issue, and let me know if any
information needed.

Thanks,
Anil.

RE: Getting unauthorized error when using sync command in cloud monkey

Posted by Glenn Wagner <gl...@shapeblue.com>.
Hi 

Are you using the APIkey and secret in the cloudmonkey config file 

You can also try entering cloudmonkey CLI and type the following commands 

set url http://<Internal IP>8080/client/api
set apikey <put-your-api-key-for-your-user>
set secretkey <put-your-secret-key-for-your-user>

Regards
Glenn 

glenn.wagner@shapeblue.com 
www.shapeblue.com
2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West, Cape Town  7130South Africa
@shapeblue



-----Original Message-----
From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com] 
Sent: Tuesday, 17 May 2016 10:46 AM
To: users@cloudstack.apache.org; dev@cloudstack.apache.org
Subject: Getting unauthorized error when using sync command in cloud monkey

Hi All,

I am unable to sync API's in CloudMonkey and getting below error,

> sync
*Unauthorized: None*
*Failed to sync apis, please check your config?*
*Note: `sync` requires api discovery service enabled on the CloudStack management server*

Cloud Monkey version: 5.2.0
Citrix Cloud Platform version: 4.5.0

This is my cloud monkey configuration file, vi ~/.cloudmonkey/config

[core]
profile = local
asyncblock = true
paramcompletion = false
history_file = /root/.cloudmonkey/history cache_file = /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log

[ui]
color = true
prompt = 🐵 >
display = default

[local]
apikey = <xxxxxx>
url = http://<Internal IP>8080/client/api expires = 600 secretkey = <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx

On both servers, management and cloudmonkey the iptables are in off state.

Please help me to fix this unauthorized issue, and let me know if any information needed.

Thanks,
Anil.

RE: Getting unauthorized error when using sync command in cloud monkey

Posted by Timothy Lothering <tl...@datacentrix.co.za>.
Hi Anil,

Are you using the admin keys for CCP or CPBM?

Kind Regards,
Timothy Lothering
Timothy Lothering
Solutions Architect
Managed Services

T: +27877415535
F: +27877415100
C: +27824904099
E: tlothering@datacentrix.co.za


DISCLAIMER NOTICE: 

Everything in this e-mail and any attachments relating to the official business of Datacentrix Holdings Ltd. and its subsidiaries 
('Datacentrix') is proprietary to Datacentrix. It is confidential, legally privileged and protected by law. Datacentrix does not 
own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Datacentrix. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally 
reached you and do not read, disclose or use the content in any way. Datacentrix cannot assure that the integrity of this communication 
has been maintained nor that it is free of errors, virus, interception or interference.
-----Original Message-----
From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com] 
Sent: Tuesday, 17 May 2016 12:46 PM
To: users@cloudstack.apache.org; dev@cloudstack.apache.org
Subject: Re: Getting unauthorized error when using sync command in cloud monkey

Thanks Glenn, Timothy for responses.

I tried both ways which you posted here, but same error is coming.

We have CPBM in front of CCP, will that be cause.
For this kind of environment do i need to follow any other steps to fix the issue as API and Secret keys are enabled by CPBM I'm using admin user in cloudmonkey configuration file.

Please help me out.

Thanks,
Anil.

On Tue, May 17, 2016 at 12:18 PM, Timothy Lothering < tlothering@datacentrix.co.za> wrote:

> Hi Anil,
>
> Your file should look similar below (looking at yours, the [LOCAL] 
> section is there, but I am not sure if some of the config can be in a 
> single line)
>
> [core]
> profile = local
> asyncblock = false
> paramcompletion = true
> history_file = //.cloudmonkey/history
> cache_file = //.cloudmonkey/cache
> log_file = //.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🠵 >
> display = default
>
> [local]
> username = admin
> apikey = <API KEY>
> url = http://<INTERNAL IP OR VIP>:8080/client/api expires = 600 
> secretkey = <SECRET KEY> timeout = 3600 password = <PASSWORD>
>
> Thanks
>
> Kind Regards,
> Timothy Lothering
>
> -----Original Message-----
> From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com]
> Sent: Tuesday, 17 May 2016 10:46 AM
> To: users@cloudstack.apache.org; dev@cloudstack.apache.org
> Subject: Getting unauthorized error when using sync command in cloud 
> monkey
>
> Hi All,
>
> I am unable to sync API's in CloudMonkey and getting below error,
>
> > sync
> *Unauthorized: None*
> *Failed to sync apis, please check your config?*
> *Note: `sync` requires api discovery service enabled on the CloudStack 
> management server*
>
> Cloud Monkey version: 5.2.0
> Citrix Cloud Platform version: 4.5.0
>
> This is my cloud monkey configuration file, vi ~/.cloudmonkey/config
>
> [core]
> profile = local
> asyncblock = true
> paramcompletion = false
> history_file = /root/.cloudmonkey/history cache_file = 
> /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🐵 >
> display = default
>
> [local]
> apikey = <xxxxxx>
> url = http://<Internal IP>8080/client/api expires = 600 secretkey = 
> <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx
>
> On both servers, management and cloudmonkey the iptables are in off state.
>
> Please help me to fix this unauthorized issue, and let me know if any 
> information needed.
>
> Thanks,
> Anil.
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlothering@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official 
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, 
> legally privileged and protected by law. Datacentrix does not own and 
> endorse any other content. Views and opinions are those of the sender 
> unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally reached 
> you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication has 
> been maintained nor that it is free of errors, virus, interception or 
> interference.
>

RE: Getting unauthorized error when using sync command in cloud monkey

Posted by Timothy Lothering <tl...@datacentrix.co.za>.
Hi Anil,

Are you using the admin keys for CCP or CPBM?

Kind Regards,
Timothy Lothering
Timothy Lothering
Solutions Architect
Managed Services

T: +27877415535
F: +27877415100
C: +27824904099
E: tlothering@datacentrix.co.za


DISCLAIMER NOTICE: 

Everything in this e-mail and any attachments relating to the official business of Datacentrix Holdings Ltd. and its subsidiaries 
('Datacentrix') is proprietary to Datacentrix. It is confidential, legally privileged and protected by law. Datacentrix does not 
own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Datacentrix. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally 
reached you and do not read, disclose or use the content in any way. Datacentrix cannot assure that the integrity of this communication 
has been maintained nor that it is free of errors, virus, interception or interference.
-----Original Message-----
From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com] 
Sent: Tuesday, 17 May 2016 12:46 PM
To: users@cloudstack.apache.org; dev@cloudstack.apache.org
Subject: Re: Getting unauthorized error when using sync command in cloud monkey

Thanks Glenn, Timothy for responses.

I tried both ways which you posted here, but same error is coming.

We have CPBM in front of CCP, will that be cause.
For this kind of environment do i need to follow any other steps to fix the issue as API and Secret keys are enabled by CPBM I'm using admin user in cloudmonkey configuration file.

Please help me out.

Thanks,
Anil.

On Tue, May 17, 2016 at 12:18 PM, Timothy Lothering < tlothering@datacentrix.co.za> wrote:

> Hi Anil,
>
> Your file should look similar below (looking at yours, the [LOCAL] 
> section is there, but I am not sure if some of the config can be in a 
> single line)
>
> [core]
> profile = local
> asyncblock = false
> paramcompletion = true
> history_file = //.cloudmonkey/history
> cache_file = //.cloudmonkey/cache
> log_file = //.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🠵 >
> display = default
>
> [local]
> username = admin
> apikey = <API KEY>
> url = http://<INTERNAL IP OR VIP>:8080/client/api expires = 600 
> secretkey = <SECRET KEY> timeout = 3600 password = <PASSWORD>
>
> Thanks
>
> Kind Regards,
> Timothy Lothering
>
> -----Original Message-----
> From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com]
> Sent: Tuesday, 17 May 2016 10:46 AM
> To: users@cloudstack.apache.org; dev@cloudstack.apache.org
> Subject: Getting unauthorized error when using sync command in cloud 
> monkey
>
> Hi All,
>
> I am unable to sync API's in CloudMonkey and getting below error,
>
> > sync
> *Unauthorized: None*
> *Failed to sync apis, please check your config?*
> *Note: `sync` requires api discovery service enabled on the CloudStack 
> management server*
>
> Cloud Monkey version: 5.2.0
> Citrix Cloud Platform version: 4.5.0
>
> This is my cloud monkey configuration file, vi ~/.cloudmonkey/config
>
> [core]
> profile = local
> asyncblock = true
> paramcompletion = false
> history_file = /root/.cloudmonkey/history cache_file = 
> /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🐵 >
> display = default
>
> [local]
> apikey = <xxxxxx>
> url = http://<Internal IP>8080/client/api expires = 600 secretkey = 
> <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx
>
> On both servers, management and cloudmonkey the iptables are in off state.
>
> Please help me to fix this unauthorized issue, and let me know if any 
> information needed.
>
> Thanks,
> Anil.
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlothering@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official 
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, 
> legally privileged and protected by law. Datacentrix does not own and 
> endorse any other content. Views and opinions are those of the sender 
> unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally reached 
> you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication has 
> been maintained nor that it is free of errors, virus, interception or 
> interference.
>

Re: Getting unauthorized error when using sync command in cloud monkey

Posted by anil lakineni <an...@gmail.com>.
Thanks Glenn, Timothy for responses.

I tried both ways which you posted here, but same error is coming.

We have CPBM in front of CCP, will that be cause.
For this kind of environment do i need to follow any other steps to fix the
issue as API and Secret keys are enabled by CPBM
I'm using admin user in cloudmonkey configuration file.

Please help me out.

Thanks,
Anil.

On Tue, May 17, 2016 at 12:18 PM, Timothy Lothering <
tlothering@datacentrix.co.za> wrote:

> Hi Anil,
>
> Your file should look similar below (looking at yours, the [LOCAL] section
> is there, but I am not sure if some of the config can be in a single line)
>
> [core]
> profile = local
> asyncblock = false
> paramcompletion = true
> history_file = //.cloudmonkey/history
> cache_file = //.cloudmonkey/cache
> log_file = //.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🠵 >
> display = default
>
> [local]
> username = admin
> apikey = <API KEY>
> url = http://<INTERNAL IP OR VIP>:8080/client/api
> expires = 600
> secretkey = <SECRET KEY>
> timeout = 3600
> password = <PASSWORD>
>
> Thanks
>
> Kind Regards,
> Timothy Lothering
>
> -----Original Message-----
> From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com]
> Sent: Tuesday, 17 May 2016 10:46 AM
> To: users@cloudstack.apache.org; dev@cloudstack.apache.org
> Subject: Getting unauthorized error when using sync command in cloud monkey
>
> Hi All,
>
> I am unable to sync API's in CloudMonkey and getting below error,
>
> > sync
> *Unauthorized: None*
> *Failed to sync apis, please check your config?*
> *Note: `sync` requires api discovery service enabled on the CloudStack
> management server*
>
> Cloud Monkey version: 5.2.0
> Citrix Cloud Platform version: 4.5.0
>
> This is my cloud monkey configuration file, vi ~/.cloudmonkey/config
>
> [core]
> profile = local
> asyncblock = true
> paramcompletion = false
> history_file = /root/.cloudmonkey/history cache_file =
> /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🐵 >
> display = default
>
> [local]
> apikey = <xxxxxx>
> url = http://<Internal IP>8080/client/api expires = 600 secretkey =
> <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx
>
> On both servers, management and cloudmonkey the iptables are in off state.
>
> Please help me to fix this unauthorized issue, and let me know if any
> information needed.
>
> Thanks,
> Anil.
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlothering@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, legally
> privileged and protected by law. Datacentrix does not
> own and endorse any other content. Views and opinions are those of the
> sender unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally
> reached you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication
> has been maintained nor that it is free of errors, virus, interception or
> interference.
>

Re: Getting unauthorized error when using sync command in cloud monkey

Posted by anil lakineni <an...@gmail.com>.
Thanks Glenn, Timothy for responses.

I tried both ways which you posted here, but same error is coming.

We have CPBM in front of CCP, will that be cause.
For this kind of environment do i need to follow any other steps to fix the
issue as API and Secret keys are enabled by CPBM
I'm using admin user in cloudmonkey configuration file.

Please help me out.

Thanks,
Anil.

On Tue, May 17, 2016 at 12:18 PM, Timothy Lothering <
tlothering@datacentrix.co.za> wrote:

> Hi Anil,
>
> Your file should look similar below (looking at yours, the [LOCAL] section
> is there, but I am not sure if some of the config can be in a single line)
>
> [core]
> profile = local
> asyncblock = false
> paramcompletion = true
> history_file = //.cloudmonkey/history
> cache_file = //.cloudmonkey/cache
> log_file = //.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🠵 >
> display = default
>
> [local]
> username = admin
> apikey = <API KEY>
> url = http://<INTERNAL IP OR VIP>:8080/client/api
> expires = 600
> secretkey = <SECRET KEY>
> timeout = 3600
> password = <PASSWORD>
>
> Thanks
>
> Kind Regards,
> Timothy Lothering
>
> -----Original Message-----
> From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com]
> Sent: Tuesday, 17 May 2016 10:46 AM
> To: users@cloudstack.apache.org; dev@cloudstack.apache.org
> Subject: Getting unauthorized error when using sync command in cloud monkey
>
> Hi All,
>
> I am unable to sync API's in CloudMonkey and getting below error,
>
> > sync
> *Unauthorized: None*
> *Failed to sync apis, please check your config?*
> *Note: `sync` requires api discovery service enabled on the CloudStack
> management server*
>
> Cloud Monkey version: 5.2.0
> Citrix Cloud Platform version: 4.5.0
>
> This is my cloud monkey configuration file, vi ~/.cloudmonkey/config
>
> [core]
> profile = local
> asyncblock = true
> paramcompletion = false
> history_file = /root/.cloudmonkey/history cache_file =
> /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log
>
> [ui]
> color = true
> prompt = 🐵 >
> display = default
>
> [local]
> apikey = <xxxxxx>
> url = http://<Internal IP>8080/client/api expires = 600 secretkey =
> <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx
>
> On both servers, management and cloudmonkey the iptables are in off state.
>
> Please help me to fix this unauthorized issue, and let me know if any
> information needed.
>
> Thanks,
> Anil.
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlothering@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, legally
> privileged and protected by law. Datacentrix does not
> own and endorse any other content. Views and opinions are those of the
> sender unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally
> reached you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication
> has been maintained nor that it is free of errors, virus, interception or
> interference.
>

RE: Getting unauthorized error when using sync command in cloud monkey

Posted by Timothy Lothering <tl...@datacentrix.co.za>.
Hi Anil,

Your file should look similar below (looking at yours, the [LOCAL] section is there, but I am not sure if some of the config can be in a single line)

[core]
profile = local
asyncblock = false
paramcompletion = true
history_file = //.cloudmonkey/history
cache_file = //.cloudmonkey/cache
log_file = //.cloudmonkey/log

[ui]
color = true
prompt = 🐵 > 
display = default

[local]
username = admin
apikey = <API KEY>
url = http://<INTERNAL IP OR VIP>:8080/client/api
expires = 600
secretkey = <SECRET KEY>
timeout = 3600
password = <PASSWORD>

Thanks

Kind Regards,
Timothy Lothering

-----Original Message-----
From: anil lakineni [mailto:anilkumar459.lakineni@gmail.com] 
Sent: Tuesday, 17 May 2016 10:46 AM
To: users@cloudstack.apache.org; dev@cloudstack.apache.org
Subject: Getting unauthorized error when using sync command in cloud monkey

Hi All,

I am unable to sync API's in CloudMonkey and getting below error,

> sync
*Unauthorized: None*
*Failed to sync apis, please check your config?*
*Note: `sync` requires api discovery service enabled on the CloudStack management server*

Cloud Monkey version: 5.2.0
Citrix Cloud Platform version: 4.5.0

This is my cloud monkey configuration file, vi ~/.cloudmonkey/config

[core]
profile = local
asyncblock = true
paramcompletion = false
history_file = /root/.cloudmonkey/history cache_file = /root/.cloudmonkey/cache log_file = /root/.cloudmonkey/log

[ui]
color = true
prompt = 🐵 >
display = default

[local]
apikey = <xxxxxx>
url = http://<Internal IP>8080/client/api expires = 600 secretkey = <xxxxx> timeout = 3600 username = xxxxxx password = xxxxxx

On both servers, management and cloudmonkey the iptables are in off state.

Please help me to fix this unauthorized issue, and let me know if any information needed.

Thanks,
Anil.
Timothy Lothering
Solutions Architect
Managed Services

T: +27877415535
F: +27877415100
C: +27824904099
E: tlothering@datacentrix.co.za


DISCLAIMER NOTICE: 

Everything in this e-mail and any attachments relating to the official business of Datacentrix Holdings Ltd. and its subsidiaries 
('Datacentrix') is proprietary to Datacentrix. It is confidential, legally privileged and protected by law. Datacentrix does not 
own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Datacentrix. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally 
reached you and do not read, disclose or use the content in any way. Datacentrix cannot assure that the integrity of this communication 
has been maintained nor that it is free of errors, virus, interception or interference.