You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/18 09:49:21 UTC

[GitHub] saurabh1284 opened a new issue #3200: In a HA multiple controllers distributed env, apihost has to manually change.

saurabh1284 opened a new issue #3200: In a HA multiple controllers distributed env, apihost has to manually change.
URL: https://github.com/apache/incubator-openwhisk/issues/3200
 
 
   ## Environment details:
   It is a multiple controllers, invokers distributed setup on ubuntu 14.04
   
   ## Steps to reproduce the issue:
   After successful deployment, I have to set apihost as wsk property. But It did not takes nginx IP address.
   It always takes IP address (along with port number) of one of the controllers.
   So, If that controller goes down, I have to manually change apihost to point to other up controller's IP 
   
   ## Provide the expected results and outputs:
   I was having assumption that in case of HA proxy controllers,  apihost should be the IP address of nginx.
   Based on heartbeating from nginx, it will forward to respective controllers.
   
   ## Provide the actual results and outputs:
   If I set apihost as nginx IP, I get following error:
   
   -> wsk property set --auth $(cat files/auth.whisk.system) --apihost http://100.100.100.91:80 -i -v
   ok: whisk auth set. Run 'wsk property get --auth' to see the new value.
   ok: whisk API host set to http://100.100.100.91:80
   
   -> wsk action list
   error: Unable to obtain the list of actions for namespace 'default': Get http://100.100.100.91:80/api/v1/namespaces/_/actions?limit=30&skip=0: dial tcp 100.100.100.91:80: getsockopt: connection refused
   
   However, if I set apihost to one of controllers IPs(with port number), it works fine.
    
   ## Additional information you deem important:
   This deployment is running on 5 VMs as below = 
   1> nginx,couchdb,zookeeper,kafka,registry ( all these inside 1 VM)
   2> controller0 
   3> controller1 
   4> invoker0 
   5> invoker1 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services