Hi Vedamurthy,

Thank you very much for your response.

Once I applied the patch, I'm able to create service template through CLI
successfully.

Thanks for your support :)

With Regards,
Vigneshwaran

On Wed, Dec 16, 2015 at 3:36 PM, Vedamurthy Ananth Joshi <[email protected]
> wrote:

> Vigneshwaran,
> I think the file service-template.py is a bit outdated. Could you try this
> patch for now ?
>
> +++ b/src/config/utils/service-template.py
>
> @@ -39,7 +39,9 @@ class ServiceTemplateCmd(object):
>
>          self._st_fq_name = [self._args.domain_name,
> self._args.template_name]
>
>          self._domain_fq_name = [self._args.domain_name]
>
>
> -        self._vnc_lib = VncApi('u', 'p',
>
> +        self._vnc_lib = VncApi(
>
> +                               <admin_username>, <admin_password>,
>
> +                               <admin_tenant_name>,
>
>                                 api_server_host=self._args.api_server_ip,
>
>                                 api_server_port=self._args.api_server_port)
>
> Vedu
>
> From: Vigneshwaran R <[email protected]>
> Date: Tuesday, December 15, 2015 at 8:11 PM
> To: "[email protected]" <[email protected]>
> Subject: [opencontrail-dev] Authentication Issue with vnc_api.py
>
> Hi All,
>
> I'm trying to create service template using CLI. When I execute the
> command, I got the below authentication error.
>
> #########################################################
>
> ./service-template.py add CLI_Template --svc_type firewall --image_name
> MyImage
>
> Traceback (most recent call last):
>   File "./service-template.py", line 179, in <module>
>     main()
>   File "./service-template.py", line 174, in main
>     st = ServiceTemplateCmd(args_str)
>   File "./service-template.py", line 44, in __init__
>     api_server_port=self._args.api_server_port)
>   File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 185, in
> __init__
>     retry_on_error=False)
>   File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 379, in
> _request
>     self._headers = self._authenticate(content, self._headers)
>   File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 237, in
> _authenticate
>     raise RuntimeError('Authentication Failure')
> RuntimeError: Authentication Failure
> Exception KeyError: KeyError(275622608,) in <module 'threading' from
> '/usr/lib/python2.7/threading.pyc'> ignored
>
> #######################################################
>
> This authentication error is not due to any local file/credential
> mismatch, I have conformed it by making various fresh setup.
>
> This issue I'm facing with contrail - 2.10 version and also in contrail
> 2.21 latest version.
>
> In both single node setup and multi node setup for contrail versions (2.10
> and 2.21), I'm facing the above mentioned issue.
>
> Can anyone suggest me some solution for this issue  ??
>
>
> Thanks,
> Vigneshwaran
>
>
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to