Commit Graph

38 Commits

Author SHA1 Message Date
Emilien Macchi d0e81c22ca Retire Paunch
Change-Id: I8b2e9e20e477f2f00ad922f03e82114ff13212fe
2020-06-15 10:07:12 -04:00
Andreas Jaeger 7ee0976e71 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I9cad8904420d108a06d9fefbc2d3268738d56038
2020-06-03 20:29:31 +02:00
OpenStack Release Bot ca94ae6a05 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8ee9e5ba9d91f3bd3964f040d7b2e1b453917986
Sem-Ver: feature
2020-05-26 17:13:37 +00:00
Zuul f109892b6d Merge "Drop python 2.7 support and testing" 2020-04-29 00:42:32 +00:00
pengyuesheng c78160c652 Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Remove explicit listed jobs from check queue, they are in the templates.

- Update jobs
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: I4a1976c78b0fe69cc1b423c516d557838cb6d59b
2020-04-23 08:40:02 +00:00
Emilien Macchi 3349a62393 Officially deprecate Paunch
Paunch has been replaced by tripleo_container_manage role in
tripleo-ansible  during Ussuri cycle.

It is not tested anymore in this version and will be removed one day.

It it strongly encouraged to switched to the Ansible role to manage
containers; which should be the default if you deploy TripleO from
master at this time.

If you get the warning, it's possible that a parameter (EnablePaunch) is
set to True; while the default was switched.

Paunch will remain supported in Ussuri and backward, but not in Victoria
and forward.

Change-Id: I2be96c5929f0602296c8f2cebb65b755a2178195
2020-04-16 17:38:41 -04:00
OpenStack Release Bot 0ae35290ce Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I7000b5d790950d7a2e337a85fa348b4fffd05b31
Sem-Ver: feature
2019-10-21 14:18:11 +00:00
pengyuesheng bfa88de608 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I22c45438c1f94199826ca314f2148f3fac2678f4
2019-08-01 10:42:26 +08:00
Quique Llorente 19788779a5 Add 'hostname' and 'extra_hosts' to docker
This change is a porting to docker of [1], so we can run the tripleo ci
zuul reproducer at [2] with both docker and podman using just paunch.

[1] https://review.opendev.org/#/c/656270/
[2] https://review.rdoproject.org/r/#/c/20488/

Change-Id: I354edf45c247369876ffd931cb7fe3a4122b9a3e
2019-05-07 12:49:16 +02:00
Quique Llorente e948fdce90 Add 'hostname' and 'extra_hosts' to podman
We are starting a WIP to replace docker-compose/docker with paunch/podman [1]
but to do so we need either ne able to resolve the service name or the
option here wich just adding extra_hosts and hostname docker-compose
configuration so we can resolve the differnt services of zuul
quickstart between them.

[1] https://review.rdoproject.org/r/#/c/20488/

Change-Id: I36f014f5e729010b44876d8f5994629477bac4e8
2019-04-29 16:16:37 +02:00
OpenStack Release Bot fbf35b81b8 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: Ia08f70cc7186031c36978029fbec04ac36444652
Sem-Ver: feature
2019-04-18 14:56:24 +00:00
Emilien Macchi 817c243d44 Introduce paunch apply --healthcheck-disabled
Allow an operator to disable the container healtcheck mechanism, when
podman is enabled.
It's done by an option to paunch apply: --healthcheck-disabled

Change-Id: Ic3dd492405b11ec482ff86e1513149c3eceb370f
2019-04-15 16:17:04 +00:00
Cédric Jeanneret a7ea1aa1f0 Allow to use t-h-t "healthcheck" config entry for podman
Until now, paunch configures the "healthcheck" systemd unit
with a hard-coded path, while we can set it in tripleo-heat-templates.

Change-Id: Ic15bfb974e53703bfaf324be7d1b9b0352e2e644
2019-04-10 15:29:04 +02:00
Emilien Macchi a6f17e52de Deprecate docker runtime
The plan is to deprecate it in Stein and remove it in Train.
Podman is now the default.

Change-Id: I43d8f44862591f7b77ee8ab4552dce32428e3701
2019-03-05 08:27:12 -05:00
Emilien Macchi e42b4690e6 Switch to Podman by default
Docker will be deprecated in Stein and removed in Train.

Change-Id: I7faaf0b120cc58c5f643da1c4ce186ad340b4710
2019-03-04 18:20:28 -05:00
Cédric Jeanneret fba5e04fdd Inject log-driver for podman containers
Currently, docker daemon runtime has a default --log-driver set
to journald.

Podman lack of daemon prevent such a global application, meaning
we have to set that driver for each and every container when we
either create or run them.

Notes:
- podman only supports "json-file", and it's not even a json.
- docker json-file doesn't support "path" option, making this output
  unusable in the end: logs end in
  /var/lib/docker/containers/ID/ID-json.log

Related-Bug: #1814897
Change-Id: I7ac10a9b42ecae73a77b624f5350c424d4c3030a
2019-02-08 07:43:13 +01:00
Cédric Jeanneret b452a33030 Allow to pass some of systemd.exec flags
It may happen we have some shared directory mounted within
the container - if it is located in /run or in some other
tmpfs location, it won't persist across reboots.

SystemD provides the capability to create those directories, and
this patch allows to take advantage of this capacity.

Basically, we might add as many flag as we want.

Closes-Bug: #1814764
Change-Id: I5d2ef49ec205b7a43c488d4ceef0724e5ef2b6cc
2019-02-06 16:47:51 +01:00
Emilien Macchi aa42360b85 Prefix SystemD service by "tripleo_"
We now prefix the SystemD service so we can identify them better:
  e.g. systemctl list-unit-files | grep tripleo

It'll help to not conflict when rpms are installed on the host and
have the same service name as their container name.

For example haproxy rpm and haproxy container would have the same
service name so the prefix will help to not having this conflict
when removing the rpms during a cleanup by the operator.

Change-Id: I4bec5cfdb34c7422816c2d79ccaa5a499c783631
2018-12-10 09:02:47 -05:00
Zuul f799756f48 Merge "Add missing default-runtime support bits" 2018-12-07 16:57:33 +00:00
Bogdan Dobrelya e2b74083fe Add missing default-runtime support bits
So it can be used when debugging containers with podman
and paunch. Also fix clean/list/delete should be added the
default_runtime value.

Deduplicate cont_cmd and default_runtime (deprecated) ABI
params passed into action methods and taking the same
values. Use cont_cmd instead.

Closes-Bug: #1796646

Change-Id: I86d6403ee6d7e8acd05e8646066420feec098f1a
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-11-30 16:46:53 +01:00
Marc Methot 797e7ae19c Allow to set limit memory on containers
This will add the features `--memory`, `--memory-swap` and
`--memory-swappiness`

Change-Id: Icb44564906dbbe2d0407eaf1ab01eb450fcc73ce
Closes-Bug: #1801949
2018-11-21 16:55:31 -05:00
Bogdan Dobrelya b28914702a Fix labels to take multiple values
Closes-Bug: #1798362
Change-Id: I635e7d53f8aea63c05a2e5565f2a2ab40dcd38f8
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-10-25 18:44:54 +00:00
Bogdan Dobrelya d3c83259bf Fix logging to stdout and file in classes/commands
Fix logging to console to depend on input CLI args. By default, keep
logging to stdout. Make --log-file argument working as well.

Use the input verbosity parameters as a controlling switch for
logs verbosity.

Evaluate log levels as:

  * 1 (WARNING+) - the default log level if neither -v nor --debug used
  * 2 (INFO+)    - applies if -v / --verbose
  * 4 (DEBUG+)   - applies if --debug, dumps command results to file,
    if --log-file is requested.
  * 5 (DEBUG+)   - applies if --debug and -v. Like the latter mode, but
    also dumps the executed commands results to console.

This is needed for better deployments troubleshootng.

Closes-Bug: #1799182

Change-Id: I653ac4cc520e40f3eb4d029e8c99ab482b17a859
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-10-23 18:40:41 +02:00
Emilien Macchi 6a6f99b724 podman: create/delete systemd unit files when restart policy is used
This patch will create a basic systemd unit file that start/stop/status
any container that we manage with restart policy in paunch config.
It's only created when podman is the container runtime and when the
container is configured with a restart policy.

The systemd unit file will be removed when paunch removes the container.

KillMode=process is used so in the case of Neutron, we don't kill
children containers.

Note: if the policy is set to unless-stopped, we'll force the always
policy because unless-stopped doesn't exist in systemd.

Change-Id: I676e5fff3daecadba45efddff11f7afc602a50ef
2018-10-02 16:43:14 -04:00
OpenStack Release Bot d2575ae15f Update reno for stable/rocky
Change-Id: Ifc901afe50fb7fcc90a043bec95362faf5256932
2018-08-24 14:42:17 +00:00
Goutham Pacha Ravi 8d593faae7 Switch docs to openstackdocstheme
Change-Id: I6260db140fe66da321443de66231e6bf98b60fad
2018-07-31 01:53:56 +00:00
yatin 9348078452 Add ulimit option for run action
This will allow to set ulimit for a container.

Change-Id: I0cfcf4e3e3e13578ec42e12f459732992fb3a760
Related-Bug: #1760471
2018-04-06 11:01:06 +05:30
Bogdan Dobrelya 4a4f43ac36 Allow to limit cgroup cpu shares
Related-bug: #1755605

Change-Id: I1f24866ea2ec01e3ef22571145efa25ab219bb3a
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-03-26 14:04:11 +02:00
Juan Antonio Osorio Robles 9b8c252b75 Allow configuring security options
Change-Id: I27c202344c1e8be5f0e0da710c8fb18f0bc398b9
2018-03-21 13:57:40 +02:00
OpenStack Release Bot 607f1c6ce3 Update reno for stable/queens
Change-Id: If5d74c5cf19e32a28150fdc7b6ff964088dcff99
2018-03-03 11:40:25 +00:00
OpenStack Release Bot b533f8f5ac Update reno for stable/queens
Change-Id: I95a28dba115e4146083c3d73a6548818ec6c6ef5
2018-02-14 13:44:35 +00:00
Steve Baker 9b2ae8bd96 Explicitly pull images before docker run
By pulling any missing required images, a pull failure will result in
an early failure with a clear cause. For detached containers, this is
improved error handling than having a container which fails
to start.

Change-Id: Ifa0257cbeadd3da9be756edf6a729c90141c238f
Closes-Bug: #1733941
2017-12-04 14:13:00 +13:00
Zuul ecd4360f4b Merge "Add option to configure uts namespace" 2017-10-24 05:52:33 +00:00
Zuul f77f7d88ee Merge "Add log_tag option to container definition" 2017-10-20 13:18:38 +00:00
Juan Antonio Osorio Robles e852f80e1f Add option to configure uts namespace
Change-Id: I72b4a131591d50528f99a24fefaf458434390ba7
2017-10-11 16:14:49 +03:00
Juan Antonio Osorio Robles e379a5b79e Add log_tag option to container definition
This adds the --log-opt tag=<value> to the docker run command, which can
be quite useful depending on your logging needs.

In the TripleO case, we use journald as the default logging driver, and
this will get reflected in the logs by adding the tag to the
CONTAINER_TAG key in the log metadata.

bp logging-stdout-rsyslog

Change-Id: I3bfb1a5ce2d6a6f95519f5272348eae18d649712
2017-10-06 07:44:46 +00:00
OpenStack Release Bot bc1ea3c5e5 Update reno for stable/pike
Change-Id: I740604303c5fef4a4c9c5c6867240d5cc40ec67d
2017-08-17 21:22:01 +00:00
Steve Baker ceed164766 Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00