mdsplus
mdsplus copied to clipboard
alpha versions fail to raise MDSconnection issue
Affiliation GA
Version(s) Affected Server on alpha-7-140-72 with clients at 7.7.15 or 7-140-71
Platform The server is on RHEL8. The clients are on linux and osx systems.
Describe the bug Previously (like with the previous server version on atlas) when a connection was denied, then MDSplus would raise a Connection error.
To Reproduce In python:
import MDSplus
c=MDSplus.Connection('atlas.gat.com:8000') # <------ This doesn't raise an error any more when denied connection.
Expected behavior Expected:
>>> import MDSplus
>>> c=MDSplus.Connection('mdstest.gat.com:8000')
Error in connect: Access denied
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/fusion/projects/codes/atom/omfit_omega_v3.x/atom_git/mambaforge_stable/lib/python3.7/site-packages/MDSplus/connection.py", line 142, in __init__
raise MdsIpException("Error connecting to %s" % (hostspec,))
MDSplus.connection.MdsIpException: %MDSPLUS-E-Unknown, Error connecting to mdstest.gat.com:8000
This error isn't being thrown with the latest server versions.
Impact OMFIT relies on the exception being thrown to know to tunnel through our bastion host. We have codes in OMFIT that run off-site that need to access MDSplus and are not white listed, so they tunnel through the bastion host.