Skip to content

Commit

Permalink
Add Hammer CLI procedure for corrupted content (theforeman#3137)
Browse files Browse the repository at this point in the history
A CLI procedure was needed for repairing corrupted
content on a SmartProxy. There are 3 optional parameters for
repairing corrupted content as well as a global fix.
  • Loading branch information
bangelic authored Jul 19, 2024
1 parent 0c24a6f commit b8d592d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/common/assembly_importing-content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ include::modules/proc_configuring-selinux-to-permit-content-synchronization-on-c

include::modules/proc_recovering-a-corrupted-repository.adoc[leveloffset=+1]

include::modules/proc_recovering-corrupted-content-on-a-smart-proxy.adoc[leveloffset=+1]

include::modules/proc_republishing-repository-metadata.adoc[leveloffset=+1]

include::modules/proc_republishing-content-view-metadata.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[id="Recovering_Corrupted_Content_on_{smart-proxy-context}_{context}"]
= Recovering corrupted content on {SmartProxy}

If the client is unable to consume content from a published repository to which it has a subscription, the content has been corrupted and needs to be repaired.
In case of content corruption on a {SmartProxy}, you can recover it by using the `verify-checksum` command in Hammer CLI.
The `verify-checksum` command can repair content in a content view, lifecycle environment, repository, or all content on {SmartProxy}.
You can track the progress of a command by navigating to *Monitor* > *{Project} Tasks* > *Tasks* and searching for the action *Verify checksum for content on smart proxy*.

.CLI procedure
* To repair content in a content view, run Hammer on your {SmartProxy}:
+
[options="nowrap", subs="+quotes,attributes"]
----
$ {hammer-smart-proxy} content verify-checksum \
--id __My_{smart-proxy-context-titlecase}_ID__ \
--organization-id 1 --content-view-id 3
----
* To repair content in a lifecycle environment, run Hammer on your {SmartProxy}:
+
[options="nowrap", subs="+quotes,attributes"]
----
$ {hammer-smart-proxy} content verify-checksum \
--id __My_{smart-proxy-context-titlecase}_ID__ \
--organization-id 1 --lifecycle-environment-id 1
----
* To repair content in a repository, run Hammer on your {SmartProxy}:
+
[options="nowrap", subs="+quotes,attributes"]
----
$ {hammer-smart-proxy} content verify-checksum \
--id __My_{smart-proxy-context-titlecase}_ID__ \
--organization-id 1 --repository-id 1
----
* To repair all content on {SmartProxy}, run the following command:
+
[options="nowrap", subs="+quotes,attributes"]
----
$ {hammer-smart-proxy} content verify-checksum \
--id __My_{smart-proxy-context-titlecase}_ID__
----

0 comments on commit b8d592d

Please sign in to comment.