From 3c7e4c3773face367cdf0988cccfc2dfd68f55ab Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Fri, 23 Jun 2017 17:44:33 +0400 Subject: Remove redundant services from noha scenario Change-Id: I445f6ac802fbf1b382b18bcb4306eb5538cb1867 Signed-off-by: Michael Polenchuk --- .../cluster/virtual-mcp-ocata-ovs/infra/config.yml | 27 +++--------- .../classes/cluster/virtual-mcp-ocata-ovs/init.yml | 3 +- .../virtual-mcp-ocata-ovs/openstack/compute.yml | 20 ++++++--- .../virtual-mcp-ocata-ovs/openstack/control.yml | 50 +++++++++++++--------- .../virtual-mcp-ocata-ovs/openstack/gateway.yml | 5 ++- .../virtual-mcp-ocata-ovs/openstack/init.yml | 5 ++- mcp/reclass/classes/system | 2 +- 7 files changed, 59 insertions(+), 53 deletions(-) (limited to 'mcp/reclass/classes') diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml index 6f712c9e9..66ad53b48 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml @@ -7,19 +7,13 @@ classes: - system.reclass.storage.salt - system.salt.minion.ca.salt_master - system.salt.minion.cert.proxy -- system.keystone.client.single -- system.keystone.client.service.ceilometer -- system.keystone.client.service.nova21 -- system.keystone.client.service.nova-placement -- system.keystone.client.service.glare -- system.keystone.client.service.cinder3 - system.mysql.client.single -- system.reclass.storage.system.openstack_control_cluster - system.reclass.storage.system.openstack_compute_multi - system.reclass.storage.system.openstack_gateway_single - cluster.virtual-mcp-ocata-ovs parameters: _param: + openstack_control_node01_hostname: ctl01 reclass_data_repository: https://gerrit.opnfv.org/gerrit/fuel reclass_data_revision: master salt_master_environment_repository: "https://github.com/tcpcloud" @@ -43,23 +37,14 @@ parameters: storage: node: openstack_control_node01: + name: ${_param:openstack_control_node01_hostname} + domain: ${_param:cluster_domain} classes: - - service.galera.master.cluster + - cluster.${_param:cluster_name}.openstack.control params: - mysql_cluster_role: master - linux_system_codename: xenial - openstack_control_node02: - classes: - - service.galera.slave.cluster - params: - mysql_cluster_role: slave - linux_system_codename: xenial - openstack_control_node03: - classes: - - service.galera.slave.cluster - params: - mysql_cluster_role: slave linux_system_codename: xenial + salt_master_host: ${_param:reclass_config_master} + single_address: ${_param:openstack_control_node01_address} openstack_compute_node01: params: single_address: 172.16.10.105 diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/init.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/init.yml index 79261b8a2..41dfda04a 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/init.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/init.yml @@ -10,7 +10,7 @@ parameters: # infra service addresses infra_config_address: 172.16.10.100 # openstack service addresses - openstack_control_address: 172.16.10.254 + openstack_control_address: 172.16.10.101 openstack_control_node01_address: 172.16.10.101 openstack_control_node02_address: 172.16.10.102 openstack_control_node03_address: 172.16.10.103 @@ -20,3 +20,4 @@ parameters: openstack_message_queue_node02_address: ${_param:openstack_control_node02_address} openstack_message_queue_node03_address: ${_param:openstack_control_node03_address} openstack_gateway_address: 172.16.10.110 + control_address: ${_param:openstack_control_address} diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/compute.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/compute.yml index 8ed7f51b3..72aee1bca 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/compute.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/compute.yml @@ -2,9 +2,8 @@ classes: - system.linux.system.repo.mcp.openstack - system.linux.system.repo.mcp.extra - system.linux.system.repo.saltstack.xenial -- system.nova.compute.cluster -- system.neutron.compute.cluster -- system.ceilometer.agent.cluster +- system.nova.compute.single +- service.neutron.compute.single - cluster.virtual-mcp-ocata-ovs parameters: _param: @@ -16,11 +15,18 @@ parameters: nova: compute: vncproxy_url: http://${_param:cluster_vip_address}:6080 + network: + region: ${_param:openstack_region} + user: neutron + tenant: service + password: ${_param:keystone_neutron_password} + neutron: + compute: + agent_mode: ${_param:neutron_compute_agent_mode} message_queue: - members: - - host: ${_param:openstack_control_node01_address} - - host: ${_param:openstack_control_node02_address} - - host: ${_param:openstack_control_node03_address} + host: ${_param:openstack_control_address} + metadata: + host: ${_param:openstack_control_address} linux: network: bridge: openvswitch diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml index 65fc1e474..8f63000aa 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml @@ -3,30 +3,29 @@ classes: - system.linux.system.repo.mcp.openstack - system.linux.system.repo.mcp.extra - system.linux.system.repo.saltstack.xenial -- system.ceilometer.client - system.memcached.server.single -- system.rabbitmq.server.cluster +- system.rabbitmq.server.single - system.rabbitmq.server.vhost.openstack - system.keystone.server.wsgi -- system.keystone.server.cluster -- system.glance.control.cluster -- system.nova.control.cluster -- system.neutron.control.openvswitch.cluster -- system.cinder.control.cluster -- system.heat.server.cluster -- system.galera.server.cluster -- system.galera.server.database.aodh -- system.galera.server.database.ceilometer +- system.keystone.server.single +- system.keystone.client.single +- system.keystone.client.service.nova21 +- system.keystone.client.service.nova-placement +- system.keystone.client.service.glare +- system.keystone.client.service.cinder3 +- system.glance.control.single +- system.nova.control.single +- system.neutron.control.openvswitch.single +- system.cinder.control.single +- system.heat.server.single +- service.mysql.server.single - system.galera.server.database.cinder - system.galera.server.database.glance - system.galera.server.database.grafana - system.galera.server.database.heat - system.galera.server.database.keystone - system.galera.server.database.nova -- system.haproxy.proxy.listen.openstack.nova-placement -- system.ceilometer.server.cluster -- system.aodh.server.cluster -- system.horizon.server.cluster +- system.horizon.server.single - cluster.virtual-mcp-ocata-ovs parameters: _param: @@ -46,14 +45,20 @@ parameters: proto: static address: ${_param:single_address} netmask: 255.255.255.0 - keepalived: - cluster: - instance: - VIP: - virtual_router_id: 150 keystone: server: admin_email: ${_param:admin_email} + pkgs: + - keystone + - python-keystone + - python-keystoneclient + - python-psycopg2 + - python-mysqldb + - python-six + - python-memcache + - python-openstackclient + - gettext-base + - python-pycadf glance: server: storage: @@ -72,3 +77,8 @@ parameters: novncproxy_port: 6080 vncproxy_url: http://${_param:cluster_vip_address}:6080 workers: 1 + mysql: + server: + version: '5.7' + bind: + address: ${_param:cluster_local_address} diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/gateway.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/gateway.yml index 67e5a4371..9257d8604 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/gateway.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/gateway.yml @@ -2,7 +2,7 @@ classes: - system.linux.system.repo.mcp.openstack - system.linux.system.repo.mcp.extra - system.linux.system.repo.saltstack.xenial -- system.neutron.gateway.cluster +- service.neutron.gateway.single - cluster.virtual-mcp-ocata-ovs parameters: _param: @@ -11,6 +11,9 @@ parameters: external_interface: ens6 interface_mtu: 9000 linux_system_codename: xenial + neutron: + gateway: + agent_mode: ${_param:neutron_gateway_agent_mode} linux: network: bridge: openvswitch diff --git a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/init.yml b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/init.yml index 4b5149f64..e4cf3bbac 100644 --- a/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/init.yml +++ b/mcp/reclass/classes/cluster/virtual-mcp-ocata-ovs/openstack/init.yml @@ -6,7 +6,7 @@ parameters: openstack_region: RegionOne admin_email: root@localhost cluster_public_protocol: http - cluster_public_host: 172.16.10.254 + cluster_public_host: 172.16.10.101 neutron_public_protocol: http neutron_control_dvr: False neutron_tenant_network_types: "flat,vxlan" @@ -21,7 +21,7 @@ parameters: galera_server_cluster_name: openstack_cluster galera_server_maintenance_password: opnfv_secret galera_server_admin_password: opnfv_secret - cluster_vip_address: 172.16.10.254 + cluster_vip_address: ${_param:cluster_public_host} cluster_local_address: ${_param:single_address} cluster_node01_hostname: ctl01 cluster_node01_address: 172.16.10.101 @@ -42,6 +42,7 @@ parameters: heat_domain_admin_password: opnfv_secret ceilometer_version: ${_param:openstack_version} ceilometer_service_host: 172.16.10.108 + ceilometer_database_host: ${_param:cluster_local_address} cinder_version: ${_param:openstack_version} cinder_service_host: ${_param:cluster_vip_address} ceilometer_graphite_publisher_host: 172.16.10.107 diff --git a/mcp/reclass/classes/system b/mcp/reclass/classes/system index 89b124ec1..8a7dc2f6a 160000 --- a/mcp/reclass/classes/system +++ b/mcp/reclass/classes/system @@ -1 +1 @@ -Subproject commit 89b124ec180fa47d093acb38010dcf130016fef5 +Subproject commit 8a7dc2f6ae598cc95300fd404dfb8dd75185ecb4 -- cgit 1.2.3-korg