Closed siddiquagig closed 5 years ago
tmpl_uid = TemplateUID.parse(service_details['service']['template'])
TypeError: 'NoneType' object is not subscriptable
From these lines I would say that the problem is coming from the fact that a service has its file on disk that is empty.
Solution would be to go on the node and check that all the service data files are ok.
With ncl.capacity.update_reality(), problem with mounts ?
---> 23 storage = _parse_storage(disks, storage_pools)
24 self._ressources['sru'] = storage['sru']
25 self._ressources['hru'] = storage['hru']
/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/tools/capacity/reality_parser.py in _parse_storage(disks, storage_pools)
77
78 disk_type = sp.type
---> 79 size = sp.fsinfo['data']['used']
80
81 if disk_type in [StorageType.HDD, StorageType.ARCHIVE]:
/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/storage/StoragePool.py in fsinfo(self)
153 def fsinfo(self):
154 if self.mountpoint is None:
--> 155 raise ValueError("can't get fsinfo if storagepool is not mounted")
156 return self.client.btrfs.info(self.mountpoint)
157
ValueError: can't get fsinfo if storagepool is not mounted
We were able to resolve this by clearing all the contents robot data directories and rebooting the node.
One of the nodes , failed to register on capacity portal automatically, but when we try registering manually using
ncl.capacity.register()
it shows up as online on the portal but goes back offline on the portal after 10-15min.From the zrobot container logs we found this error:
Node is on:
ZeroOS master b1a1a737352fce69fd71de5f8cf1ae175f4bdcab
Zerotier IP :10.102.79.248