Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

deploy redhat-entitlements fails when multiple subscriptions are consumed #90

Closed
johnsimcall opened this issue Oct 7, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@johnsimcall
Copy link

The EL8K at creynold's place had 3x subscriptions. One was a 90-day eval of 3Scale, and the other two were from Employee SKU pools. This resulted in three private keys in the /etc/pki/entitlement directory, and a failure from the playbook.

[core@bastion ~]$ farosctl deploy redhat-entitlements
STEP 1: GATHER RHEL SUBSCRIPTION FROM BASTION HOST
read red hat entitlement certificate
failed: bastion: non-zero return code

Playbook run took 0 days, 0 hours, 0 minutes, 4 seconds



deploy redhat-entitlements Failed


[core@bastion ~]$ sudo cat "$(ls /etc/pki/entitlement/*.pem | grep -v '\-key.pem$')"
sudo cat "$(ls /etc/pki/entitlement/*.pem | grep -v '\-key.pem$')"
cat: '/etc/pki/entitlement/265588096293552222.pem'$'\n''/etc/pki/entitlement/7261187025720366111.pem'$'\n''/etc/pki/entitlement/8612335862172323294.pem': No such file or directory


[core@bastion ~]$ ls /etc/pki/entitlement/*.pem
/etc/pki/entitlement/265588096293552222-key.pem   /etc/pki/entitlement/7261187025720366111.pem
/etc/pki/entitlement/265588096293552222.pem       /etc/pki/entitlement/8612335862172323294-key.pem
/etc/pki/entitlement/7261187025720366111-key.pem  /etc/pki/entitlement/8612335862172323294.pem


[core@bastion ~]$ ls -ltr /etc/pki/entitlement/*.pem
-rw-r--r--. 1 root root  32360 Oct  7 12:18 /etc/pki/entitlement/8612335862172323294.pem
-rw-r--r--. 1 root root   3243 Oct  7 12:18 /etc/pki/entitlement/8612335862172323294-key.pem
-rw-r--r--. 1 root root 146895 Oct  7 12:18 /etc/pki/entitlement/265588096293552222.pem
-rw-r--r--. 1 root root   3243 Oct  7 12:18 /etc/pki/entitlement/265588096293552222-key.pem
-rw-r--r--. 1 root root   3243 Oct  7 12:18 /etc/pki/entitlement/7261187025720366111-key.pem
-rw-r--r--. 1 root root 146891 Oct  7 12:18 /etc/pki/entitlement/7261187025720366111.pem

@rmkraus rmkraus added the bug Something isn't working label Oct 21, 2020
rmkraus added a commit that referenced this issue Oct 30, 2020
This addresses issue #90.

The `deploy redhat-entitlement` automation will now use
subscription manager to find an installed entitlement that supports
CoreOS. The Serial for that entitlement is then used to find the
matching certificate.
@rmkraus rmkraus closed this as completed Nov 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants