F5Networks / f5-declarative-onboarding

F5 BIG-IP Declarative Onboarding
Apache License 2.0
58 stars 22 forks source link

DO reboots device and resets hostname when simple declaration with DeviceCertificate is used #332

Open simonkowallik opened 1 year ago

simonkowallik commented 1 year ago

Environment

Summary

The BIG-IP system is rebooted when submitting a declaration with DeviceCertificate, similar to https://github.com/F5Networks/f5-declarative-onboarding/blob/30f15cc72e2ea13719834194063c9fdf07430c55/examples/deviceCertificate.json .

A reboot is unnecessary to activate a new device certificate. A simple restart of httpd would be sufficient.

I addition the hostname (sys global-settings hostname) is reset to localhost.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following declaration:
    {
    "schemaVersion": "1.0.0",
    "class": "Device",
    "Common": {
        "class": "Tenant",
        "deviceCertificate": {
            "class": "DeviceCertificate",
            "certificate": {
                "base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkY1IEZBS0UgQ0VSVElGSUNBVEUKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ=="
            },
            "privateKey": {
                "base64": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpGNSBGQUtFIFBSSVZBVEUgS0VZCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t"
            }
        }
    }
    }

Expected Behavior

System does not reboot but restarts httpd. System hostname is not reset.

Actual Behavior

System is rebooted. System hostname is reset.

mdditt2000 commented 1 year ago

Create Jira AUTOTOOL-3579 for tracking and prioritization. Spike to determine if reboot is required