Unable to import LAG into Administration Console after changing IP address in YaST

  • 7007310
  • 03-Dec-2010
  • 26-Apr-2012

Environment

Novell Access Manager 3.1.2 InterimRelease 2 (3.1.2-328)
Novell Access Manager 3.1.2 InterimRelease 3 (3.1.2-345)
Linux Access Gateway

Situation

Attempting to re-import LAG into the Administration Console using the /chroot/lag/opt/novell/bin/lagconfigure.sh script after manually modifying IP settings of the Network Adapter in YaSTthe import seems to complete successfully, but the LAG has not been imported, and when you look at ifconfig the IP settings for the NetWork Adapter have returned to their original install settings.

The lag_import.log has the following:

Configuring Novell Access Manager Server Communications:
JCC_REMOTE_PORT 8444
JCC_REMOTE_IP 151.155.131.55
JCC_LOCAL_IP 151.155.130.138      <------ this is the new IP that was changed in YaST
DS_SERVER_ADDR 151.155.131.55
DEVMAN_SRV_IP 151.155.131.55
DS_ADMIN_DN cn=admin,o=novell
DS_ADMIN_PWD_NOT_SET 1
UNIQUE_ID FF99264306DF2E2A
Checking the status of SuSEfirewall2 ..unused
Unable to connect to Admin Server IP. Error : 151.155.131.55:636

The JCC Configuration failed. Please view the problem within the logfile found
at /tmp/novell_access_manager/lag_import.log

Resolution

  On the LAG:
1. Backup /var/novell/cfgdb/.backup/config.xml
2. Change the IP address in the config.xml from the old address to the new desired address (also verify the subnet mask is correct)
3. Run the lagconfigure.sh script.

Additional Information

The lagconfigure.sh script copies a stored config.xml (in the /var/novell/cfgdb/.backup/ directory) that is created when you first install the LAG. This config.xml contains the original IP address you entered, and copies the config.xml over to .current during the import, and the settings within it become the IP settings:

 read -e -p "`gettext 'Do you want to import the device with current configuration or initial configuration after install(with only network-related)? (Enter C for current configuration, I for initial configuration)'`" CONFIG_TO_IMPORT
    if [ "${CONFIG_TO_IMPORT}" == 'c' -o "${CONFIG_TO_IMPORT}" == 'C' ]
    then
        echo "Importing the device with current configuration">> "${MAIN_INSTALL_LOG}"
        echo "`gettext 'Importing the device with current configuration'`"
    else
        if [ "${CONFIG_TO_IMPORT}" == 'i' -o "${CONFIG_TO_IMPORT}" == 'I' ]
        then
            echo "Importing the device with initial configuration">> "${MAIN_INSTALL_LOG}"
            echo "`gettext 'Importing the device with initial configuration'`"
            cp /var/novell/cfgdb/.backup/* /var/novell/cfgdb/.current/
            ############Added for Bug#344575
            cp /var/novell/cfgdb/.backup/* /var/novell/cfgdb/vcdn/
            ###################################
            rm /var/novell/cfgdb/.current/.*.lock
            chown -R config /var/novell/cfgdb/.current
            chgrp -R admin /var/novell/cfgdb/.current
            chmod -R 774 /var/novell/cfgdb/.current
            /etc/init.d/novell-vmc stop >> "${MAIN_INSTALL_LOG}"
            sleep 5
            /etc/init.d/novell-vmc start >> "${MAIN_INSTALL_LOG}"
            sleep 10