Skip to content

Fix MLM 5.1 payg AWS deployment issues.#1924

Merged
maximenoel8 merged 1 commit into
uyuni-project:masterfrom
maximenoel8:deploy_payg_51_aws
Nov 4, 2025
Merged

Fix MLM 5.1 payg AWS deployment issues.#1924
maximenoel8 merged 1 commit into
uyuni-project:masterfrom
maximenoel8:deploy_payg_51_aws

Conversation

@maximenoel8
Copy link
Copy Markdown
Contributor

@maximenoel8 maximenoel8 commented Sep 30, 2025

What does this PR change?

Fix AWS MLM 5.1 deployment.

  • server -> setup fix
  • sles12sp5 -> test repo issue with GPG
  • rhel9 -> need to be registered

Changes

  • update AMI image selections
  • bump minima and jdupe version
  • update minimal requirements for testsuite repositories in minima
  • exclude controller from client tools repositories
  • update combustion to support ssh configuration in sshd configuration file and directory
  • add variable to select the correct sshd configuration in main.tf
  • move SCC init.sls in salt stages to declare the repositories at the right time (needed for some packages)
  • Fix gpg key issue with SLES by forcince the gpg import key
  • Change partition for secondary disk

@maximenoel8 maximenoel8 requested a review from a team as a code owner September 30, 2025 23:42
@maximenoel8 maximenoel8 marked this pull request as draft September 30, 2025 23:42
@maximenoel8 maximenoel8 self-assigned this Sep 30, 2025
@maximenoel8 maximenoel8 changed the title Use zypper to install packages WP: Fix MLM 5.1 AWS deployment issue. Sep 30, 2025
@maximenoel8 maximenoel8 force-pushed the deploy_payg_51_aws branch 6 times, most recently from e8f5bf6 to c85fb6d Compare October 9, 2025 00:10
@maximenoel8 maximenoel8 marked this pull request as ready for review October 29, 2025 20:32
@maximenoel8 maximenoel8 changed the title WP: Fix MLM 5.1 AWS deployment issue. Fix MLM 5.1 payg AWS deployment issues. Oct 29, 2025
@maximenoel8 maximenoel8 requested a review from a team October 29, 2025 20:39
Copy link
Copy Markdown
Contributor

@NamelessOne91 NamelessOne91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Maxime

A couple of comments in the PR and another question: do we need to actually touch the server > additional_disks.sls Salt states?
I'd expect 5.1 to use server_containerized > additional_disks.sls which relies on the provided tools to setup volumes for the containerized server.

Comment thread backend_modules/aws/host/combustion
- name: /usr/local/bin/utils/
- source: https://github.com/uyuni-project/minima/releases/download/v0.11/minima-linux-amd64.tar.gz
- source_hash: https://github.com/uyuni-project/minima/releases/download/v0.11/minima-linux-amd64.tar.gz.sha512
- source: https://github.com/uyuni-project/minima/releases/download/v0.25/minima_0.25_linux_amd64.tar.gz
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just care that the sintax for the YAML configuration files consumed by Minima has changed in some places.
It may work for testsuite repositories but break elsewhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works fine with the required yaml.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not so much worried about this yaml, but others yaml files (sometimes inline in Salt states) that we use.

I remember trying to update minima some time ago, and there were a few other things to adapt
See #1832

@maximenoel8
Copy link
Copy Markdown
Contributor Author

maximenoel8 commented Oct 30, 2025

Thanks Maxime

A couple of comments in the PR and another question: do we need to actually touch the server > additional_disks.sls Salt states? I'd expect 5.1 to use server_containerized > additional_disks.sls which relies on the provided tools to setup volumes for the containerized server.

For the tools to work, you need to specify the disk you want to add. To be honest this one is tricky. I have the feeling the main disk and additional disk name are switching from time to time because of a race conditions. If the issue persist, we will need a smart code to select the unused disk.

@NamelessOne91
Copy link
Copy Markdown
Contributor

To be honest this one is tricky. I have the feeling the main disk and additional disk name are switching from time to time because of a race conditions.

Yes, it's rare, but I have seen that happen.
Anyway, I was wondering if changing additional_disks.sls for server does anything for 5.1, as I think it will use the one for server_containerized.

@maximenoel8 maximenoel8 merged commit a643090 into uyuni-project:master Nov 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants