Forums

Home / Forums

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

While enabling Petasan replication source cluster not able to add the destination cluster, Says Test connection failed . HELP !!!

Hi Team,

We have two Petasan Clusters on two different Geo location. While adding the destination cluster at the source it says the connection test failed. But when the same Cluster node added and  acts as destination, it works.  Now i want this to be source Cluster and replicated data to different cluster.
Meanwhile the log says Permission Denied

root@ps-node-01:~#tail -fn 100 /opt/petasan/log/PetaSAN.log
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 09:51:58 ERROR Permission denied
17/01/2023 09:52:23 ERROR Manage Destination Cluster | Permission denied , Error = Load key "/opt/petasan/config/replication/1673929343_950831_sshkey.txt": invalid format
Permission denied, please try again.
Permission denied, please try again.
Mys_SAN_User@10.101.2.81: Permission denied (publickey,password).

17/01/2023 09:52:23 ERROR Permission denied
17/01/2023 09:53:29 ERROR Manage Destination Cluster | Permission denied , Error = Warning: Permanently added '10.101.2.82' (ECDSA) to the list of known hosts.
Traceback (most recent call last):
File "/opt/petasan/scripts/backups/replication.py", line 18, in <module>
from PetaSAN.core.config.api import ConfigAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/config/api.py", line 22, in <module>
from PetaSAN.core.consul.base import BaseAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/base.py", line 18, in <module>
from PetaSAN.core.consul.ps_consul import Consul
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/ps_consul.py", line 24, in <module>
from PetaSAN.core.common.log import logger
File "/usr/lib/python3/dist-packages/PetaSAN/core/common/log.py", line 35, in <module>
handler_info = RotatingFileHandler(__info_path, mode='a', maxBytes=10*1024*1024, backupCount=1, encoding=None, delay=0)
File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 09:53:29 ERROR Permission denied
17/01/2023 09:57:25 ERROR Manage Destination Cluster | Permission denied , Error = Traceback (most recent call last):
File "/opt/petasan/scripts/backups/replication.py", line 18, in <module>
from PetaSAN.core.config.api import ConfigAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/config/api.py", line 22, in <module>
from PetaSAN.core.consul.base import BaseAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/base.py", line 18, in <module>
from PetaSAN.core.consul.ps_consul import Consul
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/ps_consul.py", line 24, in <module>
from PetaSAN.core.common.log import logger
File "/usr/lib/python3/dist-packages/PetaSAN/core/common/log.py", line 35, in <module>
handler_info = RotatingFileHandler(__info_path, mode='a', maxBytes=10*1024*1024, backupCount=1, encoding=None, delay=0)
File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 09:57:25 ERROR Permission denied
17/01/2023 10:02:18 ERROR Manage Destination Cluster | Permission denied , Error = Warning: Permanently added '10.101.2.83' (ECDSA) to the list of known hosts.
Traceback (most recent call last):
File "/opt/petasan/scripts/backups/replication.py", line 18, in <module>
from PetaSAN.core.config.api import ConfigAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/config/api.py", line 22, in <module>
from PetaSAN.core.consul.base import BaseAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/base.py", line 18, in <module>
from PetaSAN.core.consul.ps_consul import Consul
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/ps_consul.py", line 24, in <module>
from PetaSAN.core.common.log import logger
File "/usr/lib/python3/dist-packages/PetaSAN/core/common/log.py", line 35, in <module>
handler_info = RotatingFileHandler(__info_path, mode='a', maxBytes=10*1024*1024, backupCount=1, encoding=None, delay=0)
File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 10:02:18 ERROR Permission denied
17/01/2023 10:10:31 ERROR Manage Destination Cluster | Permission denied , Error = Traceback (most recent call last):
File "/opt/petasan/scripts/backups/replication.py", line 18, in <module>
from PetaSAN.core.config.api import ConfigAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/config/api.py", line 22, in <module>
from PetaSAN.core.consul.base import BaseAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/base.py", line 18, in <module>
from PetaSAN.core.consul.ps_consul import Consul
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/ps_consul.py", line 24, in <module>
from PetaSAN.core.common.log import logger
File "/usr/lib/python3/dist-packages/PetaSAN/core/common/log.py", line 35, in <module>
handler_info = RotatingFileHandler(__info_path, mode='a', maxBytes=10*1024*1024, backupCount=1, encoding=None, delay=0)
File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 10:10:31 ERROR Permission denied
17/01/2023 10:18:30 ERROR Manage Destination Cluster | Permission denied , Error = Traceback (most recent call last):
File "/opt/petasan/scripts/backups/replication.py", line 18, in <module>
from PetaSAN.core.config.api import ConfigAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/config/api.py", line 22, in <module>
from PetaSAN.core.consul.base import BaseAPI
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/base.py", line 18, in <module>
from PetaSAN.core.consul.ps_consul import Consul
File "/usr/lib/python3/dist-packages/PetaSAN/core/consul/ps_consul.py", line 24, in <module>
from PetaSAN.core.common.log import logger
File "/usr/lib/python3/dist-packages/PetaSAN/core/common/log.py", line 35, in <module>
handler_info = RotatingFileHandler(__info_path, mode='a', maxBytes=10*1024*1024, backupCount=1, encoding=None, delay=0)
File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/petasan/log/PetaSAN.log'

17/01/2023 10:18:30 ERROR Permission denied

 

 

Make sure you read the replication guide in our docs.

check you can manually ssh from source replication node to destination cluster using remote ip, replication user name and key.

check you entered the key correctly in the ui. re-enter it do double check.

 

 

Hi Admin,
Thanks for the response.
I know this is a pretty straight forward process and have configured this and have performed many test cases between two clusters.
But in this case error still exists.
I tried the ssh which manually works using private key.
My networking part is also taken care, the vice versa works.
Can this happen if there is mismatch in the petasan Version. My source cluster version is 2.6 wich is lower compared to the destination  cluster which is 2.7.X

could this be causing the problem..?

i do not know, but it could be. i suggest you upgrade to 2.8X on both clusters and re-generate the replication key.