Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Support for Ubuntu 24.04 (Noble Numbat) #66180

Closed
OrangeDog opened this issue Mar 7, 2024 · 13 comments
Closed

[FEATURE REQUEST] Support for Ubuntu 24.04 (Noble Numbat) #66180

OrangeDog opened this issue Mar 7, 2024 · 13 comments
Assignees
Labels
Feature new functionality including changes to functionality and code refactors, etc. package-repo Packaging Related to packaging of Salt, not Salt's support for package management. Platform Relates to OS, containers, platform-based utilities like FS, system based apps Tests

Comments

@OrangeDog
Copy link
Contributor

OrangeDog commented Mar 7, 2024

Is your feature request related to a problem? Please describe.
Ubuntu 24.04 LTS previews are available, but Salt packages are not.

Describe the solution you'd like
Salt support released before 24.04.1 (the upgrade release), scheduled for 15th of August.

Describe alternatives you've considered
Installing manually with pip.

Additional context
Ubuntu no longer provide their own Salt packaging.

https://discourse.ubuntu.com/t/noble-numbat-release-schedule/35649

@OrangeDog OrangeDog added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Mar 7, 2024
@steverweber
Copy link
Contributor

steverweber commented Mar 14, 2024

using the bootstrap script pip and other options also failing,

curl -L https://bootstrap.saltproject.io | sh -s -- -P
...
 * ERROR: https://repo.saltproject.io/salt/py3/ubuntu/24.04/amd64/latest/salt-archive-keyring.gpg failed to download to /tmp/salt-gpg-UYX9w1lh.pub
 * ERROR: https://repo.saltproject.io/salt/py3/ubuntu/24.04/amd64/latest/SALT-PROJECT-GPG-PUBKEY-2023.gpg failed to download to /tmp/salt-gpg-njCnIPaD.pub
 * ERROR: Failed to run install_ubuntu_onedir_deps()!!!

as a temp workaround here is my install script

mkdir -p /etc/salt/minion.d
hostname -f > /etc/salt/minion_id
<<EOF cat > /etc/salt/minion.d/99-bootstrap.conf
master: YOURMASTER.example
rejected_retry: True
ping_interval: 60
EOF
DEBIAN_FRONTEND=noninteractive apt -y install salt-minion || {
    ## workaround no salt-minion pkg on ubuntu24.04
    ## https://github.com/saltstack/salt/issues/66180
    mkdir -p /etc/apt/keyrings
    curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
    echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/3007 jammy main" \
        | tee /etc/apt/sources.list.d/salt.list
    apt update
    DEBIAN_FRONTEND=noninteractive apt -y install salt-minion
}

@Akm0d Akm0d self-assigned this Mar 21, 2024
@ScriptAutomate ScriptAutomate self-assigned this Apr 2, 2024
@ScriptAutomate ScriptAutomate added Packaging Related to packaging of Salt, not Salt's support for package management. Platform Relates to OS, containers, platform-based utilities like FS, system based apps Tests package-repo and removed needs-triage labels Apr 2, 2024
@steverweber
Copy link
Contributor

steverweber commented May 1, 2024

If the plan is to hold off until the LTS v3008 release i'm OK with that.. but having a 24.04 repo that is using 3007 until that is ready would be a nice hold over.

@ScriptAutomate ScriptAutomate added this to the Sulfur v3006.9 milestone May 1, 2024
@ScriptAutomate
Copy link
Contributor

With Ubuntu 24.04 LTS now officially GA, currently working on getting it in so that packages can be created in future point releases of v3006.x and v3007.x

@xorinzor
Copy link

I see the MR for this is merged and should supposedly fix this (as stated in the description of #66496) but the repository is still returning a 404.

Is there an ETA for this?

@ScriptAutomate
Copy link
Contributor

I see the MR for this is merged and should supposedly fix this (as stated in the description of #66496) but the repository is still returning a 404.

Is there an ETA for this?

@koenr
Copy link

koenr commented May 21, 2024

Thank you for that information @ScriptAutomate - that clarifies a lot.
I can download the nightly build for testing in a 24.04, but - call me stupid - I can't manage to create a sources.list file out of the information provided. I get a 'Release file not found' error.
So having the https://gitlab.com/saltstack/open/docs/salt-install-guide/-/issues/86 solved would indeed be nice :-)

@xorinzor
Copy link

@koenr if I understand him correctly this should become available on the next point release (though no ETA on when that might be). So the Release file not found (ie: 404) is still expected.

@ScriptAutomate
Copy link
Contributor

ScriptAutomate commented May 21, 2024

I can download the nightly build for testing in a 24.04, but - call me stupid - I can't manage to create a sources.list file out of the information provided. I get a 'Release file not found' error.

@koenr - Good question, since the lack of documentation makes it difficult to test a nightly for users at the moment.

I've added info to that ticket that should help with testing an Ubuntu 24.04 3006.x nightly build on Ubuntu 24.04, if you're wanting to test things out (I tested on an Ubuntu 24.04 container):

The example can be modified if wanting to test 3007.x instead, etc.

NOTE: Remember that nightly builds are considered experimental/bleeding-edge builds since they are not representative of a full point release.

@ScriptAutomate
Copy link
Contributor

Salt v3007.1 STS was released today, and includes both Ubuntu 24.04 and Fedora 40 as newly supported operating systems:

Ubuntu 24.04 and Fedora 40 will have builds included in Salt 3006.x LTS when the next point release for v3006 happens (Salt v3006.9), and will also be included in Salt v3008 LTS (est. Fall 2024).

In the meantime, if wanting to test out the nightly builds built from either the 3006.x or master branch, can find some rough guidance here until a nightly process doc is officially published: https://gitlab.com/saltstack/open/docs/salt-install-guide/-/issues/86#note_1915018672

Closing this ticket as complete.

@alpana17
Copy link

alpana17 commented Nov 8, 2024

@here
doc https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/ubuntu.html is not available

I am facing issues setting up salt on Ubuntu 24 on AWS ec2 host
Can someone guide me

@alpana17
Copy link

alpana17 commented Nov 8, 2024

Even tried to follow https://gitlab.com/saltstack/open/docs/salt-install-guide/-/issues/86
But the issue is, not able to locate repo.saltproject.io

@ScriptAutomate
Copy link
Contributor

@alpana17

doc https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/ubuntu.html is not available
I am facing issues setting up salt on Ubuntu 24 on AWS ec2 host
Can someone guide me
But the issue is, not able to locate repo.saltproject.io

The Salt Install Guide has had a massive overhaul, and the package repositories have been migrated to a new location.

Instead of going to a specific operating system page for Ubuntu, see:

For information detailing the repo migration to packages.broadcom.com, see:

@alpana17
Copy link

@ScriptAutomate I followed the Install instructions as listed Salt Install Guide: Linux (DEB) Install Instructions

But it does not solve my issue.

Earlier, on ubuntu 22, I was installing it like
curl -L https://bootstrap.saltstack.com/ -o bootstrap_salt.sh
sudo sh bootstrap_salt.sh#Updated /etc/salt/minion file and uncomment file_client : remote line and replace 'remote' with 'local'

and need to use it like
python3
import salt.client
salt.client.Caller().cmd('service.enabled', 'sshd')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. package-repo Packaging Related to packaging of Salt, not Salt's support for package management. Platform Relates to OS, containers, platform-based utilities like FS, system based apps Tests
Projects
None yet
Development

No branches or pull requests

7 participants