Block to unstall Neutron agents theese does not related to Calico

Also:
 * run Metadata-agents on compute nodes
 * workaround for waiting of br-int bridge existing before compute service run

Change-Id: I9e9d0aa587b9902d4497e1724d95fd14e9129dd9
This commit is contained in:
Sergey Vasilenko 2016-07-15 17:28:08 +03:00
parent 80ad5c74d4
commit b7f4c650cf
3 changed files with 47 additions and 5 deletions

View File

@ -79,7 +79,7 @@ service etcd start
# Run apt-get upgrade and apt-get dist-upgrade. These commands will
# bring in Calico-specific updates to the OpenStack packages and to
# dnsmasq.
# dnsmasq.
apt-get -y --force-yes upgrade
apt-get -y --force-yes dist-upgrade
@ -94,8 +94,11 @@ service nova-compute restart
# Install calico-dhcp-agent
apt-get -y install calico-dhcp-agent
# Allow BGP connections through the Fuel firewall. We do this before
# installing calico-compute, so that they will be included when the
# Install neutron-metadata-agent on compute node
apt-get -y install neutron-metadata-agent
# Allow BGP connections through the Fuel firewall. We do this before
# installing calico-compute, so that they will be included when the
# calico-compute install script does iptables-save.
iptables -I INPUT 1 -p tcp --dport 179 -j ACCEPT
@ -130,7 +133,7 @@ apt-get -y install calico-compute bird
# a route reflector to avoid the need for a full BGP mesh. To this
# end, it includes useful configuration scripts that will prepare a
# BIRD config file with a single peering to the route reflector. If
# that's correct for your network, you can run the following command
# that's correct for your network, you can run the following command
# for IPv4 connectivity between compute hosts.
#
# The calico_route_reflector.sh script will set up the required BGP

View File

@ -0,0 +1,12 @@
notice('MODULAR: calico/neutron-br-int-workaround.pp')
$use_ovs = hiera('use_ovs', false)
if $use_ovs {
exec {'workaround__create_br-int':
command => 'ovs-vsctl --may-exist add-br br-int',
path => ['/usr/bin', '/usr/sbin'],
try_sleep => 6,
tries => 10,
}
}

View File

@ -49,6 +49,19 @@
cmd: ./calico_compute.sh
timeout: 600
- id: neutron-br-int-workaround
role: ['compute']
version: 2.0.0
requires: [openstack-network-start]
required_for: [openstack-network-end, enable_nova_compute_service]
type: puppet
parameters:
timeout: 180
puppet_manifest: neutron-br-int-workaround.pp
puppet_modules: puppet/modules:/etc/puppet/modules
# Disable tasks that create neutron router and networks
- id: openstack-network-networks
type: skipped
@ -58,6 +71,20 @@
- id: primary-openstack-network-agents-dhcp
type: skipped
- id: openstack-network-agents-dhcp
type: skipped
- id: primary-openstack-network-plugins-l2
type: skipped
- id: openstack-network-plugins-l2
type: skipped
- id: primary-openstack-network-agents-l3
type: skipped
- id: openstack-network-agents-l3
type: skipped
- id: primary-openstack-network-agents-metadata
type: skipped
- id: openstack-network-agents-metadata
type: skipped