I managed to find why this is happening in my env.
I found that network-get is getting info from local dns, and 127.0.1.1 is returned when trying to nslookup node-12.maas(affected machine)
This was because manage_etc_hosts: true is default for MAAS deployed machine.
so I set user_data when deploy maas machine like below
maas xtrusia machine deploy MACHINE_NAME distro_series=xenial user_data=I2Nsb3VkLWNvbmZpZwptYW5hZ2VfZXRjX2hvc3RzOiBmYWxzZQo=
user_data is like below
#cloud-config manage_etc_hosts: false
After that, symptom was gone.
Thanks.
I managed to find why this is happening in my env.
I found that network-get is getting info from local dns, and 127.0.1.1 is returned when maas(affected machine)
trying to nslookup node-12.
This was because manage_etc_hosts: true is default for MAAS deployed machine.
so I set user_data when deploy maas machine like below
maas xtrusia machine deploy MACHINE_NAME distro_ series= xenial user_data= I2Nsb3VkLWNvbmZ pZwptYW5hZ2VfZX RjX2hvc3RzOiBmY WxzZQo=
user_data is like below
#cloud-config
manage_etc_hosts: false
After that, symptom was gone.
Thanks.