RETIRED, Heat templates for deploying OpenStack
Go to file
Michele Baldessari 29b8a69a89 Fix memcached logging
Even though we're setting memcached::logfile:
'/var/log/memcached/memcached.log' there are no logs created in
/var/log/containers/memcached.

The reason for this is that memcached::logfile in puppet-memcached
simply adds a shell redirect to a file. These redirecs are
passed by tht and kolla to the memcached process invocation as parameters
of memcached and so are not read being read by the shell process
and nothing gets redirected. That is why we observe that on a broken
container the redirections are arguments to memcached:

[root@controller-0 ~]# ps aux | grep memcache | grep -v containers
    42457     358189  0.0  0.0 744088 10960 ?        Sl   15:21   0:00 /usr/bin/memcached -p 11211 -u memcached -m 16000 -c 8192 -vv -l 172.17.1.138 -U 0 -X -t 8 >> /var/log/memcached/memcached.log 2>&1

Fix this by forcing memcached to log on stdout and at the same
time creating the redirect on the shell parameters that invoke
memcached.

Tested on a Train environment and I correctly get:
1) Proper logging
[root@controller-0 ~]# ls -l /var/log/containers/memcached/memcached.log
-rw-r--r--. 1 42457 42457 29086 Nov  4 18:00 /var/log/containers/memcached/memcached.log

2) No unused redirections inside the memcached process:
[root@controller-0 ~]# podman exec -it -uroot memcached ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
memcach+       1       0  0 18:47 ?        00:00:00 dumb-init --single-child -- kolla_start
memcach+       6       1  0 18:47 ?        00:00:00 /usr/bin/memcached -p 11211 -u memcached -m 9953 -c 8192 -vv -l 172.17.1.50 -U 0 -X -t 4

Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com>

Resolves: #1902922

NB: Slight conflict when cherry-picking due to different context

Change-Id: If5487c9be745ebd6bc3ebe172e28dc59e6855188
(cherry picked from commit a9da212d7d)
(cherry picked from commit d7d9e05ff8)
2020-11-06 09:13:46 +01:00
ci Merge "Don't manage bridge mappings in scenario file" into stable/ussuri 2020-10-24 03:08:33 +00:00
common Create container-puppet-tasks files per step in check mode 2020-09-29 19:03:03 +00:00
container_config_scripts Return details in output of container health check 2020-10-19 12:50:57 +00:00
deployed-server enable-ssh-admin: allow to override plan name 2020-09-25 12:50:37 +00:00
deployment Fix memcached logging 2020-11-06 09:13:46 +01:00
environments Force CephAnsiblePlaybook to its default value on FFU prepare 2020-10-13 07:49:31 +00:00
extraconfig Set dns_name propery on ports and networks 2020-04-03 08:57:38 +02:00
firstboot Replace chronyc "waitsync" with "makestep" 2019-10-15 15:47:57 +01:00
network Create external bridge on Compute nodes by default for OVN with DVR 2020-10-02 13:22:41 -07:00
plan-samples Role specific derive parameters workflow parameter 2018-06-28 08:10:27 -04:00
puppet Get the CIDR of the neutron port for NetworkConfig 2020-09-22 08:56:50 +00:00
releasenotes Merge "Run tripleo_lvmfilter role to restrict block devices visible to LVM2" into stable/ussuri 2020-10-23 18:49:20 +00:00
roles Merge "Add ability to manage irqbalance on compute per role" into stable/ussuri 2020-10-06 16:35:39 +00:00
sample-env-generator Also configure Ironic for UC minions 2020-10-09 07:24:47 +00:00
scripts Drop unused remnants of the hosts-config bits 2020-03-24 10:41:35 +01:00
tools Remove ffwd-upgrade leftovers from THT. 2020-07-27 12:23:00 +02:00
tripleo_heat_templates Remove ffwd-upgrade leftovers from THT. 2020-07-27 12:23:00 +02:00
validation-scripts Remove ValidateNtp 2020-06-08 19:24:04 +00:00
zuul.d Add project template for IPA multinode 2020-06-26 23:39:57 +05:30
.gitignore Remove mac_hostname & random_string 2019-07-18 19:10:31 +00:00
.gitreview Update .gitreview for stable/ussuri 2020-05-26 17:15:19 +00:00
.testr.conf Improve nova statedir ownership logic 2018-07-09 17:07:30 +01:00
LICENSE Add license file 2014-01-20 11:58:20 +01:00
README.rst Update scn003 to exercise ExtraFirewallrules capabilities 2020-06-03 17:44:26 +00:00
all-nodes-validation.yaml Remove ValidateNtp 2020-06-08 19:24:04 +00:00
babel.cfg Add release configuration. 2013-10-22 17:49:35 +01:00
bindep.txt Tolerate NFS exports in /var/lib/nova when selinux relabelling 2020-03-26 11:22:38 +00:00
config-download-software.yaml Don't use POLL_SERVER_CFN transport for DeployedServer 2020-10-21 13:01:29 +00:00
config-download-structured.yaml Don't use POLL_SERVER_CFN transport for DeployedServer 2020-10-21 13:01:29 +00:00
default_passwords.yaml Change template names to rocky 2018-05-09 08:28:42 +02:00
j2_excludes.yaml Remove ipv6 specific network templates 2017-08-31 13:12:17 -07:00
lower-constraints.txt Cleanup remaining items for Trove 2020-04-09 12:32:26 +09:00
net-config-bond.j2.yaml Drop EC2MetadataIp parameter and its uses 2019-07-05 14:05:59 +02:00
net-config-bridge.j2.yaml Add DNS related settings 2020-02-25 14:35:53 -05:00
net-config-linux-bridge.j2.yaml Add DNS related settings 2020-02-25 14:35:53 -05:00
net-config-noop.j2.yaml Drop EC2MetadataIp parameter and its uses 2019-07-05 14:05:59 +02:00
net-config-standalone.j2.yaml Use /32 or /128 netmask for VIPs 2020-05-27 02:53:18 +00:00
net-config-static-bridge-with-external-dhcp.j2.yaml Add DNS related settings 2020-02-25 14:35:53 -05:00
net-config-static-bridge.j2.yaml Drop EC2MetadataIp parameter and its uses 2019-07-05 14:05:59 +02:00
net-config-static.j2.yaml Drop EC2MetadataIp parameter and its uses 2019-07-05 14:05:59 +02:00
net-config-undercloud.j2.yaml Use /32 or /128 netmask for VIPs 2020-05-27 02:53:18 +00:00
network_data.yaml Add external_resource_vip_id property to network_data.yaml 2019-03-25 10:48:40 -04:00
network_data_dashboard.yaml Add a StorageDashboard network used by CephGrafana service 2019-08-30 19:16:47 +02:00
network_data_ganesha.yaml Use appropriate allocation pools for StorageNFS 2020-08-31 12:59:44 +00:00
network_data_routed.yaml Merge "Allow overlay tunnel endpoints on IPv6 address" 2019-01-10 21:13:19 +00:00
network_data_subnets_routed.yaml L3 routed networks - data + env (1/3) 2018-12-30 19:24:29 +01:00
network_data_undercloud.yaml Add network data for the undercloud 2019-01-21 19:35:37 +01:00
overcloud-resource-registry-puppet.j2.yaml Create external bridge on Compute nodes by default for OVN with DVR 2020-10-02 13:22:41 -07:00
overcloud.j2.yaml Get the CIDR of the neutron port for NetworkConfig 2020-09-22 08:56:50 +00:00
plan-environment.yaml Add name and description fields to plan-environment.yaml 2017-04-12 17:25:40 +02:00
requirements.txt Enable paunch logging to its full extent 2019-03-22 11:42:12 +01:00
roles_data.yaml Create external bridge on Compute nodes by default for OVN with DVR 2020-10-02 13:22:41 -07:00
roles_data_undercloud.yaml Add composible service for tls enrollment 2020-06-18 13:51:57 +00:00
setup.cfg Replace git.openstack.org URLs with opendev.org URLs 2019-06-26 02:43:46 +00:00
setup.py Updated from global requirements 2017-03-28 13:03:01 +00:00
test-ansible-requirements.txt Ansible lint check in THT 2019-10-30 04:56:05 -04:00
test-requirements.txt Merge "tox: Keeping going with docs" 2019-11-07 20:02:09 +00:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/ussuri 2020-05-26 17:15:23 +00:00

README.rst

Team and repository tags

image

tripleo-heat-templates

Heat templates to deploy OpenStack using OpenStack.

Features

The ability to deploy a multi-node, role based OpenStack deployment using OpenStack Heat. Notable features include:

  • Choice of deployment/configuration tooling: puppet, (soon) docker
  • Role based deployment: roles for the controller, compute, ceph, swift, and cinder storage
  • physical network configuration: support for isolated networks, bonding, and standard ctlplane networking

Directories

A description of the directory layout in TripleO Heat Templates.

  • environments: contains heat environment files that can be used with -e

    on the command like to enable features, etc.

  • extraconfig: templates used to enable 'extra' functionality. Includes

    functionality for distro specific registration and upgrades.

  • firstboot: example first_boot scripts that can be used when initially

    creating instances.

  • network: heat templates to help create isolated networks and ports
  • puppet: templates mostly driven by configuration with puppet. To use these

    templates you can use the overcloud-resource-registry-puppet.yaml.

  • validation-scripts: validation scripts useful to all deployment

    configurations

  • roles: example roles that can be used with the tripleoclient to generate

    a roles_data.yaml for a deployment See the roles/README.rst for additional details.

Service testing matrix

The configuration for the CI scenarios will be defined in tripleo-heat-templates/ci/ and should be executed according to the following table:

- scn000 scn001 scn002 scn003 scn004 scn006 scn007 scn009 scn010 non-ha ovh-ha
keystone

X

X

X

X

X

X

X

X

X

X

glance

rbd

swift

file

rgw

file

file

rbd

file

file

cinder

rbd

iscsi
heat

X

X

ironic

X

mysql

X

X

X

X

X

X

X

X

X

X

neutron

ovn

ovn

ovn

ovn

ovn

ovs

ovn

ovn

ovn

neutron-bgpvpn

wip

ovn

X

neutron-l2gw

wip

om-rpc rabbit rabbit

amqp1

rabbit rabbit rabbit rabbit rabbit rabbit
om-notify rabbit rabbit rabbit rabbit rabbit rabbit rabbit rabbit rabbit
redis

X

X

haproxy

X

X

X

X

X

X

X

X

X

memcached

X

X

X

X

X

X

X

X

X

pacemaker

X

X

X

X

X

X

X

X

X

nova

qemu

qemu

qemu

qemu

ironic

qemu

qemu

qemu

qemu

placement

X

X

X

X

X

X

X

X

X

ntp

X

X

X

X

X

X

X

X

X

X

X

snmp

X

X

X

X

X

X

X

X

X

X

X

timezone

X

X

X

X

X

X

X

X

X

X

X

sahara

X

mistral

X

swift

X

aodh

X

X

ceilometer

X

X

gnocchi

rbd

swift

barbican

X

zaqar

X

cephrgw

X

cephmds

X

manila

X

collectd

X

designate

X

octavia

X

rear

X

Extra Firewall

X