Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not connect to rally when I'm using VPN #174

Open
Levi55555 opened this issue Feb 22, 2021 · 4 comments
Open

I can not connect to rally when I'm using VPN #174

Levi55555 opened this issue Feb 22, 2021 · 4 comments

Comments

@Levi55555
Copy link

I'm trying to fetch data from rally1.rallydev.com. When I use my python script without VPN it works fine but after I connect it drops the following error:
"pyral.context.RallyRESTAPIError: Target Rally host: 'rally1.rallydev.com' non-existent or unreachable"

(I have to use SSO and apikey for the connection)

@klehman-rally
Copy link
Member

for clarification purposes, if you are not on a VPN you script using pyral can successfully connect to rally1.rallydev.com and retrieve Rally information (or create an artifact or update and artifact), correct?
It is only when you are on a VPN attempting to do the same thing that problems occur, correct?

@Levi55555
Copy link
Author

Yes, the VPN causes the problem. I can successfully fetch data from rally1.rallydev.com when I'm not using VPN.

@klehman-rally
Copy link
Member

I'd suggest using something like curl or httpie or a browser REST client extension to see if you can connect successfully through the VPN outside of pyral. Do you know any info on the VPN, like vendor/product/version/etc.? I wouldn't think that OS issues are suspect here, but what platform are you running on?
The following is a basic url you can try:
https://rally1.rallydev.com/slm/webservice/v2.0/user?fetch=true&query=(User = "you")
Observe any diagnostic output looking for abnormalities.

@scottm824
Copy link

I ran into this and there being a proxy when on the vpn. I used the below to deal with it, set a cmd line arg to use the prox, then set the OS env vars to use it with the correct values...

parser.add_argument('-p', '--proxy', help='use inet proxy', action='store_true')

....
# inet proxy
if (args.proxy):
user = getpass.getuser() # from OS env USERNAME var "should" be set
pwd = getpass.getpass(prompt='Proxy Password:')
os.environ['HTTP_PROXY'] = 'http://{}:{}@yourproxyserver:8080'.format(user, pwd)
os.environ['HTTPS_PROXY'] = 'https://{}:{}@yourproxyserver:8080'.format(user, pwd)
print('using inet proxy')

...
then rally calls should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants