VMware Identity Manager delegate IP is not persistent after assigning manually
search cancel

VMware Identity Manager delegate IP is not persistent after assigning manually

book

Article ID: 398399

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • After configuring delegateIP using command line, we see output as shown below where eth0:0 will be shown

root@<vidm_hostname>[ ~ ]# ifconfig eth0:0 inet delegateIP netmask ##.##.##.##

root@<vidm_hostname>[ ~ ]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr ##:##:##:##:##:##
          inet addr:##.##.##.##  Bcast:##.##.##.##  Mask:##.##.##.##
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          .....
          

eth0:0    Link encap:Ethernet  HWaddr ##:##:##:##:##:##
          inet addr:##.##.##.##  Bcast:##.##.##.##  Mask:##.##.##.##
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:##.##.##.##  Mask:##.##.##.##
          inet6 addr: ::1/128 Scope:Host
          .....

  • After few minutes when we run the command as shown below, we do not see eth0:0 present 

root@<vidm_hostname>[ ~ ]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr ##:##:##:##:##:##
          inet addr:##.##.##.##  Bcast:##.##.##.##  Mask:##.##.##.##
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          .....

lo        Link encap:Local Loopback
          inet addr:##.##.##.##  Mask:##.##.##.##
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
                   .....

This "^M" character is seen while tailing the /var/log/pgService/auto-recovery.log besides the variables (like so):
PRIMARY_IP="#.#.#.#^M"
SECONDARY_1_IP="#.#.#.#^M"
SECONDARY_2_IP="#.#.#.#^M"

 

Environment

VMware Identity Manager 3.3.x

Cause

This can cause if the pgpool.conf file encoding has changed from LF to CRLF encoding.

Resolution

Below resolution is applicable for VMware identity Manager with 3 nodes.

  1. SSH to VMware Identity Manager node as Root
  2. Navigate to the pgpool location
    • cd /usr/local/etc/pgpool.conf
  3. Make a copy of the file by running below command
    • cp /usr/local/etc/pgpool.conf /usr/local/etc/pgpool.conf.bak
  4. Edit the file using vim 
    • vim  /usr/local/etc/pgpool.conf
  5. While saving the file, change the format back to LF encoding. 
  6. To change the line endings, convert from DOS/Windows to Linux (CRLF to LF), set the file format in vim to unix:
    • :set fileformat=unix
  7. Save the file
    • :wq!
  8. Restart the pgservice 
    • /etc/init.d/pgService start

If you suspect any corruption of the /usr/local/etc/pgpool.conf file and the cluster was working before, you can restore the original configuration using the command:

  • cp /usr/local/etc/.backup/pgpool.conf /usr/local/etc/pgpool.conf
WARNING:
DO-NOT edit, remove or move any files under: /usr/local/etc/.backup. Otherwise the cluster should be rebuilt manually.