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

local configuration files can't be deployed #9902

Open
Uyunifier opened this issue Mar 5, 2025 · 3 comments
Open

local configuration files can't be deployed #9902

Uyunifier opened this issue Mar 5, 2025 · 3 comments
Labels
bug Something isn't working P2

Comments

@Uyunifier
Copy link

Uyunifier commented Mar 5, 2025

Problem description

i created a channel for central managed configuration files. One of them i copied to local.
Everytime i try to deploy the local one, it fails. If i deploy central managed one only it works.

Image

Steps to reproduce

  1. create configuation group and join a server
  2. add files to that group
  3. copie one of this files to local managed files of the system (maybe also change content)
  4. try to deploy it
    ...

Uyuni version

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : @System
Name           : Uyuni-Server-release
Version        : 2024.12-241000.225.1.uyuni5
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : unknown
Installed Size : 1.4 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : Uyuni-Server-release-2024.12-241000.225.1.uyuni5.src
Upstream URL   : https://www.uyuni-project.org/
Summary        : Uyuni Server
Description    : 
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

Uyuni proxy version (if used)

uyuni-tools version used to deploy/manage the server or proxy (if relevant)

Useful logs

file_|-file_deploy_1_|-/usr/local/bin/motd_|-managed:
    changes: {
        }
    comment: Source file salt://manager_org_1/1000010018/usr/local/bin/motd not found in saltenv 'base'
    name: /usr/local/bin/motd
    result: false
    __sls__: configuration.deploy_files
    __run_num__: 0.0
    start_time: '13:55:40.337954'
    duration: 24.387
    __id__: file_deploy_1

Additional information

No response

@Uyunifier Uyunifier added bug Something isn't working P5 labels Mar 5, 2025
@Uyunifier Uyunifier changed the title locla configuration files can't be deployed local configuration files can't be deployed Mar 5, 2025
@Uyunifier
Copy link
Author

Uyunifier commented Mar 5, 2025

When i manually create the folder structure and file inside the container in /srv/salt/manager_org_1/1000010018/usr/local/bin/motd
it cna be deployed. Updating the file in Uyuni web dont change the file on disk. this stays unmodified.
always the file on disk will be deployed, not the revision from web.

Edit:
When try to deploy via SSM it wont shedule at all. Only if i deploy a single system.

@agraul
Copy link
Member

agraul commented Mar 7, 2025

Updating the file in the Web UI should update the file on disk. Otherwise Salt's file server can't serve the updated file.

@agraul agraul added P2 and removed P5 labels Mar 7, 2025
@Uyunifier
Copy link
Author

Uyunifier commented Mar 10, 2025

Well unfortionally it doesnt. It stays unmodified on disk, On new one it dont create one at all.
Applying highstate after adding gpg certs will also flush the local file and use the global one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2
Projects
None yet
Development

No branches or pull requests

2 participants