Skip to content

HDDS-11194. OM missing audit log for upgrade prepare, cancel and finalize - #6958

Merged
devmadhuu merged 1 commit into
apache:masterfrom
sumitagrawl:HDDS-11194
Jul 18, 2024
Merged

HDDS-11194. OM missing audit log for upgrade prepare, cancel and finalize#6958
devmadhuu merged 1 commit into
apache:masterfrom
sumitagrawl:HDDS-11194

Conversation

@sumitagrawl

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Audit log is added for upgrade prepare, cancel and finalize as this was missing. Since this is user request, this also needs logged.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-11194

How was this patch tested?

  • added testcase for audit log generation

@devmadhuudevmadhuu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sumitagrawl for working on this patch. Changes looks good. Just a few minor comments.

}
}

auditLog(auditLogger, buildAuditMessage(OMAction.UPGRADE_PREPARE,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add transactionLogIndex and OMNodeId in auditMap as an additional info for audit message ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TermIndex will be handled as part of "HDDS-10658. Add Object ID and Update ID to OM audit log messages" when this is merged implicitly.
OMNodeId is not required as audit-log is per node itself. There is no need for same.

}

auditLog(auditLogger, buildAuditMessage(OMAction.UPGRADE_FINALIZE,
new HashMap<>(), exception, userInfo));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add termIndex in auditMap as an additional info for audit message ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TermIndex will be handled as part of "HDDS-10658. Add Object ID and Update ID to OM audit log messages" when this is merged.

}

auditLog(auditLogger, buildAuditMessage(OMAction.UPGRADE_CANCEL,
new HashMap<>(), exception, userInfo));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add OMNodeId and termIndex in auditMap as an additional info for audit message ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TermIndex will be handled as part of "HDDS-10658. Add Object ID and Update ID to OM audit log messages" when this is merged.
OMNodeId is not required as audit-log is per node itself. There is no need for same.

@dombizitadombizita changed the title HDDS-11194. OM missing audit log for upgradeHDDS-11194. OM missing audit log for upgrade prepare, cancel and finalizeJul 17, 2024

@devmadhuudevmadhuu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sumitagrawl for the clarification. LGTM +1

@devmadhuu

Copy link
Copy Markdown
Contributor

Thanks @sumitagrawl for the patch.

@devmadhuu
devmadhuu merged commit dbb3047 into apache:masterJul 18, 2024
errose28 added a commit to errose28/ozone that referenced this pull request Jul 30, 2024
…-delete
* HDDS-10239-container-reconciliation: (184 commits)
HDDS-10373. Implement framework for capturing Merkle Tree Metrics. (apache#6864)
HDDS-11188. Initial setup for new UI layout and enable users to switch to new UI (apache#6953)
HDDS-11120. Rich rebalancing status info (apache#6911)
HDDS-11187. Fix Event Handling in Recon OMDBUpdatesHandler to Prevent ClassCastException. (apache#6950)
HDDS-11213. Bump commons-daemon to 1.4.0 (apache#6971)
HDDS-11212. Bump commons-net to 3.11.1 (apache#6973)
HDDS-11211. Bump assertj-core to 3.26.3 (apache#6972)
HDDS-11210. Bump log4j2 to 2.23.1 (apache#6970)
HDDS-11150. Recon Overview page crashes due to failed API Calls (apache#6944)
HDDS-11183. Keys from DeletedTable and DeletedDirTable of AOS should be deleted on batch operation while creating a snapshot (apache#6946)
HDDS-11198. Fix Typescript configs for Recon (apache#6961)
HDDS-11180. Simplify HttpServer2#inferMimeType return statement (apache#6963)
HDDS-11194. OM missing audit log for upgrade (apache#6958)
HDDS-10389. Implement a search feature for users to locate open keys within the Open Keys Insights section. (apache#6231)
HDDS-10561. Dashboard for delete key metrics (apache#6948)
HDDS-11192. Increase SPNEGO URL test coverage (apache#6956)
HDDS-11179. DBConfigFromFile#readFromFile result of toIOException not thrown (apache#6957)
HDDS-11186. First container log missing from bundle (apache#6952)
HDDS-10844. Clarify snapshot create error message. (apache#6955)
HDDS-11166. Switch to Rocky Linux-based ozone-runner (apache#6942)
...
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sumitagrawl@devmadhuu