Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

error add host on the cluster

Hello,

I was received  this error to add 3rd host on the cluster:

02/04/2022 10:12:30 ERROR Config file error. The PetaSAN os maybe just installed.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/backend/cluster/deploy.py", line 74, in get_node_status
node_name = config.get_node_info().name
File "/usr/lib/python3/dist-packages/PetaSAN/core/cluster/configuration.py", line 99, in get_node_info
with open(config.get_node_info_file_path(), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/petasan/config/node_info.json'
02/04/2022 10:12:52 INFO Starting node join
02/04/2022 10:12:52 INFO Successfully copied public keys.
02/04/2022 10:12:53 INFO Successfully copied private keys.
02/04/2022 10:12:53 INFO password set successfully.
02/04/2022 10:12:53 INFO Start copying cluster info file.
02/04/2022 10:12:53 INFO Successfully copied cluster info file.
02/04/2022 10:12:53 INFO Start copying services interfaces file.
02/04/2022 10:12:53 INFO Successfully copied services interfaces file.
02/04/2022 10:12:53 INFO Joined cluster brazucacloud
02/04/2022 10:12:54 ERROR list index out of range
02/04/2022 10:12:54 ERROR Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python3/dist-packages/PetaSAN/web/deploy_controller/wizard.py", line 331, in main
interfaces_json = eths_ls[0]
TypeError: 'Response' object is not subscriptable

 

Any idea for it?

 

Thanks a lot

it may be errors with deploying the prev nodes, since you did not build the cluster yet, i recommend you re-install from installer and deploy again the first 3 nodes, if you still have errors let me know.

Quote from admin on April 2, 2022, 2:25 pm

it may be errors with deploying the prev nodes, since you did not build the cluster yet, i recommend you re-install from installer and deploy again the first 3 nodes, if you still have errors let me know.

if we doing re-install, how about the existing rbd image ? are will be gone ?

 

I suggested this a long time ago when you were building the cluster, you cannot re-install from scratch now.

Is this on 3.1.0? If so, could it need the fix "| tr ',' ' ' " in /opt/petasan/scripts/detects interfaces.sh?

IIRC I was getting the same " interfaces_json = eths_ls[0]
TypeError: 'Response' object is not subscriptable " until I applied the fix to detect-interfaces.sh