Commit Graph

340 Commits

Author SHA1 Message Date
Takashi Kajinami 109bb65c3a Drop reference to dib-utils
The dib-utils repository was retired when TripleO was retired. We
decided to vendor the dib-run-parts script in os-refresh-config so
we no longer need the separate tiny package for the dib-run-parts
script.

Depends-on: https://review.opendev.org/c/openstack/os-refresh-config/+/910574
Change-Id: Id35efa4b387bd0fa21c1d73a4fe59f88c197f500
2024-02-29 17:08:10 +09:00
Zuul 64f020b602 Merge "Fix software config on rdo" 2020-11-16 06:46:30 +00:00
Zuul 59545fb3c5 Merge "add template for servers using Octavia" 2020-11-16 06:32:59 +00:00
Andrei Nistor 63444ea47a Fix software config on rdo
The os-refresh-config scripts directory is currently set to
/opt/stack/os-config-refresh, but the latest os-refresh-config expects it to be
/usr/libexec/os-refresh-config

Change-Id: Ic3f61ea88fd431e7d9893c6930c778f6fbf21147
2020-11-16 05:48:26 +00:00
Pratik Raj dd8d284c36
optimize size and time using --no-cache-dir
Using --no-cache-dir flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Change-Id: I99570e8da62205498bdba6064160d2592a86ad3e
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-10-03 11:49:04 +05:30
Zuul 8a20477005 Merge "Add sample templates for Blazar" 2020-02-21 07:28:52 +00:00
yangyong 7ed394f9f5 add template for servers using Octavia
add examples for servers using Octavia loadbalancer,pool,listener,and healthMonitor

Change-Id: I10052158456f4b8b4ad365799aa9bd99bca8cba0
2019-08-29 11:46:44 +08:00
Hongbin Lu e3b5a525b5 Add example for running Zun container
Change-Id: Ic08fa9c2918243296bd72bf05ca43dfade4b24f9
2019-06-08 22:41:10 +00:00
kaz_shinohara f8cf393737 Add sample templates for Blazar
Since Rocky, Heat supports Blazar which is a reservation service in
OpenStack. This patch provides sample templates regarding Blazar Host
and Lease resources accordingly.

Change-Id: I169a96c63eee59ec9b0d098f86709e6d02d1209f
Depends-On: I1392919540a6bdd67ce7078e3a1206ecdb9854e1
2019-03-08 07:08:32 +00:00
Zuul 840692d3d4 Merge "Add an example of OS::Mistral::ExternalResource" 2019-01-23 04:55:25 +00:00
Zuul 5270cc11c9 Merge "Remove docs, deprecated hooks, tests" 2019-01-03 08:35:43 +00:00
ricolin 53800d1057 Remove docs, deprecated hooks, tests
Remove all deprecated hooks and tests.
Also since all test and hooks are removed,
we can remove the declare of python language in classifier.
Since we didn't actually provide any document,
we should remove docs too.

Hooks are maintained as Agents under heat-agents repo now.
Hooks in heat-templates are deprecated for a while. Hence, remove
hooks in heat-templates.

Depends-On: https://review.openstack.org/#/c/584774/
Change-Id: Ia886f71eaf99d75db0f9a6a7dfbe8664995c26e7
2019-01-03 20:18:06 +13:00
Zuul 9bb6bd7252 Merge "Fix the incorrect cirros default password" 2019-01-03 05:14:18 +00:00
Rabi Mishra 2b4eb5d9e3 Use octavia resources for autoscaling example
lbaasv2 is probably not actively maintained.

Change-Id: Id11a47b5439f3bca05b536f15bec3e5fa92c9e56
2018-11-22 19:31:28 +05:30
Thomas Herve e78f9df974 Add an example of OS::Mistral::ExternalResource
I couldn't find a simple example of that resource, so here's a real
simplified one creating a workflow in the same template.

Change-Id: I9de98df8a629227ba83e50382ccba660621fcbd5
2018-11-21 11:16:38 +01:00
Zuul 6b5a7cd2b5 Merge "Deprecate hooks in heat-templates" 2018-05-10 13:01:59 +00:00
zhang.lei b2df3b3da2 Fix the incorrect cirros default password
Following by https://docs.openstack.org/image-guide/obtain-images.html#cirros-test

Change-Id: I43f8ab98ba18fb27209c6a80458053e0eea89216
2018-05-09 09:35:47 +00:00
Zuul 28ab0afaa5 Merge "Update and replace http with https for doc links in heat-templates" 2018-03-27 15:51:04 +00:00
ricolin 20fb0efa11 Deprecate hooks in heat-templates
We already create repository `heat-agents` for hooks and will keep
maintain hooks there, so we should deprecate all hooks in
heat-templates and plan to remove it in futuer.

Change-Id: Ie2d89d5bab7db2bc6a2e171dc455098811519440
2018-02-07 16:50:34 +08:00
shangxiaobj f44b2d591d Update and replace http with https for doc links in heat-templates
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: Id87e91d1f95bcb94c31125c467abab17242cb36f
2018-01-30 12:16:43 -05:00
Zuul eb93bfeb78 Merge "Add example for using external resources" 2017-12-06 20:28:55 +00:00
Zuul 14386a61a2 Merge "Add create magnum cluster resources example" 2017-12-01 07:15:56 +00:00
Roberto Polli 2823fcafdc Replace LBaaS with LBaaSv2.
Since Mitaka, OS::Neutron::LBaaS::LoadBalancer replaces
  OS::Neutron::LoadBalancer. The patch replaces both
  heat_template_version and OS::Neutron::LoadBalancer.

Closes-Bug: #1722853
Change-Id: I284c72b67bdaaadde35a97feb807171046e3a93f
2017-10-12 08:26:26 +00:00
ricolin 5ca15a79f8 Add example for using external resources
Add template for show cases that how we can use external resources.
external resources in stack does not required to be modified or depends
on the stack.
blueprint external-resources

Depends-On: I8b33c957a7185a0f52356f412b13609ba1a7b469
Change-Id: Ia56318508caf43a7da28bd479becdc602477cad5
2017-09-08 07:33:22 +00:00
Jenkins 1d2d3cb75f Merge "Add example for using condition" 2017-09-06 04:50:57 +00:00
Jenkins 671de9b537 Merge "Make cirros-example v3 compatible" 2017-08-23 07:45:21 +00:00
huangtianhua 76b83b68f6 Add example for using condition
Add template for show cases that how we can use
condition for resource, property and output.

Change-Id: I34ba7db9827ad16a23f60f615fa1ae0dbdc38aa8
Blueprint: support-conditions-function
2017-08-04 11:21:54 +08:00
rabi a7243bc089 Use correct policy references in autoscaling.yaml
It seems I4a617daf063fb1faf01c71762d6509cb00eed0b6 has added some
wrong resource references. It seems it was not detected at that
time with the dsvm job and some recent heat code changes have made
it detect the issue.

Change-Id: I1ac6371929fd2dbbe16c8faa6617cad1e4367fdf
Closes-Bug: #1707874
2017-08-01 15:45:44 +05:30
rabi a276f088ce Make cirros-example v3 compatible
This example seems broken. Though it will work if you
change the auth_url to point to /v2.0 rather than /v3, it's
better to make it work with v3 (the default now for all
keystone deployments).

Change-Id: I411a0f50ae50ee5b7c2564a7764ee9a01b00afea
2017-08-01 14:42:43 +05:30
Jenkins 25c9f45199 Merge "New template: Example for Neutron Trunks" 2017-07-17 03:51:17 +00:00
Jenkins 36a473a03f Merge "autoscaling: fix a type in gnocchi command" 2017-07-13 20:05:56 +00:00
Mehdi Abaakouk c03afdfd0d autoscaling: fix a type in gnocchi command
Change-Id: I85b15ebd2f294b82d16e63527d3b447a1267d6e3
2017-07-10 20:33:19 +02:00
Bence Romsics cfda4db51d New template: Example for Neutron Trunks
Add an example serving as documentation. It is not meant to be used as
is, though it works.

Change-Id: I623f778d2678d15ad68d5729a78a4aa3bdd8031f
Depends-On: Iea12844f77abf8c254f6224d55470663eba66aab
Partially-Implements: blueprint support-trunk-port
2017-07-10 08:45:20 +02:00
ricolin e4df67e265 Fix undefined basestring and unicode in py35
In py3 basestring and unicode are no longer valid,
and should use `str` instead. In order to cover
py2 and py3, we change to use six lib to cover both.
Closes-Bug: #1682015

Change-Id: I3159470965e3a20161ff0e997af625b45ebe21fa
2017-07-08 03:47:08 +00:00
ricolin 850daf29e5 Add create magnum cluster resources example
Add a tempate to demostrates how to create magnum COE cluster.
Partial-Bug: #1625757
Depends-On: I714f6dbc3a612425128f18ef3cea0336fdc47090

Change-Id: I76c0eff8eedcc1d345b21ea9c9689b52a21a6af7
2017-07-07 05:31:38 +00:00
Spyros Trigazis 1351cc322b Fix heat-container-agent
* use fedora base image from fedora registry
* fix ADD and run script
* move package install in Dockerfile for layers
* add zaqarclient

Change-Id: Iaa82fcd7af25ec81e982e6b170aa1d449f6e1166
2017-06-22 10:45:34 +02:00
Jenkins 69c1326442 Merge "autoscaling: don't query an no more existing API" 2017-06-12 07:40:19 +00:00
Mehdi Abaakouk 9ac17bff58 autoscaling: don't query an no more existing API
This change replaces Ceilometer API query to
the corresponding Gnocchi one.

It also replaces the metering.stack to metering.server_group. Using
"stack" need change in Ceilometer and Gnocchi configuration while
server_group will work out of the box.

Change-Id: Id81539624e5bae3487757e2167bf2ccd59c0009b
2017-06-08 09:20:30 +02:00
Jenkins 2cb7be4828 Merge "autoscaling: Remove usage of deprecated Ceilometer API" 2017-06-06 05:09:05 +00:00
Jenkins 5d85fb437d Merge "Fixed MSSQL template to support 2008, 2014, 2016 versions" 2017-05-25 08:04:08 +00:00
Mehdi Abaakouk de990777bd autoscaling: Remove usage of deprecated Ceilometer API
This removes usage of deprecated Ceilometer API from the hot tempaltes
Marks as deprecated the cfn template.

This doesn't update the openshift, mistral, senlin
autoscaling/autohealing templates. Mainly because I don't have the
knowledge to change where the custom metrics are send from
Ceilometer-API to Gnocchi API.

Change-Id: I4a617daf063fb1faf01c71762d6509cb00eed0b6
2017-05-23 07:48:04 +02:00
Alex Schultz 6d2659b468 Fix splay config template
The splay option was added in I88f623c9e8db9ed4a186918206a63faec8f7f673
but was missing a trailing } which leads to parse errors. This fixes the
parse errors.

Change-Id: Ic5783220f5d027e0bde0080f50f9e10cbb68289f
Closes-Bug: #1686455
2017-04-26 10:30:11 -06:00
Jenkins 2603dbedef Merge "Add splay option" 2017-04-26 05:33:18 +00:00
Jenkins 8dbb1e76c0 Merge "Replace yaml.load() with yaml.safe_load()" 2017-04-09 14:54:37 +00:00
Alex Schultz c09f1d0cde Add splay option
Add the ability to configure the splay option that was recently added to
os-collect-config.

Change-Id: I88f623c9e8db9ed4a186918206a63faec8f7f673
Related-Bug: #1677314
2017-04-06 15:22:27 -06:00
Anant Patil 7879033e7d Use non-admin visible metrics
As per monasca documentation, the metrics starting with "vm." are only
visible to admin tenants. Since many users use this template are
non-admin tenants, this is being reflected to use non-admin visible
metrics.

Change-Id: I74201d8517dd5ab482a9f34e3a8aa725c50c8152
2017-03-27 06:37:49 +00:00
chenaidong1 bb79184e69 Replace yaml.load() with yaml.safe_load()
Yaml.load() return Python object may be dangerous if
you receive a YAML document from an untrusted source
such as the Internet. The function yaml.safe_load()
limits this ability to simple Python objects like
integers or lists.

Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: Ib2bfd11354c6b35c90938c1075729dc7028236a3
2017-03-10 16:18:30 +08:00
Jenkins 5705749060 Merge "Add template for autohealing servers" 2017-02-07 01:15:07 +00:00
zhangyanxian 824b3567ed Fix typo in AD.psm1
Change-Id: If7a0f94d4f254876b8d36dde5b8b26eac95aa04c
TrivialFix:"succesfully" should be "successfully"
2017-02-06 03:54:30 +00:00
Zane Bitter c975f6b179 Add template for autohealing servers
This is a template to create a Server along with Aodh alarms that
trigger a Mistral workflow (via a Zaqar queue) to get Heat to recreate
the server in the event that it is stopped, deleted or goes into an
error state.

Change-Id: Iab1b206cc06715cfd7dab0dfe7cb0c3de4c698dc
2017-02-03 10:22:23 -05:00