[library] Network configuration task reports success even when config is not applied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Fuel Library (Deprecated) |
Bug Description
Sometimes network configuration task reports success and deployment continues but fail later on another task, because no interfaces were actually configured:
root@node-5:~# grep -E 'MODULAR|err\):' /var/log/puppet.log
2015-09-09 11:16:17 +0000 Scope(Class[main]) (notice): MODULAR: hiera.pp
2015-09-09 11:16:21 +0000 Scope(Class[main]) (notice): MODULAR: globals.pp
2015-09-09 11:16:26 +0000 Scope(Class[main]) (notice): MODULAR: logging.pp
2015-09-09 11:16:30 +0000 Scope(Class[main]) (notice): MODULAR: tools.pp
2015-09-09 11:16:35 +0000 Scope(Class[main]) (notice): MODULAR: netconfig.pp
2015-09-09 11:16:40 +0000 Puppet (err): Could not apply complete catalog: Found 1 dependency cycle:
2015-09-09 11:16:42 +0000 Scope(Class[main]) (notice): MODULAR: connectivity_
2015-09-09 11:16:46 +0000 Scope(Class[main]) (notice): MODULAR: firewall.pp
2015-09-09 11:16:51 +0000 Scope(Class[main]) (notice): MODULAR: ssl_add_
2015-09-09 11:16:55 +0000 Scope(Class[main]) (notice): MODULAR: hosts.pp
2015-09-09 11:17:00 +0000 Scope(Class[main]) (notice): MODULAR: zabbix.pp
2015-09-09 11:17:05 +0000 Scope(Class[main]) (notice): MODULAR: ceph-osd.pp
2015-09-09 11:20:14 +0000 Puppet (err): ceph-deploy --overwrite-conf config pull node-9 returned 1 instead of one of [0]
2015-09-09 11:20:14 +0000 /Stage[
2015-09-09 11:20:17 +0000 Scope(Class[main]) (notice): MODULAR: ceph-osd.pp
2015-09-09 11:25:06 +0000 Puppet (err): ceph-deploy --overwrite-conf config pull node-9 returned 1 instead of one of [0]
2015-09-09 11:25:06 +0000 /Stage[
2015-09-09 11:25:11 +0000 Scope(Class[main]) (notice): MODULAR: ceph-osd.pp
2015-09-09 11:27:47 +0000 Puppet (err): ceph-deploy --overwrite-conf config pull node-9 returned 1 instead of one of [0]
2015-09-09 11:27:47 +0000 /Stage[
root@node-5:~# ping -q -c 3 -W 1 node-9
PING node-9.mirantis.com (192.168.0.7) 56(84) bytes of data.
--- node-9.mirantis.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms
root@node-5:~# ip r g 192.168.0.7
192.168.0.7 via 172.16.162.36 dev eth0 src 172.16.162.51
cache
Such issues happen because we use old Puppet version on slaves which have the following bug: https:/
So if networking template has incorrect transformations order then 'dependency cycle' error occurs, but `puppet apply` still returns 0 exit code:
root@node-5:~# puppet apply -d --detailed-
...
Error: Could not apply complete catalog: Found 1 dependency cycle:
(L23_stored_
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
...
root@node-5:~# echo $?
0
root@node-5:~# puppet -V
3.4.3
In order to fix this bug we need to upgrade Puppet on slaves to >=4.1.0 or >=3.8.3 version.
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
status: | Confirmed → Incomplete |
please provide network template code
and full puppet logs