Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    ewenf-uindy
    @ewenf-uindy
    I'm in the weeds now. Why do I get a notification that says 'State apply failed' any time I add a client?
    ahh, there it is, a package is failing to install.
    ewenf-uindy
    @ewenf-uindy
    warning: /var/cache/yum/x86_64/7/susemanager:centos7-uyuni-client-devel-x86_64/packages/golang-github-prometheus-node_exporter-0.18.1-6.2.uyuni.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0d20833e: NOKEY
    Public key for golang-github-prometheus-node_exporter-0.18.1-6.2.uyuni.x86_64.rpm is not installed
      Public key for golang-github-prometheus-node_exporter-0.18.1-6.2.uyuni.x86_64.rpm is not installed
    any idea how to get around this?
    suhailsid
    @suhailsid
    hello team
    i done these steps and now my spacewalk not starting
    zypper addrepo https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/Patches/openSUSE_Leap_15.2/systemsmanagement:Uyuni:Stable:Patches.repo
    zypper refresh
    spacewalk-service stop
    zypper update spacewalk-java-lib spacewalk-java spacewalk-java-config spacewalk-java-postgresql spacewalk-taskomatic spacewalk-admin spacewalk-setup salt-netapi-client spacewalk-service start
    ● taskomatic.service - Taskomatic
    Loaded: loaded (/usr/lib/systemd/system/taskomatic.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/taskomatic.service.d
    └─override.conf
    Active: failed (Result: exit-code) since Fri 2020-09-18 09:50:08 EEST; 47min ago
    Process: 8439 ExecStart=/usr/sbin/taskomatic (code=exited, status=255)
    Main PID: 8439 (code=exited, status=255)
    @suhailsid please review logs at /var/log/rhn and the output of journald, and open a github issue so @mateiw can have a look
    suhailsid
    @suhailsid
    ok
    Julio González Gil
    @juliogonzalez
    or maybe not matei, we'll see when the bug is ready
    ewenf-uindy
    @ewenf-uindy
    @juliogonzalez thank you for that, stupid mistake on my part. It moved past that error but I am still getting the 'state apply failed'.
    Now I am getting the error "----------
    ID: disable_spacewalksd
    Function: service.dead
    Name: rhnsd
    Result: false
    Comment: Failed to get information on unit 'rhnsd'
    Started: 07:54:40.980252
    Duration: 33.789
    SLS: services.salt-minion
    Changed: {}"
    oddly enough when I try to check the status of rhnsd it tells me access denied, when I am logged in as root
    jkinning
    @jkinning
    What it the best method to migrate hosts from Spacewalk to Uyuni?
    ewenf-uindy
    @ewenf-uindy
    i use this in my bootstrap.sh

    echo "Removing spacwalk-client"
    rpm -e rhncfg-management python2-rhncfg-management rhn-client-tools rhn-setup python2-rhn-client-tools rhn-check yum-rhn-plugin python2-rhn-setup python2-rhn-check rhnsd python2-rhncfg python2-osad rhncfg osad rhncfg-client rhncfg-actions python2-spacewalk-usix spacewalk-usix rhncfg-actions rhncfg-client python2-rhncfg-client python2-rhncfg-actions jabberpy osad python2-osa-common

    systemctl stop osad

    echo "Cleaning yum cache"
    yum clean all

    Rebuild uuid since vms were cloned and causes issue with registration.

    rm -f /etc/machine-id
    rm -f /var/lib/dbus/machine-id
    dbus-uuidgen --ensure
    systemd-machine-id-setup

    jkinning
    @jkinning
    Where do you place that? Anywhere above the line DO NOT EDIT BEYOND THIS POINT
    ewenf-uindy
    @ewenf-uindy
    after the do not edit
    unless you have a cloned machines you may not need the machine-id bit
    salt doesn't like machines with the same uuid
    Robert Paschedag
    @rpasche
    Just so a registration on the uyuni server. The traditional stack will be removed by the bootstrap script.
    jkinning
    @jkinning
    I also made an update to the activation key for my CentOS 7 server. I added a group to join but when I run my bootstrap script on the host it doesn't join in Uyuni. Do I need to do something else after I update the activation key within the UI so it gets applied by the bootstrap script?
    jkinning
    @jkinning
    In addition I am also having issues with the various CentOS 6 and CentOS 7 Uyuni Client tools. I have the packages but when I try to update a client that has some spacewalk and zeromq updates I get the message "Public key for python-zmq-14.5.0-2.3.uynni.x86_64.rpm is not installed" How do I get the client key installed so I can update these but if I am using Salt do I need this channel to begin with?
    about using bootstrap script, remember you need to "accept" the client on the server
    since the server doesn't know anything about the new client, it doesn't trust it until you accept the key from the client
    I am talking about salt clients
    you could also configure salt to autoaccept keys, but that's dangerous
    you can accept the keys via webui, left menu -> salt -> keys
    or via CLI as well
    jkinning
    @jkinning
    Ok, so I don't need to have ORG_GPG_KEY=RHN-ORG-TRUSTED-SSL-CERT in my bootstrap file. I should have uyuni-gpg-pubkey-0d20833e.key is there a way to update the current machines I have deployed or do I just re-run the bootstrap script on them? I have the clients appearing in the UI but it is when they try and get packages is when I see that Public key error message. Running command from Salt, which is awesome by the way, works as well.
    jkinning
    @jkinning
    OK, I added those and it now works. However, I am back to trying to figure out how I can update my current registered machines or do I remove them and re-run the bootstrap script on them?
    Julio González Gil
    @juliogonzalez
    personally, I'd create a salt state to import the key, and then I'd apply it to all instances
    or as an alternative, you could also run a salt command to do it, by getting the GPG key from the server, then importing it with rpm
    the GPG key is at /pub at the server
    about ORG_GPG_KEY, do not remove what's there, add the new uyuni gpg key, the variable can have several values separated by ,
    I think the doc should get an update to make this more clear, and maybe the bootstrap script generator as well (if it's not on the comments there)
    jkinning
    @jkinning
    Thanks I was able to run it through the salt command UI to import those keys.
    igorgolm
    @igorgolm
    Hi, does anybody tried to configure LDAP authentication for Uyuni?
    I found this manual https://www.uyuni-project.org/uyuni-docs/uyuni/administration/auth-methods-pam.html - but where I should configure LDAP server etc ?
    Shirocco88
    @Shirocco88
    If you want to configure Uyuni "Authentication With PAM",
    then you have to install pam_ldap
    und configure "pam_ldap" by yast2
    jkinning
    @jkinning
    I originally added a custom repo for Oracle Linux UEK, http://yum.oracle.com/repo/OracleLinux/OL8/UEKR6/x86_64, and set it up to update a 1am EST everyday. I keep getting emails that this fails. RepoMDError: Cannot access repository. Maybe repository GPG keys are not imported. If I run the spacewalk-repo-sync from the uyuni server terminal I see the message about the repomd.xml is unsigned, continue? I select yes and it works. I have been hunting around trying to figure out how I can fix this or what GPG keys I need to import to allow this to just work?
    Julio González Gil
    @juliogonzalez
    the thing is that the repo seems to be unsigned, so doesn't seem you need any keys imported, if so it should be configured that way at Uyuni and I think it should work
    you should be able to configure that from the UI
    for the channel where the repo is enabled, there's a Enable GPG Check that probably is checked in your case
    jkinning
    @jkinning
    I am experimenting with all the various Linux distributions uyuni handles. This is an amazing project! I was going to try and add the Ksplice channels from Oracle's ULN and have modified the /etc/rhn/spacewalk-repo-sync/uln.conf with proper ULN credentials. When I try to create the repo by adding a label - Oracle Ksplice OL 8 and the URL - uln:///ol8_x64_ksplice and change the Repository type to uln within the UI I get a message that says "The given url is invalid. Please enter an url with valid syntax (e.g. specify protocol). I was follwing Oracle's guide https://docs.oracle.com/en/operating-systems/oracle-linux/ksplice-user/ol_ksabout.html#ksplice_swkmirror but not sure it that was specific for their Spacewalk version or if uyuni can sync with ULN. I also have filters applied -uptrack-updates-4.14.35-*
    ewenf-uindy
    @ewenf-uindy
    OL is nothing but a pain in the pooper, I've got to go in and create repos for our databases that OL uses
    Julio González Gil
    @juliogonzalez
    @jkinning on paper Uyuni should be able to handle it, but the problem is that we don't have access to ULN to actually test it and fix problems
    jkinning
    @jkinning
    Gotcha... good to know.