NetAppDocs / cloudinsights

Cloud Insights Documentation
https://docs.netapp.com/us-en/cloudinsights/
5 stars 18 forks source link

added troubleshooting info for reinstall in selinux #2550

Closed pixelchrome closed 2 months ago

pixelchrome commented 2 months ago

If you ever need to un-install and install the AU on a SELinux enabled VM... use these steps (2. is important):

  1. cloudinsights-uninstall.sh -p
  2. semanage fcontext -d -t usr_t "/opt/netapp/cloudinsights(/.*)?"
  3. run the installer snippet from CI

otherwise you will get an error message

The semanage command exists on this system: running semanage and restorecon to set up SELinux context for Cloud Insights Acquisition Unit. ValueError: File context for /opt/netapp/cloudinsights(/.*)? already defined

I've added this info to task_troubleshooting_linux_acquisition_unit_problems.adoc

netapp-alavoie commented 2 months ago

Modified the wording slightly, I believe without changing any of the meaning:

|When Re-Installing the Acquisition Unit, I'm seeing "ValueError: File context for /opt/netapp/cloudinsights(/.*)? already defined".

|On a system with SELinux, This error message may appear after cloudinsights-uninstall.sh -p has been executed and the Acquisition Unit is to be reinstalled. Running the command semanage fcontext -d -t usr_t "/opt/netapp/cloudinsights(/.*)?" should correct the issue and remove the message.

netapp-alavoie commented 2 months ago

Hi Harald! Thanks for suggesting this and creating the PR. I changed the wording a little, but I think I didn't change any meaning here:

|When Re-Installing the Acquisition Unit, I'm seeing "ValueError: File context for /opt/netapp/cloudinsights(/.)? already defined". |On a system with SELinux, This error message may appear after cloudinsights-uninstall.sh -p has been executed and the Acquisition Unit is to be reinstalled. Running the command semanage fcontext -d -t usr_t "/opt/netapp/cloudinsights(/.)?" should correct the issue and remove the message.

I commented this in the PR and will proceed with publishing. Let me know if I have to pull the PR out to change any meaning.

-Tony

From: Harald Dumdey @.> Sent: Tuesday, April 23, 2024 11:31 AM To: NetAppDocs/cloudinsights @.> Cc: Subscribed @.***> Subject: [NetAppDocs/cloudinsights] added troubleshooting info for reinstall in selinux (PR #2550)

EXTERNAL EMAIL - USE CAUTION when clicking links or attachments

If you ever need to un-install and install the AU on a SELinux enabled VM... use these steps (2. is important):

  1. cloudinsights-uninstall.sh -p
  2. semanage fcontext -d -t usr_t "/opt/netapp/cloudinsights(/.*)?"
  3. run the installer snippet from CI

otherwise you will get an error message

The semanage command exists on this system: running semanage and restorecon to set up SELinux context for Cloud Insights Acquisition Unit. ValueError: File context for /opt/netapp/cloudinsights(/.*)? already defined

I've added this info to task_troubleshooting_linux_acquisition_unit_problems.adoc


You can view, comment on, or merge this pull request online at:

https://github.com/NetAppDocs/cloudinsights/pull/2550

Commit Summary

File Changes

(2 fileshttps://github.com/NetAppDocs/cloudinsights/pull/2550/files)

Patch Links:

- Reply to this email directly, view it on GitHubhttps://github.com/NetAppDocs/cloudinsights/pull/2550, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJQ3A3WBB4IGISF4RHNYO6LY6Z5CBAVCNFSM6AAAAABGVFXOVOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TSMJYGAZTONA. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>