No description, website, or topics provided.
Clone or download
alexz-kh Temporary hardcode local tests artifactory
   * Due current approach on infra model, not possible to
     quickly override those params

Change-Id: I2bc37027917f032bdad82117f18bfd839765c905
Latest commit df78ff1 Oct 17, 2018
Permalink
Failed to load latest commit information.
.releasenotes Salt control interface spec use list Aug 10, 2018
aodh/server Move few openstack _params to defaults Oct 16, 2018
apache/server Merge "Refactoring aodh apache site configuration" Sep 28, 2018
aptly Move 'apt_mk_version' to defaults Oct 5, 2018
artifactory/client Add artifactory repository `test-images` Aug 3, 2018
auditd/server Add auditd/server/ciscat Jun 21, 2018
backupninja ctl upgrade fixes May 4, 2017
barbican/server Move few openstack _params to defaults Oct 16, 2018
billometer/server Remove cs_CZ locale Jul 11, 2018
bind/server Add ability to deploy designate and pdns on different nodes Sep 5, 2018
cassandra/backup Enabling service's users in /etc/cron.allow Aug 31, 2018
ccp/control CCP system level Jan 20, 2017
ceilometer Move few openstack _params to defaults Oct 16, 2018
ceph Enabling service's users in /etc/cron.allow Aug 31, 2018
cinder Move few openstack _params to defaults Oct 16, 2018
collectd added billometer to salt formulas Dec 20, 2016
debmirror/mirror_mirantis_com Move 'debmirror*' to defaults Oct 11, 2018
defaults Move mcp_docker_registry to defaults Oct 16, 2018
designate/server Move few openstack _params to defaults Oct 16, 2018
devops_portal/service Enable proxy for prometheus in devops portal Feb 20, 2018
docker Move mcp_docker_registry to defaults Oct 16, 2018
dogtag/server Dogtag HA support Mar 6, 2018
elasticsearch Enabling service's users in /etc/cron.allow Aug 31, 2018
etcd/server Add etcd system class Oct 8, 2018
fluentd Added forward label output Sep 27, 2018
freeipa Freeipa client configurations Jul 12, 2017
galera/server Implement X.509 auth for MySQL and Ironic Sep 17, 2018
gerrit Move VNF-Onboarding classes into a separate directory Oct 1, 2018
git/server added support for git.server Oct 10, 2017
glance Move few openstack _params to defaults Oct 16, 2018
glusterfs Add roles for gluster cluster Sep 13, 2018
gnocchi Move few openstack _params to defaults Oct 16, 2018
grafana Add Gnocchi datasource for Grafana Sep 10, 2018
graphite Remove cs_CZ locale Jul 11, 2018
haproxy/proxy Parametrize haproxy check parameters Sep 21, 2018
heat Move few openstack _params to defaults Oct 16, 2018
heka Fix parameters for Telegraf outputs in Heka Jul 6, 2017
helm/analytics_pipeline Fix analytics pipeline to match new external addressing approach Nov 15, 2017
horizon/server Add setting policy for octavia-dashboard Oct 8, 2018
influxdb Add system classes for influxdb-relay Sep 1, 2017
ironic Move few openstack _params to defaults Oct 16, 2018
jenkins Temporary hardcode local tests artifactory Oct 17, 2018
keepalived/cluster/instance Add possibility to clasterize manila services Sep 12, 2018
keycloak/proxy/application Add keycloak related files Jul 10, 2018
keystone Move few openstack _params to defaults Oct 16, 2018
kibana Move VNF-Onboarding classes into a separate directory Oct 1, 2018
kubernetes Move mcp_docker_registry to defaults Oct 16, 2018
libvirt/server Fix for libvirt Jan 16, 2018
linux Move 'linux_system_repo_*_url' to defaults Oct 9, 2018
maas/region Move 'linux_system_repo_*_url' to defaults Oct 9, 2018
manila Move few openstack _params to defaults Oct 16, 2018
memcached/server Moved structure Dec 1, 2016
model_manager/server Model Manager system Jul 20, 2017
mongodb/server Refactor mongodb classes May 21, 2018
murano/server Add openstack_node_role parameter Jul 16, 2018
mysql/client Bring in panko settings Jan 19, 2018
nagios/server Merge "Fix nagios hostgroups glob matching" Apr 13, 2017
neutron Move few openstack _params to defaults Oct 16, 2018
nginx/server Parametуrize glance image size Oct 4, 2018
nova Move few openstack _params to defaults Oct 16, 2018
ntp/client Moved structure Dec 1, 2016
octavia Add octaviaclient Aug 28, 2018
opencontrail Move mcp_docker_registry to defaults Oct 16, 2018
openldap/client Remove obsolete personal information Jul 24, 2018
openscap/server Add openscap formula reclass. Sep 10, 2018
openssh Refactored Stacklight team, the ssh users Oct 12, 2018
panko/server Move few openstack _params to defaults Oct 16, 2018
postgresql/client Fix cyclic-dependency between oss services Apr 24, 2018
powerdns/server Add ability to deploy designate and pdns on different nodes Sep 5, 2018
prometheus Fix the calculation for instances and tenants Oct 16, 2018
rabbitmq/server Move few openstack _params to defaults Oct 16, 2018
reclass/storage Merge "Allow none override + cleanup" Sep 24, 2018
rsyslog/client Use the rsyslog formula and state Dec 16, 2016
rundeck Move mcp_docker_registry to defaults Oct 16, 2018
sahara/server Add openstack_node_role parameter Jul 16, 2018
salt Merge "Add cluster_vip_address to alternative names" Oct 11, 2018
sensu Bind Sensu to the management address Jul 28, 2017
sphinx/server Moved structure Dec 1, 2016
statsd/server statsd ip address fix Jan 24, 2017
swift add swift system classes May 17, 2017
telegraf Merge "Add InfluxDB stack to Docker Swarm" Jul 24, 2017
vnf_onboarding Move VNF-Onboarding classes into a separate directory Oct 1, 2018
watchdog/server Adding watchdog Mar 14, 2018
xtrabackup Add throttle param to xtrabackup.client.single Sep 10, 2018
zookeeper/backup Enabling service's users in /etc/cron.allow Aug 31, 2018
.gitignore Add .swp to .gitignore Jun 14, 2018
.gitreview Replace gerrit URL in .gitreview Oct 1, 2018
CHANGELOG.rst enable galera clustercheck by default Sep 6, 2017
README.rst remove match_re param Mar 13, 2018
init.yml Add default_metric label Jan 17, 2018

README.rst

Generic system models

This repo contains general reclass system level of salt model. It is to be used along with service models and concrete cluster deployment model.

Network configuration

Enable SR-IOV support

Include class at cluster.<name>.openstack.compute

- system.nova.compute.nfv.sriov

For single SR-IOV interface setup you can set parameters:

sriov_nic01_device_name
Name of the Physical Function interface (pF)
sriov_nic01_numvfs
Number of Virtual Functions (VF), for number of supported VF check documentation for your network interface card.
sriov_nic01_physical_network
Default physnet1, label for physical network the interface belongs to.
sriov_unsafe_interrupts
Default False, needs to be set True if your hw platform does not support interrupt remapping.

Multiple SR-IOV interface setup:

By default, the metadata model contains configuration for 1 NIC dedicated for SR-IOV, so we need to setup network interfaces like in the following example.

...
  nova:
    compute:
      sriov:
        sriov_nic01:
          devname: eth1
          physical_network: physnet3
        sriov_nic02:
          devname: eth2
          physical_network: physnet4
        sriov_nic03:
          devname: eth3
          physical_network: physnet3
        sriov_nic04:
          devname: eth4
          physical_network: physnet6
  linux:
    system:
      kernel:
        sriov: True
        unsafe_interrupts: False
      rc:
        local: |
          #!/bin/sh -e
          # Enabling 7 VFs on eth1 PF
          echo 7 > /sys/class/net/eth1/device/sriov_numvfs; sleep 2; ip link set eth1 up
          # Enabling 15 VFs on eth2 PF
          echo 15 > /sys/class/net/eth2/device/sriov_numvfs; sleep 2; ip link set eth2 up
          # Enabling 15 VFs on eth3 PF
          echo 15 > /sys/class/net/eth3/device/sriov_numvfs; sleep 2; ip link set eth3 up
          # Enabling 7 VFs on eth4 PF
          echo 7 > /sys/class/net/eth4/device/sriov_numvfs; sleep 2; ip link set eth4 up
          exit 0

Grafana

Configure Grafana client

The grafana.client talks to Grafana server to create datasource(s) and install Grafana plugin(s).

User models must first include this class and define corresponding parameters:

  • grafana.client - grafana_protocol (default: http) - grafana_address - grafana_port (default: 3000) - grafana_user - grafana_password

Then include datasource(s) and define corresponding parameters:

  • grafana.client.datasource.influxdb - grafana_influxdb_address - grafana_influxdb_port - grafana_influxdb_user - grafana_influxdb_password - grafana_influxdb_database - grafana_influxdb_is_default (default true)
  • grafana.client.datasource.prometheus - grafana_prometheus_address - grafana_prometheus_port - grafana_prometheus_is_default (default true)

Backward compatiblity

The class grafana.client.single configures grafana client and an InfluxDB datasource. This is the legacy of LMA (aka StackLight) integration with Grafana and InfluxDB.

Nagios Monitoring

Configure Hosts dynamically

The nagios formula looks up grains.items throught Salt mines to discover hosts. There are two different parameters that tell the nagios formula how to determine the hosts' IP address:

  • nagios_monitoring_network: IP subnet(s) in CIDR notation (can be a list)
  • nagios_monitoring_interface: interface name(s). Default ['eth0', 'ens3'].

'nagios_monitoring_network' parameter takes precedence over 'nagios_monitoring_interface' list.