Bug 2295391

Summary: Request limit exceeded: Template size exceeds maximum allowed size (524288 bytes).
Product: Red Hat OpenStack Reporter: Kenny Tordeurs <ktordeur>
Component: python-tripleoclientAssignee: Rabi Mishra <ramishra>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: drosenfe, jelle.hoylaerts.ext, jslagle, madgupta, mariel, mburns, ramishra
Target Milestone: z4Keywords: Triaged
Target Release: 17.1Flags: madgupta: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-tripleoclient-16.5.1-17.1.20240913100806.f3599d0.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:32:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kenny Tordeurs 2024-07-03 11:59:40 UTC
Description of problem:
During upgrade having errors for template size

Version-Release number of selected component (if applicable):
Upgrade 16.2 > 17.1

How reproducible:
100%

Steps to Reproduce:
overcloud_upgrade_prepare.sh

2024-06-13 23:43:11.298 695883 ERROR openstack heat.common.exception.RequestLimitExceeded: Request limit exceeded: Template size (648398 bytes) exceeds maximum allowed size (524288 bytes).
2024-06-13 23:43:11.298 695883 ERROR openstack
2024-06-13 23:43:11.298 695883 ERROR openstack
-rw-r--r--. 1 root root 998 Jun 14 00:13 /usr/share/python-tripleoclient/templates/ephemeral-heat/heat.conf.j2

[DEFAULT]
client_retry_limit=2
debug = {{ debug }}
default_deployment_signal_transport = HEAT_SIGNAL
deferred_auth_method = password
keystone_backend = heat.engine.clients.os.keystone.fake_keystoneclient.FakeKeystoneClient
log_dir = /var/log/heat
log_file = {{ log_file }}
max_json_body_size = {{ max_json_body_size }}
max_template_size = 1048576
max_nested_stack_depth = 10
max_resources_per_stack=-1
num_engine_workers = {{ num_engine_workers }}
rpc_poll_timeout = 60
rpc_response_timeout = {{ rpc_response_timeout }}
transport_url={{ transport_url }}

[oslo_messaging_notifications]
driver = noop

[oslo_messaging_rabbit]
heatbeat_timeout_threshold=60

[noauth]
token_response = /token_file.json

[heat_api]
bind_host = 0.0.0.0
bind_port = {{ api_port }}
workers = 1

 

[database]
connection = {{ db_connection }}

 

[paste_deploy]
api_paste_config = /etc/heat/api-paste.ini
flavor = noauth

 

[oslo_policy]
policy_file = /etc/heat/noauth_policy.json

 

[yaql]
limit_iterators=10000
memory_quota=900000

Actual results:
Template size is not sufficient

Expected results:
Bigger template size

Additional info:
Fixed by setting: max_template_size = 1048576

Comment 24 errata-xmlrpc 2024-11-21 09:32:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHOSP 17.1.4 (openstack-tripleo-common and python-tripleoclient) security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:9990