forked from theforeman/foreman-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Hammer CLI procedure for corrupted content (theforeman#3137)
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
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
guides/common/modules/proc_recovering-corrupted-content-on-a-smart-proxy.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ | ||
---- |