-
Notifications
You must be signed in to change notification settings - Fork 163
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
Fence_aws: Proxy configurations not picked when used with STONITH #528
Comments
The agent doesnt currently support proxies. |
Thanks for the information, will that be enabled anytime soon? Or is there any other workaround? |
@samsat22 can you explain how did you set the proxy configuration? |
Set as Environment variable HTTP_PROXY, HTTPS_PROXY and also under /etc/profile.d/proxy.sh |
@samsat22 I recommend you to set the env vars inside For AWS, you will also include the EC2 instance metadata (169.254.169.254) in the |
@samsat22 updates? |
@gguifelixamz Not sure what is the variable value to be set in pacemaker config file like pcmk_host. I was able to resolve this timeout error by creating VPC endpoint. The EC2 instance uses IAM role and the ~/.aws/credentials is created with below content, but still I get the error “Failed: Incorrect Access Key or Secret Key” [default] Fencing status is success if the below command: “fence_aws -o status -n <instance_id> -v |
Example - the
Do you have an IAM Role attached to your EC2 instance? You either need an IAM role or IAM Access Keys configured in your fencing agent for it to work. |
Thanks! I will try the proxy modification. Yes, I’ve the IAM role attached to EC2. This is successful - but stonith auto fencing fails with invalid access key and secret key. |
What RHEL version are you using? |
RHEL8 @gguifelixamz |
Hi,
fence_aws agent able to fence the EC2 instances when ran with “fence_aws -o off ” but when STONITH tries to fence instance the proxies set in environment variables are not picked and end in timeout.
The text was updated successfully, but these errors were encountered: