Bump the maximum customization script size to 64kB

Nova API now allows up to 64kB for the customization script,
so we can increase the limit on our side. However, the limit
is calculated on Base64-encoded text, which is 33% bigger, so
we have to adjust the limit accordingly.

Signed-off-by: Radomir Dopieralski <openstack@dopieralski.pl>
Change-Id: I308a54c8864e96abf84a51c265d3e9a82030382c
This commit is contained in:
Radomir Dopieralski
2025-08-06 11:27:32 +02:00
parent 33cbc0c537
commit 05986ed45d
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,8 @@
(function () {
'use strict';
var MAX_SCRIPT_SIZE = 16 * 1024;
/* 64kB, adjusted for Base64 encoding. */
var MAX_SCRIPT_SIZE = 64 * 1024 * 0.75;
angular
.module('horizon.dashboard.project.workflow.launch-instance')

View File

@@ -38,7 +38,7 @@
});
it('sets the user data max script size', function() {
expect(ctrl.MAX_SCRIPT_SIZE).toBe(16 * 1024);
expect(ctrl.MAX_SCRIPT_SIZE).toBe(64 * 1024 * 0.75);
});
});