-
Notifications
You must be signed in to change notification settings - Fork 327
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
[BUG] vm-dhcp-controller dhcpserver-agent Pod Fails to Start in Air-Gapped Environment Due to ImagePullPolicy 'Always' Setting #6942
Comments
Hi @zha0jf, thanks for reporting. I wonder why, even though the missing container image is imported to the node, it still complains about |
Your fix in harvester/vm-dhcp-controller#37 can resolve the issue. However, this also reminds us that we should use any container image packed in the ISO image. I'd say that's the root cause of the problem. I'm considering adding iproute2 to the |
That will be great. Thank you. |
Pre Ready-For-Testing Checklist
|
Automation e2e test issue: harvester/tests#1652 |
Hi @zha0jf, We've published harvester-vm-dhcp-controller 0.3.3. Would you like to try it to see if it solves the problem? Thank you. |
Hi @starbops,I just tested harvester-vm-dhcp-controller 0.3.3 in the harvester-v1.4.0-rc5 air-gapped environment, and the issue has been resolved. Thank you. |
@zha0jf That's a great news! Thanks again for spotting the issue and sending a patch to us :) Note: please don't close this issue yet. We have our pipelines and will take care of it. |
Describe the bug
In the
prepareAgentPod
function within the filevm-dhcp-controller/pkg/controller/ippool/common.go
, an init container is added to thevm-dhcp-agent
pod, using the imagedocker.io/library/busybox
with the defaultimagePullPolicy
set toAlways
. This configuration causes the vm-dhcp-agent'sdhcpserver-agent
pod to get stuck in the “Init:ImagePullBackOff” status when deploying in an air-gapped environment, even if thebusybox:latest
image was pre-uploaded offline. This prevents thevm-dhcp-agent
from functioning in air-gapped environments.To Reproduce
Steps to reproduce the behavior:
vm-dhcp-controller
in an air-gapped environment.busybox:latest
image offline, the vm-dhcp-agentdhcpserver-agent
pod remains stuck in the "Init:ImagePullBackOff" status.Expected behavior
The vm-dhcp-agent
dhcpserver-agent
pod should be able to pull the locally uploaded image and start successfully in an air-gapped environment.Support bundle
Environment
Additional context
It is recommended to add the configuration
ImagePullPolicy = "IfNotPresent"
at line 96 in the filevm-dhcp-controller/pkg/controller/ippool/common.go
to ensure that thevm-dhcp-controller
can function properly in air-gapped environments.The text was updated successfully, but these errors were encountered: