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

CloudStack Agent on host with DHCP #7711

Closed
damonb123 opened this issue Jun 29, 2023 · 5 comments
Closed

CloudStack Agent on host with DHCP #7711

damonb123 opened this issue Jun 29, 2023 · 5 comments

Comments

@damonb123
Copy link

ISSUE TYPE
  • Improvement Request
COMPONENT NAME
CloudStack Agent
CLOUDSTACK VERSION
4.17, 4.18
SUMMARY

If physical KVM host IP address changes with DHCP, the agent is unable to reconnect to CloudStack management server.

STEPS TO REPRODUCE
Change the IP address of the KVM node the agent is running on and reboot the host.
The agent will not be able to connect back to the management server and throw errors.
EXPECTED RESULTS
The agent should connect back to management server, and the host physical IP address should be updated.
ACTUAL RESULTS
2023-06-29 17:40:15,368 INFO  [utils.nio.NioClient] (main:null) (logid:) NioClient connection closed
2023-06-29 17:40:15,368 INFO  [cloud.agent.Agent] (main:null) (logid:) Attempted to connect to the server, but received an unexpected exception, trying again...
com.cloud.utils.exception.NioConnectionException: SSL Handshake failed while connecting to host: 10.60.96.48 port: 8250
@weizhouapache
Copy link
Member

@damonb123
is the IP changed ?

@rohityadavcloud
Copy link
Member

Could you try having static DHCP assignments by your router?

@DaanHoogland
Copy link
Contributor

@damonb123 It sounds to me your scenario would have to be;

  • remove the host from cloudstack
  • change the ip
  • reboot
  • re-add
    I don´t think we support this out-of-bounds changing of the IP of an host.

@zap51
Copy link
Contributor

zap51 commented Jul 23, 2023

@damonb123 Static assignment should always be preferred for your hypervisors for various reasons. Try setting static DHCP assignment on your DHCP server of the host's management MAC address to always lease out a static IP.

@rohityadavcloud
Copy link
Member

@damonb123 by design, DHCP enabled KVM hosts aren't support with the CA framework security enabled. You can disable the auth strictness on such hosts to make them work. Though it's not a good idea to have hosts whose rfc1918 IPs can change.

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

No branches or pull requests

5 participants