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
subscription-manager version call failing in proxy environment #489
Comments
…nment variable
…nment variable
@praveenkumar I have found two problematic things in current proxy solution, but I am not sure if this is going to help you as I was unable to somehow understand your changes. However those 2 things are:
|
Before it was doing that but now with the PR it does setup proxy before executing any subscription-manager commands.
The way I can see is you are executing sudo without preserving the environment variables so when you use sudo with subscription manager then use I recommend you to do a manual build from this PR and you are able to see subscription-manager will go through from proxy server. |
This looks like a bug with the code and it is blocker issue. I have assumed that the version command is a local command and does not need network access. |
@praveenkumar if @agajdosi 's observation is correct than we have a bug in below code. Which did not change from the first attempt of adding proxy. So I think your current PR will also fail for @agajdosi
|
…nment variable
@agajdosi good catch 👍 - so here we have an issue regardless of which approach we are taking. |
I manually tested and I agree with @agajdosi , Saw below in the proxy server access log when I executed teh version command.
|
@hferentschik yes, the config command needs to run first then anything else |
@LalatenduMohanty even config command run then also if we need to use sudo with |
@praveenkumar Sorry I did not get you. I mean the |
@praveenkumar RHEL is being registered successfully in OpenStack with build of your PR branch. Verified with functionality of yum. Only problem I am facing is I have to use MINISHIFT_USERNAME and MINISHIFT_PASSWORD, when using --username and --password flags I am getting following error:
But this can be also problem with bad configuration on my side: I am using rhel.iso from cdk beta2 build with --iso-url flag, nothing else was configured from my side.
👍 Thank you for this info, did not realized that. |
…nment variable
…nment variable
@praveenkumar Tested your PR on RHEL7 behind blocking proxy. Issue with not accepting --password --username is gone. MINISHIFT_PASSWORD/MINISHIFT_USERNAME works also well. Proxy registration in both cases went fine. Seems fine to me. 👍 |
@agajdosi Thank you for testing it out 👍 |
Merged via pull request #490 |
subscription-manager version call failing in proxy environments.
Also some code refactoring around current code i.e. we are parsing proxy details using regex and then passing it to subscription manager. subscription manager do honor the shell proxy env and should consumed it instead we do extra work from parsing.
The text was updated successfully, but these errors were encountered: