PBS_SERVER missing from pbs.conf if it is set in environment at rpm -i install time

Description

If I have a value (even a totally valid one as shown below, though that was not my initial test) in my environment for PBS_SERVER then it is missing from pbs.conf. I see this for pbspro-server, pbspro-execution, and pbspro-client (not even the "CHANGE_THIS_TO_PBS_PRO_SERVER_HOSTNAME" value is present when using those last 2).

[root@centos7 pbspro-14.1.0]# export PBS_SERVER=centos7
[root@centos7 CentOS_7]# rpm -i pbspro-execution-14.1.0-13.1.x86_64.rpm
warning: pbspro-execution-14.1.0-13.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID b5eddb83: NOKEY
PBS Installation Summary
***
Postinstall script called as follows:
/opt/pbs/libexec/pbs_postinstall execution 14.1.0 /opt/pbs /var/spool/pbs
***
No configuration file found.
Creating new configuration file: /etc/pbs.conf
Replacing /etc/pbs.conf with /etc/pbs.conf.14.1.0
/etc/pbs.conf has been created.
***
Registering PBS Pro as a service.
***
PBS_HOME is /var/spool/pbs
Creating new file /var/spool/pbs/pbs_environment
WARNING: TZ not set in /var/spool/pbs/pbs_environment
***
The PBS Pro MOM has been installed in /opt/pbs/sbin.
***
The PBS commands have been installed in /opt/pbs/bin.
***
End of /opt/pbs/libexec/pbs_postinstall
[root@centos7 CentOS_7]# cat /etc/pbs.conf
PBS_START_SERVER=0
PBS_START_SCHED=0
PBS_START_COMM=0
PBS_START_MOM=1
PBS_EXEC=/opt/pbs
PBS_HOME=/var/spool/pbs
PBS_CORE_LIMIT=unlimited
PBS_SCP=/bin/scp

Acceptance Criteria

PBS_SERVER must not be missing in pbs.conf

Activity

Show:
Brem Anand
December 12, 2016, 8:43 AM

This issues has been resolved after merging solution provided for PP-472.

Brem Anand
December 12, 2016, 8:46 AM

PBS_SERVER in pbs.conf populated properly.

[root@lotus x86_64]# ls
pbspro-client-14.0.1-0.x86_64.rpm pbspro-debuginfo-14.0.1-0.x86_64.rpm pbspro-execution-14.0.1-0.x86_64.rpm pbspro-server-14.0.1-0.x86_64.rpm
[root@lotus x86_64]# export PBS_SERVER=lotus
[root@lotus x86_64]# rpm -i pbspro-execution-14.0.1-0.x86_64.rpm

  •  

    •  

      • PBS Installation Summary
        ***

      • Postinstall script called as follows:

      • /opt/pbs/libexec/pbs_postinstall execution 14.0.1 /opt/pbs /var/spool/pbs
        ***

      • No configuration file found.

      • Creating new configuration file: /etc/pbs.conf

      • Replacing /etc/pbs.conf with /etc/pbs.conf.14.0.1

      • /etc/pbs.conf has been created.
        ***

      • Registering PBS Pro as a service.
        ***

      • PBS_HOME is /var/spool/pbs

      • Creating new file /var/spool/pbs/pbs_environment

      • WARNING: TZ not set in /var/spool/pbs/pbs_environment
        ***

      • The PBS Pro MOM has been installed in /opt/pbs/sbin.
        ***

      • The PBS commands have been installed in /opt/pbs/bin.
        ***

      • End of /opt/pbs/libexec/pbs_postinstall
        [root@lotus x86_64]# cat /etc/pbs.conf
        PBS_EXEC=/opt/pbs
        PBS_SERVER=lotus
        PBS_START_SERVER=0
        PBS_START_SCHED=0
        PBS_START_COMM=0
        PBS_START_MOM=1
        PBS_HOME=/var/spool/pbs
        PBS_CORE_LIMIT=unlimited
        PBS_SCP=/bin/scp
        [root@lotus x86_64]#

Resolving this issue as fixed

Fixed

Assignee

Brem Anand

Reporter

Scott Campbell

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Fix versions

Affects versions

Priority

High
Configure