remove centos quantum node setup

Change-Id: I4c8753cacaa13d3d8db93455f29966d3f9ad0fb9
This commit is contained in:
SamSu 2014-03-03 12:09:45 -08:00
parent 90f8e1a581
commit 81a985c733
7 changed files with 21 additions and 19 deletions

View File

@ -101,7 +101,7 @@ end
# rpc_backend quantum.openstack.common.rpc.impl_qpid" # rpc_backend quantum.openstack.common.rpc.impl_qpid"
# It should be a bug of redhat OS # It should be a bug of redhat OS
execute "delete_auto_qpid" do execute "delete_auto_qpid" do
command %Q|sed -i "s/^rpc_backend = quantum.openstack.common.rpc.impl_qpid//g" /etc/quantum/quantum.conf; sed -i "s/^qpid_hostname =//g" /etc/quantum/quantum.conf| command %Q|sed -i "s/^rpc_backend = quantum.openstack.common.rpc.impl_qpid/rpc_backend = quantum.openstack.common.rpc.impl_kombu/g" /etc/quantum/quantum.conf; sed -i "s/^qpid_hostname =//g" /etc/quantum/quantum.conf|
only_if { only_if {
(node['openstack']['mq']['service_type'] == "rabbitmq") and (node['openstack']['mq']['service_type'] == "rabbitmq") and
platform?(%w{fedora centos redhat}) platform?(%w{fedora centos redhat})

View File

@ -46,10 +46,10 @@ package platform_options["quantum_plugin_package"].gsub("%plugin%", main_plugin)
not_if { platform_family? "suse" } not_if { platform_family? "suse" }
end end
execute "quantum-dhcp-setup --plugin #{main_plugin}" do #execute "quantum-dhcp-setup --plugin #{main_plugin}" do
notifies :run, "execute[delete_auto_qpid]", :immediately # notifies :run, "execute[delete_auto_qpid]", :immediately
only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this # only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this
end #end
template "/etc/quantum/dnsmasq.conf" do template "/etc/quantum/dnsmasq.conf" do
source "dnsmasq.conf.erb" source "dnsmasq.conf.erb"

View File

@ -40,13 +40,13 @@ service "quantum-l3-agent" do
action :enable action :enable
end end
execute "quantum-l3-setup --plugin #{main_plugin}" do #execute "quantum-l3-setup --plugin #{main_plugin}" do
notifies :run, "execute[delete_auto_qpid]", :immediately # notifies :run, "execute[delete_auto_qpid]", :immediately
only_if { # only_if {
platform?(%w(fedora redhat centos)) and not # :pragma-foodcritic: ~FC024 - won't fix this # platform?(%w(fedora redhat centos)) and not # :pragma-foodcritic: ~FC024 - won't fix this
["nicira", "plumgrid", "bigswitch"].include?(main_plugin) # ["nicira", "plumgrid", "bigswitch"].include?(main_plugin)
} # }
end #end
template "/etc/quantum/l3_agent.ini" do template "/etc/quantum/l3_agent.ini" do
source "l3_agent.ini.erb" source "l3_agent.ini.erb"

View File

@ -113,10 +113,11 @@ execute "chkconfig openvswitch on" do
only_if { platform?(%w(fedora redhat centos)) } only_if { platform?(%w(fedora redhat centos)) }
end end
execute "quantum-node-setup --plugin openvswitch" do #execute "quantum-node-setup --plugin openvswitch" do
only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this # :pragma-foodcritic: ~FC024 - won't fix this
notifies :run, "execute[delete_auto_qpid]", :immediately # only_if { platform?(%w(fedora redhat centos))}
end # notifies :run, "execute[delete_auto_qpid]", :immediately
#end
if not ["nicira", "plumgrid", "bigswitch"].include?(main_plugin) if not ["nicira", "plumgrid", "bigswitch"].include?(main_plugin)
int_bridge = node["openstack"]["network"]["openvswitch"]["integration_bridge"] int_bridge = node["openstack"]["network"]["openvswitch"]["integration_bridge"]

View File

@ -18,7 +18,7 @@ reconnect_interval = 2
# Minimum number of SQL connections to keep open in a pool # Minimum number of SQL connections to keep open in a pool
# sql_min_pool_size = 1 # sql_min_pool_size = 1
# Maximum number of SQL connections to keep open in a pool # Maximum number of SQL connections to keep open in a pool
# sql_max_pool_size = 5 sql_max_pool_size = 30
# Timeout in seconds before idle sql connections are reaped # Timeout in seconds before idle sql connections are reaped
# sql_idle_timeout = 3600 # sql_idle_timeout = 3600

View File

@ -2,6 +2,7 @@ name "os-compute-worker"
description "The compute node, most likely with a hypervisor." description "The compute node, most likely with a hypervisor."
run_list( run_list(
"role[os-base]", "role[os-base]",
"recipe[openstack-compute::compute]" "recipe[openstack-compute::compute]",
"recipe[net]"
) )

View File

@ -1,4 +1,4 @@
name "os-single-controller" name "os-controller"
description "Roll-up role for all of the OpenStack Compute services on a single, non-HA controller." description "Roll-up role for all of the OpenStack Compute services on a single, non-HA controller."
run_list( run_list(
'role[os-dashboard]', 'role[os-dashboard]',