Start pbs does not work

It seems that the canonicalized hostname keeps changing.

The server sets the administrators to root on the canonical name of the hostname when you set things up. Since you now get “unauthorized request”, the qmgr commands no longer seem to come from the address that name is bound to – possibly because that name is no longer resolvable because you changed things (is the host supposed to be “centos7” or “centos7-1”? Decide once and for all…)

Ditto for your node:

centos7
Mom = centos7.home

You created the node by passing the name “centos”. BTW: this name MUST match the output of “hostname” or your hooks won’t work well. It resolved it to an IP address, and reached a MoM. MoM sent back a message, and the IP address it gave resolved to centos7.home, but this name currently does not map to an IP address. I bet that now centos7-1.home exists but not centos7.home.

In other words: stick to one canonical name for each IP address and don’t change it. Make sure that /etc/nsswitch.conf has “files” first for the hosts map, and then control your IP/name translations from there (the canonicalized hostname is always the first entry). Make sure names that you use only appear on one line (do not be tempted to add e.g. “centos7” to two different lines, because that will confuse a lot of software since your canonicalisation is then ambiguous).

How you get out of this conundrum indeed depends on what you see in the logs and what the output of qmgr -c “print server” is.

1 Like