Skip to content
Snippets Groups Projects

rhncheck: change logic to download/merge entitlements instead of content checking

Merged Ben Morrice requested to merge rhnentitlements into master
All threads resolved!

ref: LOS-806

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Resolved by Ben Morrice

      huh?

      [root@lxsoftadm27 ~]# docker run -it --rm --entrypoint /bin/bash -e RHNCHECK_RHN_PASSWORD=nottherealpassword -e RHNCHECK_RHN_USER=cernlinux -e RHNCHECK_ADMIN_EMAIL=morrice@cern.ch -v /mnt/data2/test/rhn_entitlements:/certs gitlab-registry.cern.ch/linuxsupport/cronjobs/reposync/reposync:rhnentitlements 
      [root@16a7895dc597 ~]# python3 rhncheck.py 
      Downloading rhn cert: 5759186182453144048.pem
      Downloading rhn cert: 1855197521497798516.pem
      Downloading rhn cert: 8553203876151413695.pem
      Downloading rhn cert: 873853835035505600.pem
      Downloading rhn cert: 7125330987301522966.pem
      Downloading rhn cert: 8639091646759120436.pem
      Downloading rhn cert: 5977178245112548645.pem
      Downloading rhn cert: 7108672240817901629.pem
      Downloading rhn cert: 340480349624283541.pem
      Downloading rhn cert: 4860816984284972822.pem
      Downloading rhn cert: 5912858557820005621.pem
      Downloading rhn cert: 6221707990878459757.pem
      Downloading rhn cert: 2851424520011526301.pem
      Downloading rhn cert: 4369075770935263473.pem
      Downloading rhn cert: 5886158373456509198.pem
      Downloading rhn cert: 2574189359922386789.pem
      Downloading rhn cert: 6766851507325586715.pem
      Downloading rhn cert: 31489009429636844.pem
      Downloading rhn cert: 5081340502760169736.pem
      Downloading rhn cert: 5428910861553522428.pem
      Downloading rhn cert: 6177333242011130934.pem
      Downloading rhn cert: 493697159505286032.pem
      New certificates detected from RHN, copying them in place and merging to /certs/rhn_entitlements.pem
      [root@16a7895dc597 ~]# ls -la /certs/
      total 1114
      drwxr-xr-x. 2 root root     24 Sep 24 16:16 .
      drwxr-xr-x. 1 root root     42 Sep 24 16:16 ..
      -rw-r--r--. 1 root root   9543 Sep 24 16:16 1855197521497798516.pem
      -rw-r--r--. 1 root root   7178 Sep 24 16:16 2574189359922386789.pem
      -rw-r--r--. 1 root root  26402 Sep 24 16:16 2851424520011526301.pem
      -rw-r--r--. 1 root root  22770 Sep 24 16:16 31489009429636844.pem
      -rw-r--r--. 1 root root  44768 Sep 24 16:16 340480349624283541.pem
      -rw-r--r--. 1 root root  27349 Sep 24 16:16 4369075770935263473.pem
      -rw-r--r--. 1 root root  27349 Sep 24 16:16 4860816984284972822.pem
      -rw-r--r--. 1 root root  13796 Sep 24 16:16 493697159505286032.pem
      -rw-r--r--. 1 root root  26402 Sep 24 16:16 5081340502760169736.pem
      -rw-r--r--. 1 root root  27349 Sep 24 16:16 5428910861553522428.pem
      -rw-r--r--. 1 root root   9543 Sep 24 16:16 5759186182453144048.pem
      -rw-r--r--. 1 root root  44768 Sep 24 16:16 5886158373456509198.pem
      -rw-r--r--. 1 root root  45224 Sep 24 16:16 5912858557820005621.pem
      -rw-r--r--. 1 root root   9543 Sep 24 16:16 5977178245112548645.pem
      -rw-r--r--. 1 root root  45232 Sep 24 16:16 6177333242011130934.pem
      -rw-r--r--. 1 root root  25809 Sep 24 16:16 6221707990878459757.pem
      -rw-r--r--. 1 root root  13796 Sep 24 16:16 6766851507325586715.pem
      -rw-r--r--. 1 root root  13796 Sep 24 16:16 7108672240817901629.pem
      -rw-r--r--. 1 root root  44768 Sep 24 16:16 7125330987301522966.pem
      -rw-r--r--. 1 root root  25809 Sep 24 16:16 8553203876151413695.pem
      -rw-r--r--. 1 root root  25809 Sep 24 16:16 8639091646759120436.pem
      -rw-r--r--. 1 root root  26402 Sep 24 16:16 873853835035505600.pem
      -r--------. 1 root root   7732 Sep 24 16:16 redhat-uep.pem
      -rw-r--r--. 1 root root 563405 Sep 24 16:16 rhn_entitlements.pem
      [root@16a7895dc597 ~]# 
  • Ben Morrice added 1 commit

    added 1 commit

    Compare with previous version

  • Ben Morrice added 1 commit

    added 1 commit

    • 0c031464 - add logic to retry auth to rhsm, and fail gracefully if we cannot

    Compare with previous version

  • Ben Morrice resolved all threads

    resolved all threads

  • Alex Iribarren mentioned in commit a8c8544c

    mentioned in commit a8c8544c

  • Please register or sign in to reply
    Loading