# Unable to add hosts

**URL:** <https://forums.suse.com/t/unable-to-add-hosts/6119>\
**Category:** Rancher 1.x\
**Created:** [April 11, 2017, 1:36pm UTC](https://forums.suse.com/t/unable-to-add-hosts/6119 "2017-04-11T13:36:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernard\_Maltais](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bernard_maltais/32/2373_2.png) [@Bernard\_Maltais](https://forums.suse.com/u/Bernard_Maltais)\
**Post date:** [April 11, 2017, 1:36pm UTC](https://forums.suse.com/t/unable-to-add-hosts/6119/1 "2017-04-11T13:36:01Z")

</div>

I am trying to test rancher… so I piched rancheros as I tought everything would work out of the box… but I am stumped…

I have two VM. One for rancher and one for the agent. I can access rancher just fine on [https://rancherip:8080](https://rancherip:8080)

The issue is I can add a host. On the 2nd rancheros vm I paste the host connection utl but I keep getting:

INFO: Running Agent Registration Process, CATTLE\_URL=https://rancher-server/v1  
INFO: Attempting to connect to: not a links://rancher-server/v1  
ERROR: [https://rancher-server/v1](https://rancher-server/v1) is not accessible

Help! I can connect to the rancher vm using https (can’t put link as I can’t post more than 2 URL???) just fine using curl from the 2nd vm. Why dosen’t work? Is there a good tutorial on how to get a basic test environment working that I perhaps missed?

Also, I tried removing the s in the connection string so it is just http and I get major errors when I do that:

INFO: Inspecting host capabilities  
INFO: Boot2Docker: false  
INFO: Host writable: true  
INFO: Token: xxxxxxxx  
INFO: Running registration  
Traceback (most recent call last):  
File “./register.py”, line 11, in   
secret\_key=os.environ[‘CATTLE\_REGISTRATION\_SECRET\_KEY’])  
File “/usr/local/lib/python2.7/dist-packages/cattle.py”, line 45, in from\_env  
return gdapi.from\_env(prefix=prefix, factory=Client, \*\*kw)  
File “/usr/local/lib/python2.7/dist-packages/gdapi.py”, line 613, in from\_env  
return \_from\_env(prefix=prefix, factory=factory, \*\*args)  
File “/usr/local/lib/python2.7/dist-packages/gdapi.py”, line 632, in \_from\_env  
return factory(\*\*result)  
File “/usr/local/lib/python2.7/dist-packages/cattle.py”, line 12, in **init**  
super(Client, self). **init** (\*args, \*\*kw)  
File “/usr/local/lib/python2.7/dist-packages/gdapi.py”, line 197, in **init**  
self.\_load\_schemas()  
File “/usr/local/lib/python2.7/dist-packages/gdapi.py”, line 315, in \_load\_sch emas  
response = self.\_get\_response(self.\_url)  
File “/usr/local/lib/python2.7/dist-packages/gdapi.py”, line 264, in \_get\_resp onse  
headers=self.\_headers)  
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 501, in get  
return self.request(‘GET’, url, \*\*kwargs)  
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 488, in request  
resp = self.send(prep, \*\*send\_kwargs)  
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 609, in send  
r = adapter.send(request, \*\*kwargs)  
File “/usr/local/lib/python2.7/dist-packages/requests/adapters.py”, line 497, in send  
raise SSLError(e, request=request)  
requests.exceptions.SSLError: [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verif y failed (\_ssl.c:590)

---

<div class="post-metadata">

**Author:** ![shubbard343](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@shubbard343](https://forums.suse.com/u/shubbard343)\
**Post date:** [May 16, 2017, 6:17pm UTC](https://forums.suse.com/t/unable-to-add-hosts/6119/3 "2017-05-16T18:17:44Z")

</div>

You need to add the CA certificate as a volume to the agent.

[http://docs.rancher.com/rancher/v1.6/en/installing-rancher/installing-server/basic-ssl-config/#using-self-signed-certs-beta](http://docs.rancher.com/rancher/v1.6/en/installing-rancher/installing-server/basic-ssl-config/#using-self-signed-certs-beta)
