Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEXARL-306] Update prerm script to not disabling and stopping agents if it's an upgrade process #557

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions inbm/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
its status with INBS.
- (NEXMANAGE- 610) Add functionality to INBM Cloudadapter-agent to support OOB AMT RPC command requests from INBS

### Changed
- (NEXARL-306) Update agents' prerm script to prevent them from disabling and stopping if it's an upgrade process

### Fixed
- (NEXMANAGE-746) Add extra sleeptime in INBM tpm script to resolve ARL platform issue
Expand Down
6 changes: 6 additions & 0 deletions inbm/cloudadapter-agent/scripts/before-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ AGENT=inbm-cloudadapter

echo "Running pre-remove steps for ${AGENT} agent..."

# If it is an upgrade, don't stop and disable the agent.
if [ "$1" = "upgrade" ]; then
echo "Upgrade in progress, not stopping or disabling ${AGENT} service."
exit 0
fi

# Stop service
if systemctl is-active ${AGENT} ; then
echo "Stopping ${AGENT} agent."
Expand Down
6 changes: 6 additions & 0 deletions inbm/configuration-agent/scripts/before-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ AGENT=inbm-configuration

echo "Running pre-remove steps for ${AGENT} agent..."

# If it is an upgrade, don't stop and disable the agent.
if [ "$1" = "upgrade" ]; then
echo "Upgrade in progress, not stopping or disabling ${AGENT} service."
exit 0
fi

# Stop service
if systemctl is-active ${AGENT} ; then
echo "Stopping ${AGENT} agent."
Expand Down
6 changes: 6 additions & 0 deletions inbm/diagnostic-agent/scripts/before-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ AGENT=inbm-diagnostic

echo "Running pre-remove steps for ${AGENT} agent..."

# If it is an upgrade, don't stop and disable the agent.
if [ "$1" = "upgrade" ]; then
echo "Upgrade in progress, not stopping or disabling ${AGENT} service."
exit 0
fi

# Stop service
if systemctl is-active ${AGENT} ; then
echo "Stopping ${AGENT} agent."
Expand Down
6 changes: 6 additions & 0 deletions inbm/dispatcher-agent/scripts/before-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ AGENT=inbm-dispatcher

echo "Running pre-remove steps for ${AGENT} agent..."

# If it is an upgrade, don't stop and disable the agent.
if [ "$1" = "upgrade" ]; then
echo "Upgrade in progress, not stopping or disabling ${AGENT} service."
exit 0
fi

# Stop service
if systemctl is-active ${AGENT} ; then
echo "Stopping ${AGENT} agent."
Expand Down
6 changes: 6 additions & 0 deletions inbm/telemetry-agent/scripts/before-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ AGENT=inbm-telemetry

echo "Running pre-remove steps for ${AGENT} agent..."

# If it is an upgrade, don't stop and disable the agent.
if [ "$1" = "upgrade" ]; then
echo "Upgrade in progress, not stopping or disabling ${AGENT} service."
exit 0
fi

# Stop service
if systemctl is-active ${AGENT} ; then
echo "Stopping ${AGENT} agent."
Expand Down