#7688 ipa-server-upgrade does not store the upgrade state for subCa
Closed: fixed Opened by frenaud.

Issue

ipa-server-upgrade is always calling setup_lightweight_ca_key_retrieval() even if a previous upgrade already did the job.

Steps to Reproduce

  1. run ipa-server-upgrade a first time. The debug log shows: Set up lightweight CA key retrieval
  2. run ipa-server-upgrade a 2nd time. The debug log shows: Set up lightweight CA key retrieval, even though the job was already done.

Expected behavior

The 2nd call should detect that upgrade already prepared the server for lightweight CA key retrieval and skip this part

The issue happens because of a typo in sysupgrade.state. The code is looking for

[dogtag]
setup_lwca_key_retrieval = True

but the file contains

[dogtag]
setup_lwca_key_retieval = True

(Note the missing r in retrieval).

Apparently there is no consequence on the server health, but this typo needs to be fixed.


Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2347

master:

  • 0659ed35025bc0555e42fff71c305c1cd830cf9a ipa-server-upgrade: fix inconsistency in setup_lightweight_ca_key_retrieval

ipa-4-7:

  • d0c503e534143c56f9b3d0036cfdf720f3962802 ipa-server-upgrade: fix inconsistency in setup_lightweight_ca_key_retrieval

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata