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

servers are failed to checkin with uyuni post 2 days #8645

Open
jawahk opened this issue Apr 23, 2024 · 7 comments
Open

servers are failed to checkin with uyuni post 2 days #8645

jawahk opened this issue Apr 23, 2024 · 7 comments
Labels
bug Something isn't working P5

Comments

@jawahk
Copy link

jawahk commented Apr 23, 2024

Problem description

we have on-boarded AWS and ubuntu servers to uuyuni and added th4e required repo for the same but servers are failed to checking post 2 days automatically, need suggestions for the same.

Steps to reproduce

1.just and on-board and add the repo
2.
3.
...

Uyuni version

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2023.09-230900.207.8.uyuni3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes (automatically)
Status         : out-of-date (version 2023.04-220400.204.2.uyuni2 installed)
Source package : Uyuni-Server-release-2023.09-230900.207.8.uyuni3.src
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)

No response

Useful logs

No response

Additional information

No response

@jawahk jawahk added bug Something isn't working P5 labels Apr 23, 2024
@cFabij
Copy link

cFabij commented Apr 24, 2024

Your Uyuni version 2023.09 is very old.

I'd recommend first to update to the recent version. After that please post the /var/log/venv-salt-minion logs from the failed machines.

@jawahk
Copy link
Author

jawahk commented Apr 24, 2024

hope this would help

root@bpawsaigp08:/var/log# cat messages | grep salt
Apr 22 09:43:23 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:25 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/minor/3007.0.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:26 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl stop salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:52 bpawsaigp08 salt-minion: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
Apr 22 09:43:58 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum remove salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:00 bpawsaigp08 yum[3196]: Erased: salt-minion-3007.0-0.x86_64
Apr 22 09:44:02 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=rm -rf /etc/salt/ _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:03 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:04 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/3007.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:05 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:12 bpawsaigp08 yum[3475]: Installed: salt-minion-3007.0-0.x86_64
Apr 22 09:44:50 bpawsaigp08 ansible-ansible.legacy.stat: Invoked with path=/etc/salt/minion.d/uyuni.conf follow=False get_checksum=True checksum_algorithm=sha1 get_md5=False get_mime=True get_attributes=True
Apr 22 09:44:51 bpawsaigp08 ansible-ansible.legacy.copy: Invoked with src=/root/.ansible/tmp/ansible-tmp-1713779090.4094822-2112365-190201219797938/source dest=/etc/salt/minion.d/uyuni.conf _original_basename=uyuni.conf follow=False checksum=3ecbf9a3c520604390b6876a328e1f61b98f19e0 backup=False force=True unsafe_writes=False content=NOT_LOGGING_PARAMETER validate=None directory_mode=None remote_src=None local_follow=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None
Apr 22 09:46:01 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:46:03 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:46:24 bpawsaigp08 systemd: salt-minion.service: main process exited, code=exited, status=77/n/a
Apr 22 09:46:24 bpawsaigp08 systemd: Unit salt-minion.service entered failed state.
Apr 22 09:46:24 bpawsaigp08 systemd: salt-minion.service failed.
Apr 22 09:46:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:46:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:22 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl stop salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:22 bpawsaigp08 salt-minion: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
Apr 23 11:48:27 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum remove salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:30 bpawsaigp08 yum[21707]: Erased: salt-minion-3007.0-0.x86_64
Apr 23 11:48:38 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=rm -rf /etc/salt/ _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:39 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:42 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/3007.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:50 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:48:53 bpawsaigp08 yum[22954]: Installed: salt-minion-3007.0-0.x86_64
Apr 23 11:51:32 bpawsaigp08 ansible-ansible.legacy.stat: Invoked with path=/etc/salt/minion.d/uyuni.conf follow=False get_checksum=True checksum_algorithm=sha1 get_md5=False get_mime=True get_attributes=True
Apr 23 11:51:33 bpawsaigp08 ansible-ansible.legacy.copy: Invoked with src=/root/.ansible/tmp/ansible-tmp-1713873091.6411636-3046636-185191758297053/source dest=/etc/salt/minion.d/uyuni.conf _original_basename=uyuni.conf follow=False checksum=3ecbf9a3c520604390b6876a328e1f61b98f19e0 backup=False force=True unsafe_writes=False content=NOT_LOGGING_PARAMETER validate=None directory_mode=None remote_src=None local_follow=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None
Apr 23 11:52:21 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 23 11:52:23 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
root@bpawsaigp08:/var/log# root@bpawsaigp08:/var/log# cat messages | grep salt
Apr 22 09:43:23 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:25 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/minor/3007.0.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:26 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl stop salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:43:52 bpawsaigp08 salt-minion: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
Apr 22 09:43:58 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum remove salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:00 bpawsaigp08 yum[3196]: Erased: salt-minion-3007.0-0.x86_64
Apr 22 09:44:02 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=rm -rf /etc/salt/ _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:03 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:04 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/3007.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
Apr 22 09:44:05 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: root@bpawsaigp08:/var/log#: No such file or directory
Apr 22 09:44:12 bpawsaigp08 yum[3475]: Installed: salt-minion-3007.0-0.x86_64
Apr 22 09:44:50 bpawsaigp08 ansible-ansible.legacy.stat: Invoked with path=/etc/salt/minion.d/uyuni.conf follow=False get_checksum=True checksum_algorithm=sha1 get_md5=False get_mime=True get_attributes=True
Apr 22 09:44:51 bpawsaigp08 ansible-ansible.legacy.copy: Invoked with src=/root/.ansible/tmp/ansible-tmp-1713779090.4094822-2112365-190201219797938/source dest=/etc/salt/minion.d/uyuni.conf _original_basename=uyuni.conf follow=False checksum=3ecbf9a3c520604390b6876a328e1f61b98f19e0 backup=False force=True unsafe_writes=False content=NOT_LOGGING_PARAMETER validate=None directory_mode=None remote_src=None local_follow=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None
Apr 22 09:46:01 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
root@bpawsaigp08:/var/log# Apr 22 09:43:23 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:43:25 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/minor/3007.0.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:43:26 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
22 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:43:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl stop salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:43:52 bpawsaigp08 salt-minion: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:43:58 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum remove salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:00 bpawsaigp08 yum[3196]: Erased: salt-minion-3007.0-0.x86_64
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:02 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=rm -rf /etc/salt/ _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:03 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:04 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/3007.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:05 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:12 bpawsaigp08 yum[3475]: Installed: salt-minion-3007.0-0.x86_64
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:50 bpawsaigp08 ansible-ansible.legacy.stat: Invoked with path=/etc/salt/minion.d/uyuni.conf follow=False get_checksum=True checksum_algorithm=sha1 get_md5=False get_mime=True get_attributes=True
le/tmp-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:44:51 bpawsaigp08 ansible-ansible.legacy.copy: Invoked with src=/root/.ansible/tmp/ansible-tmp-1713779090.4094822-2112365-190201219797938/source dest=/etc/salt/minion.d/uyuni.conf _original_basename=uyuni.conf follow=False checksum=3ecbf9a3c520604390b6876a328e1f61b98f19e0 backup=False force=True unsafe_writes=False content=NOT_LOGGING_PARAMETER validate=None directory_mode=None remote_src=None local_follow=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:01 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:03 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:24 bpawsaigp08 systemd: salt-minion.service: main process exited, code=exited, status=77/n/a
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:24 bpawsaigp08 systemd: Unit salt-minion.service entered failed state.
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:24 bpawsaigp08 systemd: salt-minion.service failed.
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 22 09:46:52 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:22 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl stop salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:22 bpawsaigp08 salt-minion: The Salt Minion is shutdown. Minion received a SIGTERM. Exited.
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:27 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum remove salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:30 bpawsaigp08 yum[21707]: Erased: salt-minion-3007.0-0.x86_64
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:38 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=rm -rf /etc/salt/ _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:39 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=sudo sudo rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:42 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/3007.repo | sudo tee /etc/yum.repos.d/salt-amzn.repo _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:50 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=yum install salt-minion -y _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:48:53 bpawsaigp08 yum[22954]: Installed: salt-minion-3007.0-0.x86_64
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:51:32 bpawsaigp08 ansible-ansible.legacy.stat: Invoked with path=/etc/salt/minion.d/uyuni.conf follow=False get_checksum=True checksum_algorithm=sha1 get_md5=False get_mime=True get_attributes=True
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:51:33 bpawsaigp08 ansible-ansible.legacy.copy: Invoked with src=/root/.ansible/tmp/ansible-tmp-1713873091.6411636-3046636-185191758297053/source dest=/etc/salt/minion.d/uyuni.conf _original_basename=uyuni.conf follow=False checksum=3ecbf9a3c520604390b6876a328e1f61b98f19e0 backup=False force=True unsafe_writes=False content=NOT_LOGGING_PARAMETER validate=None directory_mode=None remote_src=None local_follow=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:52:21 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl enable salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log# Apr 23 11:52:23 bpawsaigp08 ansible-ansible.legacy.command: Invoked with _raw_params=systemctl start salt-minion _uses_shell=True warn=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None
-bash: Apr: command not found
root@bpawsaigp08:/var/log#

@cFabij
Copy link

cFabij commented Apr 25, 2024

There is an Ansible script running (and failing). It does not install the "normal" venv-salt-minion package.

  • How do you onboard the Uyuni clients?
  • Why don't you use the bootstrap function in Uyuni web UI? (Via Systems > Bootstrapping)

@jawahk
Copy link
Author

jawahk commented Apr 29, 2024

we are running ansible script to install salt and put the conf. file
also using below link to enable the repo for salt
https://docs.saltproject.io/
please help me where I can download the right package

@cFabij
Copy link

cFabij commented Apr 30, 2024

On Uyuni server you need to sync predefined channels, depending on the OS of your potential Uyuni clients: See https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/registration-overview.html

By syncing these common channels Uyuni will create a bootstrap repository with the correct venv-salt-minion package for the respective OS.

After that you can onboard the Uyuni clients, either by using the web UI (https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/registration-webui.html) or with the bootstrap script if you want to automate things (https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/registration-bootstrap.html).

This ensures that the correct conf will be installed and the correct repositories will be linked (note: onboarding with bootstrap script requires manual adaptations).

@jawahk
Copy link
Author

jawahk commented May 3, 2024

Hello @avshiliaev ,

thank you for the information, we are uyuni CLI method of on-boarding which is better for us on mass on-boarding by running the ansible script on multiple hosts. also we found that master has 3006 salt and we installed the same minion version and tested , still the issue is same , any suggestion , I am happy if you get on a call and discuss the same.

@cFabij
Copy link

cFabij commented May 6, 2024

There is a warning on https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/registration-cli.html that CLI bootstrapping will only work with Uyuni's Salt Bundle package or salt-minion from an official SUSE distributions.

That being said: You can use Uyuni's bootstrap script with Ansible to mass onboard clients.

Just make sure to use the correct activation key when you onboard different operating systems (jinja2 template and/or different roles with a when-clause come to mind).

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

No branches or pull requests

2 participants