Project

General

Profile

Actions

Bug #36870

open

Sorting of template inputs in job templates does not work after import

Added by Thomas Kube 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When I create a new template, export it and import it again, the sorting of the template inputs has disappeared. We develop our jobs in the development system, export them and import them in the production system. However, after the import, the parameters are in an arbitrary order.
Example:

This is the source code of the export, for better clarity, I have numbered the parameters:
<%#
name: Development - Testjob
snippet: false
template_inputs:
- name: 1. Instancename
required: true
input_type: user
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 2. GCP Zone
required: true
input_type: user
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: europe-west4-c
hidden_value: false
- name: 3. GCP Project
required: true
input_type: user
description: 'Name of the GCP project to be used for the instance (example: sap-shared-tool)'
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 4. GCP Machine Type
required: true
input_type: user
options: "----- Choose a machine type -----\r\nn1-standard-1\r\nn1-standard-2\r\nn1-standard-4\r\nn1-standard-8\r\nn1-standard-16\r\nn1-standard-32\r\nn1-standard-64\r\nn1-standard-96\r\nn1-highmem-2\r\nn1-highmem-4\r\nn1-highmem-8\r\nn1-highmem-16\r\nn1-highmem-32\r\nn1-highmem-64\r\nn1-highmem-96\r\nn2-standard-2\r\nn2-standard-4\r\nn2-standard-8\r\nn2-standard-16\r\nn2-standard-32\r\nn2-standard-64\r\nn2-standard-80\r\nn2-standard-96\r\nn2-standard-128\r\nn2-highmem-2\r\nn2-highmem-4\r\nn2-highmem-8\r\nn2-highmem-16\r\nn2-highmem-32\r\nn2-highmem-48\r\nn2-highmem-64\r\nn2-highmem-80\r\nn2-highmem-96\r\nn2-highmem-128\r\nm1-ultramem-40\r\nm1-ultramem-80\r\nm1-ultramem-160\r\nm1-megamem-96"
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 5. GCP Image
required: true
input_type: user
options: "----- Choose a Image type -----\r\nsuse-sap-cloud|sles-15-sp5-sap\r\nsuse-cloud|sles-15\r\nrocky-linux-cloud|rocky-linux-8\r\nrocky-linux-cloud|rocky-linux-9\r\ndebian-cloud|debian-12"
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 6. Boot Disk Size
required: true
input_type: user
description: Size of the boot disk in GB
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: '75'
hidden_value: false
- name: 7. Data Disk Size
required: true
input_type: user
description: Size of the data disk in GB
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 8. Swap Size
required: true
input_type: user
description: Size of the swap size in GB. For SAP Netweaver please refer to the documentation.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: '20'
hidden_value: false
- name: 9. SAP Netweaver
required: true
input_type: user
description: Set to yes if this server is a SAP Netweaver server
options: "yes\r\nno"
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: 'no'
hidden_value: false
- name: 10. SAP HANA
required: true
input_type: user
description: Set to yes if this server is a SAP HANA server
options: "yes\r\nno"
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: 'no'
hidden_value: false
- name: 11. SAP NW/HANA Only - SAP SID
required: false
input_type: user
description: SAP SID for the new SAP system. Required if SAP Netweaver or SAP HANA is set to yes
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 12. SAP NW/HANA Only - SAP Instance No
required: false
input_type: user
description: SAP Instance Number for the new SAP system. Required if SAP Netweaver or SAP HANA is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 13. SAP NW/HANA Only - Size for /usr/sap
required: false
input_type: user
description: Size in GB for /usr/sap. Required if SAP Netweaver or SAP HANA is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: 50
hidden_value: false
- name: 14. SAP NW Only - Size for /sapmnt
required: false
input_type: user
description: Size in GB for /sapmnt. Required if SAP Netweaver is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 15. SAP NW Only - Size for /usr/sap/trans
required: false
input_type: user
description: Size in GB for /usr/sap/trans. Required if SAP Netweaver is set to yes. Leave it at default (zero) if no /usr/sap/trans directory is needed.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: 0
hidden_value: false
- name: 16. HANA Only - Size for /hana/data
required: false
input_type: user
description: Size in GB for /hana/data. Required if SAP HANA is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 17. HANA Only - Size for /hana/shared
required: false
input_type: user
description: Size in GB for /hana/shared. Required if SAP HANA is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 18. HANA Only - Size for /hana/log
required: false
input_type: user
description: Size in GB for /hana/log. Required if SAP HANA is set to yes.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: 19. Vault Token
required: true
input_type: user
description: Vault Token to get the Service Accountfile for GCP deployment. Before
running this job renew the token to avoid any problems.
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: true
model: JobTemplate
job_category: Ansible Playbook
provider_type: Ansible
kind: job_template
organizations:
- RunSAP
locations:
- GCP europe-west-4
%>

After importing the job in production it looks like the PNG file shows (shortened).

System information:
Operating system: Rocky Linux 8.8
TheForeman: 3.6.2
Katello: 4.8.3

Thanks in advance for your help,

Thomas


Files

ForemanBugReport.png View ForemanBugReport.png 223 KB Thomas Kube, 10/27/2023 07:58 AM
Actions #1

Updated by Thomas Kube 7 months ago

  • Status changed from New to Feedback
Actions #2

Updated by Thomas Kube 7 months ago

  • Status changed from Feedback to New
Actions

Also available in: Atom PDF