Skip to content

[Bug]: preinstalling netclient in packer images locks build image hostname into the image #2227

@nepeat

Description

@nepeat

Contact Details

No response

What happened?

I am provisioning hosts with netclient preinstalled in their base image as part of a personal project that uses disposable cloud nodes. When I enroll the hosts into my netmaker network, they look like they suceed but have some odd side effects which cause them to be unable to acquire or connect to the network.

root@hetzner-nbg1-3:/etc/netclient# netclient join -v 4 -t XXXXX=
[netclient] 2023-04-20 20:58:56 [netclientutils_linux.go-43] IsBridgeNetwork(): Interface is a bridge network: docker0
registered with server XXXXXX.XXX

For each of the nodes, they have registered under the build image's hostname packer-XYZ but I assume problems happen as a result of multiple nodes sharing the same hostname.

I found that if I do not include Netclient in my base image and install it during the server provisioning process, connections are able to be made and IPs can be acquired for my internal mesh.

Version

v0.18.6

What OS are you using?

Linux

Relevant log output

No response

Contributing guidelines

  • Yes, I did.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions