alces-software / metalware

Tools and conventions for improving bare metal machine management
Other
2 stars 0 forks source link

Straighten Out Hostname/Nodename Usage in Identifying Node IP #432

Closed ColonelPanics closed 6 years ago

ColonelPanics commented 6 years ago

Recently @bobwhitelock ran into the following error:

[root@controller [asset-example] metalware]# metal view nodes.local.to_h
error: 'gethostip -x local' produced error 'local: Unknown host'.

This is an expected error due to metalware using node.name (local) for the host IP lookup. In the case of the local node, it never shares its hostname with its nodename, usually the local node network hostname is controller.

As I see it there are a couple of options for resolving this:

What are your thoughts on this issue?

bobwhitelock commented 6 years ago

Don't know enough about how we currently use this part of Metalware/how we want this to work, but I agree we should do something to fix this; the current behaviour is annoying and requires hacking /etc/hosts for metal view to work for all nodes.

bobwhitelock commented 6 years ago

This issue was moved to alces-software/underware#3