Here [0] we have 2 openstack-network-routers task which apply the same manifests but twice - once on openstack-network configuration stage and the other on post deployment stage.
I reverted the environment with the bug and found that openstack_network/routers.pp was applied only one time. In puppet logs on primary controller I see that it was applied only once:
Looks like i found the reason:
Here [0] we have 2 openstack- network- routers task which apply the same manifests but twice - once on openstack-network configuration stage and the other on post deployment stage.
I reverted the environment with the bug and found that openstack_ network/ routers. pp was applied only one time. In puppet logs on primary controller I see that it was applied only once:
grep openstack_ network/ routers /var/log/puppet.log Openstack_ tasks:: Openstack_ network: :Routers] ) (notice): MODULAR: openstack_ network/ routers. pp
2016-12-14 14:54:40 +0000 Scope(Class[
Then I applied manually openstack_ network/ routers. pp and external_gateway was correctly configured:
Notice: /Stage[ main]/Openstack _tasks: :Openstack_ network: :Routers/ Neutron_ router[ router04] /gateway_ network_ name: gateway_ network_ name changed '' to 'admin_ floating_ net'
neutron router-list ------- ------- ------- ------- ----+-- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- -+----- --+ gateway_ info | distributed | ha | ------- ------- ------- ------- ----+-- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- -+----- --+ 7192-4aae- 981e-daed4cbdd2 39 | router04 | {"network_id": "90252123- b344-42e2- a08c-06a039e159 6b", "enable_snat": true, "external_ fixed_ips" : [{"subnet_id": "e125106b-ebdc- | False | False | 556c83da34f6" , "ip_address": "10.109.39.131"}]} | | | ------- ------- ------- ------- ----+-- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- -+----- --+
+------
| id | name | external_
+------
| 8f46bb7e-
| | | 4d4e-bb67-
+------
[0] https:/ /github. com/openstack/ fuel-library/ blob/master/ deployment/ puppet/ openstack_ tasks/examples/ openstack- network/ tasks.yaml# L189-L228