SM:mainline:4.0.0.0-3023: sm-config.ini file is picking the docker0 IP
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Critical
|
Nitish Krishna Kaveri |
Bug Description
SM:mainline:
1) Install mainline 4.0.0.0-3023 ubuntu Mitaka SM
2) During installation of server packages, it brings up docker0 interface
docker0 Link encap:Ethernet HWaddr 02:42:7a:08:be:f9
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1072 (1.0 KB) TX bytes:9941 (9.9 KB)
3) sm-config.ini, sm-client-
root@nodej3:~# cat /opt/contrail/
[SERVER-MANAGER]
listen_ip_addr = 172.17.0.1
listen_port = 9001
database_name = smgr_data.db
server_
html_root_dir = /var/www/html/
cobbler = true
monitoring = true
cobbler_ip_address = 172.17.0.1
cobbler_port =
cobbler_username = testing
cobbler_password = testing
ipmi_username = ADMIN
ipmi_password = ADMIN
ipmi_type = ipmilan
puppet_dir = /etc/puppet/
[CLUSTER]
[SERVER]
[IMAGE]
[SERVER-MANAGER]
monitoring = true
collectors = ['172.17.0.1:8086']
http_introspect
sandesh_log_level = SYS_ERR
[MONITORING]
monitoring_
monitoring_plugin = server_
[INVENTORY]
inventory_plugin = server_
cat /opt/contrail/
[SERVER-MANAGER]
; ip address of the server manager
; replace the following with proper server manager address
listen_ip_addr = 172.17.0.1
; server manager listening port
listen_port = 9001
[CLUSTER]
[SERVER]
4) This is leading to the SM being brought up in the docker interface
netstat -anp | grep 9001
tcp 0 0 172.17.0.1:9001 0.0.0.0:* LISTEN 25748/python
5) So, succesive activities, like reimage, add image fails
reimage fails with kickstart file being searched in 172.17.0.1
add image fails Error: (7, 'Failed to connect to 172.17.0.1 port 9001: Connection refused')
This parity needs to be fixed
Workaround:
Please give --hostip=<IP> option to setup.sh script