nomad icon indicating copy to clipboard operation
nomad copied to clipboard

"Wrong" warning message in Openstack clouds: nomad.rpc: no path found to region: region=<region-name>

Open neuroserve opened this issue 1 year ago • 0 comments

Nomad version

root@nomad-prod1-0:~/nomad-jobs# nomad version
Nomad v1.8.3
BuildDate 2024-08-13T07:37:30Z
Revision 63b636e5cbaca312cf6ea63e040f445f05f00478

Operating system and Environment details

root@nomad-prod1-0:~/nomad-jobs# cat /etc/debian_version 
11.10
root@nomad-prod1-0:~/nomad-jobs# uname -ra
Linux nomad-prod1-0 5.10.0-28-cloud-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux

Nomad is used inside an Openstack environment. The servers use the retry_join statement to join the cluster:

server {
  enabled          = true
  encrypt          = "<some-encrypt-string>" 
  bootstrap_expect = 3
  server_join {
    retry_join     = [ "provider=os tag_key=nomad-role tag_value=server auth_url=<some-auth-url:5000> user_name=<someusername> domain_name=<somedomainname> password="somepassword" region=an-openstack-region" ] 
    retry_interval = "15s"
  }
}

Issue

Using the openstack-region in the retry_join statement creates a warning in the Nomad log:

Aug 21 11:09:18 nomad-prod1-0 nomad[12667]:     2024-08-21T11:09:18.064Z [WARN]  nomad.rpc: no path found to region: region=someregion
Aug 21 11:09:18 nomad-prod1-0 nomad[12667]:  nomad.rpc: no path found to region: region=someregion

Reproduction steps

Use the retry_join statement in a Nomad configuration in an Openstack environment and use the Openstack region in it. That will create the above warnings.

Expected Result

The use of the Openstack region should not create warning messages.

Actual Result

The use of the Openstack region creates a warning message in the Nomad log.

Nomad Server logs (if appropriate)

S. above.

neuroserve avatar Aug 22 '24 19:08 neuroserve