Ops Center AI wrong IP

Hello, I have problems with Automated Installer on Solaris 11. I tried provision Solaris 11 on my T5-1B server from Ops Center, but AI set wrong IP address for manifest SMF. My Ops Center server has two IP addresses 10.236.102.219 and 10.226.21.141. Second IP is in subnet for provisioning of Operating Systems.

WAN boot successfully dowloaded all images from 10.226.21.141:5555, but after installation of this image service svc:/application/manifest-locator:default failed. From logs I read it tried connect to 10.236.102.219 IP address instead of 10.226.21.141.

Could you please help me why? I attached also log file

Hi ;). Post output of:

svccfg export application/manifest-locator | grep exec_method
root@10-226-23-58:~# svccfg export application/manifest-locator | grep exec_met
hod
    <exec_method name='start' type='method' exec='/lib/svc/method/manifest-locator' timeout_seconds='0'/>
    <exec_method name='stop' type='method' exec=':true' timeout_seconds='0'/>

Now run:

perl -i -pe '$.==1&&!/-x/&&s/$/ -x/' /lib/svc/method/manifest-locator
svcadm clear application/manifest-locator

This will tun on Shell debug mode, which will go into the service log. After the service goes into maintenance again, show us whole /var/svc/log/application-manifest-locator:default.log file.

Log attached

What is the contents of: /etc/netboot/system.conf and /etc/netboot/wanboot.conf ?

root@10-226-23-58:~# cat /etc/netboot/system.conf
install_service=opscenter_oc_solaris_sparc_1
install_svc_address=$serverIP:5555

What about /etc/netboot/wanboot.conf ?

on our Ops Center AI config:

root@opscenter:~# cat /var/ai/ai-webserver/listen-addresses.conf 
#
# Do not edit by hand.
# This file is created by the svc:/system/install/server method script
# and is Included in the AI webserver configuration file.
#
Listen 10.236.102.219:5555
Listen <second IP>:5555
Listen 192.168.101.2:5555
Listen 10.226.21.141:5555
root@10-226-23-58:~# cat /etc/netboot/wanboot.conf
root_server=http://opscenter.<domain>.com:5555/cgi-bin/wanboot-cgi
root_file=/var/js/AI/sparc_1/boot/platform/sun4v/boot_archive
boot_file=/var/js/AI/sparc_1/platform/sun4v/wanboot
system_conf=system.conf
encryption_type=
signature_type=
server_authentication=no
client_authentication=no

And what does nslookup opscenter.<domain>.com show? My (wild) guess it will be "10.236.102.219".

It looks like good. I don't know why AI server choosed first IP address from /var/ai/ai-webserver/listen-addresses.conf

root@10-226-23-58:~# nslookup opscenter.<domain>.com
;; connection timed out; no servers could be reached

root@10-226-23-58:~# grep opscenter /etc/hosts
10.226.21.141   opscenter.<domain>.com

Hmm, try running this:

/usr/bin/ai_sd -n opscenter_oc_solaris_sparc_1 -o /tmp/service_list -t 5 -d 4

Then show us what is in /tmp/service_list .

root@10-226-23-58:~# /usr/bin/ai_sd -n opscenter_oc_solaris_sparc_1 -o /tmp/ser
vice_list -t 5 -d 4
<AISD_I 12/21 20:06:23> Service file: /tmp/service_list
<AISD_I 12/21 20:06:23> Service to look up: opscenter_oc_solaris_sparc_1._OSInstall._tcp.local
<AISD_I 12/21 20:06:28> Valid service found:
        svc: opscenter_oc_solaris_sparc_1._OSInstall._tcp.local:5555
        TXT: aiwebserver=10.236.102.219:5555
<AISD_I 12/21 20:06:28> opscenter_oc_solaris_sparc_1._OSInstall._tcp.local can be reached at: 10.236.102.219:5555
<AISD_I 12/21 20:06:28> Storing service list into /tmp/service_list
root@10-226-23-58:~# cat /tmp/service_list .
10.236.102.219:5555:opscenter_oc_solaris_sparc_1

And what is in /system/volatile/service_list ?

root@10-226-23-58:~# ls /system/volatile/service_list.*
/system/volatile/service_list.1165  /system/volatile/service_list.912
root@10-226-23-58:~# cat /system/volatile/service_list.1165
10.236.102.219:5555:opscenter_oc_solaris_sparc_1
root@10-226-23-58:~# cat /system/volatile/service_list.912
10.236.102.219:5555:opscenter_oc_solaris_sparc_1

And this (without dot):

ls /system/volatile/service_list*
root@10-226-23-58:~# ls /system/volatile/service_list*
/system/volatile/service_list.1165  /system/volatile/service_list.912

What does this show:

file /usr/bin/ai_sd
root@10-226-23-58:~# file /usr/bin/ai_sd
/usr/bin/ai_sd: executable /usr/bin/python2.6 script

Ok, lets try to find out what files it is opening. Try:

truss -f /usr/bin/ai_sd -n opscenter_oc_solaris_sparc_1 -o /tmp/service_list2 -t 5 -d 4 2>&1 | grep open