Commit Graph

382 Commits

Author SHA1 Message Date
Ghanshyam Mann c2ff9b8f49 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I7f1dc7801a025d9bb28110f74340846b99870b79
2024-02-24 11:43:13 -08:00
Juan Badia Payno 4e227fb898 multi-rhel-container-image-prepare.py
Change-Id: I795b2cd2059cd98c2ca74cd54e22ce078276a405
2023-03-17 16:36:19 +01:00
Zuul 0043c70a47 Merge "Removing NIC scripts as the heat network config is no longer supported" 2022-11-30 00:55:59 +00:00
Zuul dfbcf7aa83 Merge "Improve volumes format check of yaml-validate.py" 2022-11-28 11:41:53 +00:00
Takashi Kajinami f813a554a2 Ensure standalone role data is up-to-date
This is follow-up of 743c5fa0cd and
ensures the roles_data_standalone.yaml file is synced with the latest
contents in the roles directory.

Change-Id: I9d939b72827aff24de4dd8f496ff01b6df028cfa
2022-11-24 14:20:30 +09:00
Zuul 6c17f63aab Merge "Remove support for VPP and Neutron ML2/VPP plugin" 2022-11-21 22:17:35 +00:00
Yamato Tanaka d940f58614 Improve volumes format check of yaml-validate.py
Currently, yaml-validate.py cannot detect trailing slashes under
"list_concat" and "if".

  volumes:
    - /example:/example/ # <======= detected

  volumes:
    list_concat:
    - - /example1:/example1/ # <===== not detected
      - /example2:/example2
    - if:
      - {get_param: TestValue}
      - - /example3:/example3/ # <==== not detected
        - /example4:/example4

This fix makes yaml-validate.py detect the these trailing slashes.

Because the current implementation digs "list" twice in one call to
check_volumes(), trailing slashes under "list_concat" are not detected.
Because the current implementation ignores "if", trailing slashes under
"if" are not deleted. check_volumes() doesn't have to ignore "if"
because non-volume-style value is ignored because of IndexError.

Change-Id: I4288738c2c95ab990024845fa43653854e790bd8
2022-11-18 10:56:27 +09:00
Takashi Kajinami 4ecf3ecaa4 Remove support for VPP and Neutron ML2/VPP plugin
These services were deprecated during Xena cycle by [1]. Since we have
created the Zed release, now we can remove the features deprecated
before that.

[1] 18651160a9

Change-Id: Ib248ec4bec57a5d747a1cf35157084d2cb51b566
2022-11-16 10:21:45 +09:00
Takashi Kajinami 743c5fa0cd Add roles data file for Standalone deployment
... so that we can use that file as the default role data in
the tripleo deploy command.

Change-Id: Ib79bb0a393df3e0df84ab42e3652ae9d5924f3b8
2022-10-19 16:04:17 +09:00
Jiri Podivin e098b8172b Removing NIC scripts as the heat network config is no longer supported
Function of these scripts is now carried out by ansible roles,
making them unnecessary.

Removed scripts:
        tools/convert_nic_config.py
        tools/merge-new-params-nic-config-script.py

Depends-On: https://review.opendev.org/c/openstack/tripleo-upgrade/+/861710

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ie6dfbc7fef03b6738d3c2b61eab2b18fbe76d49d
2022-10-18 07:38:54 +00:00
Takashi Kajinami f1cf81eec2 Replace remaining usage of Net::SoftwareConfig
... because the resource can't be used in networking v2. Also this
change removes the deprecated_nic_config_name property from roles data
because it is no longer used.

Depends-on: https://review.opendev.org/848953
Change-Id: I27be59299262a8bc3a45979b30569fde84011676
2022-09-28 10:28:33 +09:00
Brendan Shephard d6e203d57f Remove old network_data examples
These old example files no longer work with TripleO. Thus, this
change is removing them to avoid confusion for our users. We can
instead rely on the files here:
1a1fb27275/network-data-samples

Change-Id: I46ed94253802b8f748a320e609fa7244be51ed59
2022-09-09 10:08:37 +10:00
Zuul 2fe8f53680 Merge "Fix typos in comments and parameter descriptions" 2022-08-22 08:12:29 +00:00
Rajesh Tailor 8592d0c71a Fix typos in log messages
This change fixes some typos in log/error messages.

Change-Id: I5d6d8e43fec79d1f2f09480dba49db721c390586
2022-08-03 17:08:57 +05:30
Rajesh Tailor 6861fb324b Fix typos in comments and parameter descriptions
This change fixes typos in comments, parameter descriptions
and ansible task names.

Change-Id: I82b67ca834077b66ebd71744face3bba0b43da2f
2022-08-03 17:07:11 +05:30
Zuul 2ec53e79ca Merge "Remove parameters/resources for undercloud Nova" 2022-08-03 00:37:45 +00:00
Zuul 06caa78310 Merge "Use tripleo_iscsid standalone ansible role" 2022-07-18 18:20:43 +00:00
Zuul 03f3a8d051 Merge "Remove unreachable code" 2022-07-11 10:38:02 +00:00
Rajesh Tailor 8494a5abdf Remove unreachable code
This change removes unreachable code from python scripts.

In placement_wait_for_service.py program control returns after
executing system.exit(0) hence `break` statement is unnecessary
there.

In yaml-validate.py control doesn't reach the last `return 0` statement
hence it is also unnecessary.

Change-Id: Ibdbecd796d18fce4a2750086ddb2209dd337e6c9
2022-07-07 22:49:05 +05:30
Takashi Kajinami 34a2e1ebc9 Remove parameters/resources for undercloud Nova
This change removes the following parameters, which were used by
undercloud Nova.
 - KeyName
 - Overcloud{{role.name}}Flavor
 - {{role.name}}SchedulerHints
 - {{role.name}}Image

This also removes the NodeUserData resource because it depends on
cloud-init and nova metadata and is no longer used since Nova was
removed from baremetal node provisioning.

Finally, this change makes deployed server method used by default, and
removes remaining implementation to keep the resource compatible with
OS::Nova::Server.

Change-Id: I571b401ab2ca3c77352f4849eb2b99de20292032
2022-07-07 20:34:13 +09:00
Takashi Kajinami 6312d2b22c Remove unused OS::TripleO::SoftwareDeployment
This resource type is defined but is no longer used.

Change-Id: I58ff22478079cd7f1688a90a6e49a44956ca2b46
2022-07-05 17:17:06 +09:00
rabi df58fe7bf1 Make NeutronEnableDVR parameter boolean
Removes the redundant conditions and the template complexity.
This won't have any backward incompatibility with templates
as the only allowed values for it are 'true/false'

Change-Id: Idc0872cee7de0b16531329e329d222bf661117c4
2022-06-09 08:12:26 +05:30
James Slagle e3408da15c Use tripleo_iscsid standalone ansible role
Depends-On: I27da90d6f43e06d0e13bcd203431e1751668a8cf
Change-Id: Ic9f22b1c5888ecc5eac323615262457595778598
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-05-31 16:26:30 -04:00
Zuul 6fb173e590 Merge "Define frontend firewall rules separately" 2022-04-29 15:38:00 +00:00
Takashi Kajinami a3dd023773 Define frontend firewall rules separately
This change ensures that firewall rules for haproxy endpoints are
enabled properly even when haproxy and api services are running in
different nodes.

With this change, firewall rule for ssl endpoints are removed from base
firewall rules because these ports are used by haproxy and not used by
api services.

Also, the adhoc implementation to run firewall configurations first is
refactored by the new host_firewall_tasks key. This allows us to
implement tasks to configure firewall in the corresponding resource
template.

Closes-Bug: #1961799
Depends-on: https://review.opendev.org/831547
Change-Id: I07ceab077f9a900f7e2e35af8acd3e7a337ed01a
2022-04-28 04:23:41 +00:00
Takashi Kajinami ff83505e8a Replace hiera by lookup
The hiera function is deprecated and does not work with the latest
hieradata version 5. It should be replaced by the new lookup
function[1].

[1] https://puppet.com/docs/puppet/7/hiera_automatic.html

With the lookup function, we can define value type and merge behavior,
but these are kept default at this moment to limit scope of this change
to just simple replacement. Adding value type might be useful to make
sure the value is in expected type (especially when a boolean value is
expected), but we will revisit that later.

example:
lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>])

Change-Id: If5ac88ffccc1bb800d8af33c8896294a57e9b5fb
2022-04-14 17:07:52 +09:00
Bogdan Dobrelya d0ca9fe631 Fix trailing slashes in bind-mounts and linting
Podman is not always happy with bind-mounts ending
with / (See I094120f7f2f6bfcfc0cc5843aa1b23629cd90a23)

Follow up If951f9643d67574c1225301aab7c9e4b0d316b7f
with that YAML linter couldn't catch.

Improve linter to process all volumes in templates, including
common/logging services templates, and neither puppet, not ansible
ones, like deployment/deprecated/multipathd-container.yaml.

Change-Id: Ia517b34c9d633101502bd8788e7b8764e75bbe64
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-03-08 12:13:01 +00:00
Francesco Pantano 4dc74ac164 Add CephIngress resource
This change adds the CephIngress resource that can be used on top
of CephNfs to deploy the ingress daemon through the orchestrator.

Depends-On: I7e337596b653cf635f07a36606e9f673044402a3
Change-Id: Ibd20627a8b110364e13c2bf26848ba6e3a8e4060
2022-03-03 21:08:19 +00:00
Giulio Fidente e1de2bcb72 Add CephNfs service on roles providing "external" network connectivity
With the recent changes meant to allow deployment of Ganesha on the
"external" network, the CephNfs service can be added to more roles
than just ControllerStorageNfs.

Change-Id: Ic9010307c2aab7041c8ae30c72cc1bf99fdd22f6
Closes-Bug: 1961578
2022-02-21 14:48:44 +01:00
bshephar 0c3ea4c286 Allow nic-config conversion without Heat
The current script requires the orchestration (Heat)
be available. This change will allow the script to convert
existing templates provided without the orchestration
service present.

Change-Id: Ie94de5841617cd8dc87ee7dccc5d4ece5b908cb9
2022-02-17 11:15:08 +00:00
Harald Jensås a77d5ebde2 Make tools scripts executable
Set +x permission on files:
 * tools/convert_heat_nic_config_to_ansible_j2.py
 * tools/convert_v1_net_data.py

Other python scripts have the executable permission set.
Align the two scripts with the rest.

Change-Id: I0a0bd4a353bdc35698444b72f093cce176bbe5a0
2021-12-06 17:10:58 +01:00
Cédric Jeanneret 7a99ae23e3 Introduce a new linter for yaml-validate, and correct issues
This new linter ensures we don't have any trailing "/" in the container
volume definitions.

Those trailing "/" may create issues with the containers, for instance
for specific mounts such as "/dev"[1].

This patch also takes the opportunity to fix those trailing "/" for the
affected files, in order to start on a clean basis.

[1] https://launchpad.net/bugs/1950176

Change-Id: If951f9643d67574c1225301aab7c9e4b0d316b7f
Related-Bug: #1950176
2021-12-01 09:43:25 +01:00
Harald Jensås 531aecc4ba Fix convert_v1_net_data.py - ipv6 property
Ensure the ipv6 property is at the network level.
Previously the key would be converted in at the
subnet level, which is incorrect.

Closes-Bug: #1951308
Change-Id: Iab58ff31b4434785376ae3c553c0e7c89c6b7ff5
2021-11-17 21:41:00 +01:00
Zuul c793e9174f Merge "Remove six library" 2021-10-12 00:55:27 +00:00
Zuul 5640a60086 Merge "Implement a tool for converting policy.yaml files to heat templates" 2021-10-06 08:48:58 +00:00
Brendan Shephard b522254bc2 Remove six library
The six library was used to bridge the py2 > py3
gap. This library is longer required on branches
that do not support Python2.

Change-Id: I40cb90bc6bc058dcbf3659b97dbb489b53adb9d3
2021-10-06 07:01:42 +00:00
Zuul d7347599ee Merge "Skip yaml validation for releasenotes and zuul.d" 2021-10-01 12:17:16 +00:00
Lance Bragstad c9635bf92e Implement a tool for converting policy.yaml files to heat templates
This commit adds a tool that parses a directory of service.yaml policy
files and then converts them to the appropriate THT structure, using the
necessary service variables and templating.

The enable-secure-rbac.yaml is simply the current defaults generated
from code. First, generate all the policy files for each OpenStack
service:

  $ oslopolicy-sample-generator --namespace $SERVICE --output-file $DEST/$SERVICE.yaml

Next, uncomment all the default policies as a starting point for making
policy changes:

  $ sed -i 's/^#"/"/g' $DEST/$SERVICE.yaml

Next you can make changes to the policy files to reflect the changes you
want in your deployment.

Finally, you can generate the necessary heat template:

  $ ./convert_policy_yaml_to_heat_template.py -d $DEST

The tool outputs to stdout. It's up to the user to redirect to a file if
they wish to save results.

The enable-secure-rbac.yaml environment will be updated in subsequent
patches to implement project personas.

Change-Id: I9957243d307758f56b84cde3a408006d8161fa41
2021-09-28 13:33:53 +00:00
David Vallee Delisle dcb33e8c5a Adding json output to yaml-diff
It's easier to read than pformat.

Change-Id: I92c345130928028207738d788f5d703372b4c05a
2021-09-06 12:53:41 +00:00
Zuul a332241b79 Merge "Use yaml.safe_load to load YAML files" 2021-07-28 15:48:14 +00:00
Takashi Kajinami 53040573ab Use yaml.safe_load to load YAML files
Since PyYAML 5.1, yaml.load without specifying the Loader option is
deprecated and shows the following warning.

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
as the default Loader is unsafe.
Please read https://msg.pyyaml.org/load for full details.

This change replaces yaml.load by yaml.safe_load (which is effectively
same as adding Loader=yaml.SafeLoader) to get rid of that warning
message. Also, existing all usage of yaml.load with the Loader option
are also replaced so that we to make all implementation to load yaml
files consistent.

Change-Id: Id44fa2354429b944fbc0809f63db558bb7de23f7
2021-07-24 12:08:22 +09:00
Zuul 200f0522ed Merge "Add tool to convert net-data from v1 to v2" 2021-07-15 06:47:19 +00:00
Takashi Kajinami 2341c892f9 Skip yaml validation for releasenotes and zuul.d
Currently yaml validation is executed against almost all .yaml files
in tht repo, but this makes releasenote files and zuul job definitions
tested by yaml-validate.py.

This patch addes the new --skip-dir option to yaml-validate.py and
exclude these directories (and .tox which was already excluded) so that
we can ignore files which are not valid deployment templates.

Change-Id: If6fce493151ef17bfba26f8b80fc267d09408a9b
2021-07-14 21:10:20 +09:00
Zuul 7def8038a3 Merge "yaml-diff.py: Making it a bit better" 2021-07-14 05:34:32 +00:00
Zuul 0a60aad3aa Merge "Introducing the ComputeVdpa role" 2021-07-13 19:06:30 +00:00
Kevin Carter a191377b34
Add tool to convert net-data from v1 to v2
This new tool will convert the old v1 net-data format to v2. This tool
will create a backup of the older net-data file so that its possible to
recover data should anything go wrong in the conversion. Upon completion
the tool will create the v2 file using the existing file format name.

Change-Id: I4b4d79b0f68287921fedb3ad7b29b50df5ae3f02
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2021-07-12 10:40:16 -05:00
David Vallee Delisle 7010a27415 Introducing the ComputeVdpa role
Now that nova supports libvirt's vDPA implementation [1][2], we need
deployment code to enable such a feature.

The ComputeVdpa role is basically a copy of ComputeSriov with the
addition of the ExtraKernelModules. Beside these modules, operators
should define to their ``NovaPCIPassthrough`` as they normally do
for standard SR-IOV as a role parameter.

When having the right modules loaded, at least in RHEL8.5, the kernel
will automatically create /dev/vhost-vdpa-X devices for each one of the
VFs.

[1] https://opendev.org/openstack/nova-specs/src/branch/master/specs/wallaby/implemented/libvirt-vdpa-support.rst
[2] https://bugzilla.redhat.com/1873409

Depends-On: https://review.opendev.org/c/openstack/os-net-config/+/798926
Related: https://bugzilla.redhat.com/1956297
Change-Id: Ifda3ac08c596f65bc75d869097a0f72e816ba783
2021-07-07 10:29:01 -04:00
David Vallee Delisle ec1f6102e0 yaml-diff.py: Making it a bit better
Adding a --details switch to have a bit more information about the
differences between yaml files.

This is pretty much leveraging the difflib to get at most 2 levels of
differences in the yaml structure.

Change-Id: If300a5f5d351404dbcf73d02822cdccf8e9f68df
2021-07-05 18:11:28 -04:00
Francesco Pantano dd5a5fc240
Remove from master the ceph-ansible references
ceph-ansible is not used anymore in master and both ceph
deployment and day2 ops are managed by the new cephadm tool.
This change aligns the tripleo-heat-templates tree to make sure
only cephadm is used to deploy Ceph (see [1]).

[1] https://blueprints.launchpad.net/tripleo/+spec/tripleo-ceph

Change-Id: Ib87615112264bd65e38ed7fb4440cca62f067de5
2021-06-29 15:55:24 +02:00
Zuul 2c4363561e Merge "Add network-v2 default files + vip data examples" 2021-06-18 22:33:24 +00:00