threefoldtecharchive / 0-templates

0-robot templates
Apache License 2.0
1 stars 1 forks source link

Container couldn't authorize itself on zerotier #201

Closed AhmedHanafy725 closed 5 years ago

AhmedHanafy725 commented 6 years ago

Information:

container_data = {'nics': [{'name': 'af180969cc', 'type': 'zerotier', 'id': <zt_id>, 'token': <token>}, {'type': 'default', 'name': 'defaultnic'}], 'flist': 'https://hub.grid.tf/tf-bootable/ubuntu:16.04.flist', 'storage': 'zdb://hub.grid.tf:9900', 'mounts': [], 'initProcesses': [], 'hostNetwprking': False, 'hostname': '954861a866399c0ba417d9', 'ports': [], 'zerotierNetwork': '', 'privileged': False, 'env': []}

Steps:

1- Put zerotier token and id into this data. 2- Create container with it.

Actual Result

container couldn't authorize itself. image

zaibon commented 5 years ago

This issue is actually non valid. Now that we are moving toward a 3bot world where the 3bot is responsible to manage primitive capacity deployed on a node. The authorization of a container in a zerotier network needs to be done by the 3bot itself, not the container template.

The only thing the container template needs to do, is to allow the 3bot to see the zerotier identify of the container.