ITMS 8.1 RU3 - Import Patch Data for Red Hat fails.

book

Article ID: 170598

calendar_today

Updated On:

Products

Patch Management Solution for Linux

Issue/Introduction

 Import Patch Data for Red Hat fails at channel registration with RHN.

Error:
System.InvalidOperationException: REST request failed. Response: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  x-candlepin-request-uuid: f6395e13-4a5e-4c22-ad6f-dc93c8fdb78d
  X-Version: 2.0.43-1
  X-Version: 2.0.43-1
  Transfer-Encoding: chunked
  Date: Mon, 18 Dec 2017 20:22:24 GMT
  Server: Apache-Coyote/1.1
  Content-Type: application/json
}
   at Altiris.PatchManagementCore.Utilities.Rest.RestClient`1.RequestNoRetry[T,TR](RequestType type, String requestUri, TR& reqResult, T reqSendData, HttpResponseHeaders& responseHeaders)
   at Altiris.PatchManagementCore.Utilities.Rest.RestClient`1.Request[T,TR](RequestType type, String requestUri, TR& reqResult, T reqSendData, HttpResponseHeaders& responseHeaders, Int32 numRetries, Int32 retryTimeout)
   at Altiris.PatchManagementLinux.Redhat.Rhsm.RhsmServer.GetSubscriptionList(String ownerId)
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RegisterRhnSystems(Dictionary`2 supportedOs, Dictionary`2& enitlement)
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.ImportChannels()
Please check that valid RHN userName/password are specified.


Error:
Failed to repair certificates, please check that valid RHN userName/password are specified.
REST request failed. Response: StatusCode: 401, ReasonPhrase:
'Unauthorized',
Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  X-Version: 0.9.51.24-1
  Transfer-Encoding: chunked
  Date: Tue, 10 Oct 2017 10:50:57 GMT
  Server: Apache-Coyote/1.1
  WWW-Authenticate: Basic Realm=candlepin
  Content-Type: application/json
}
   [System.InvalidOperationException @ Altiris.PatchManagementCore]
   at Altiris.PatchManagementCore.Utilities.Rest.RestClient`1.RequestNoRetry[T,TR
](RequestType
type, String requestUri, TR& reqResult, T reqSendData,
HttpResponseHeaders& responseHeaders)
   at Altiris.PatchManagementCore.Utilities.Rest.RestClient`1.Request[T,TR]
(RequestType type,
String requestUri, TR& reqResult, T reqSendData,
HttpResponseHeaders& responseHeaders, Int32 numRetries, Int32 retryTimeout)
   at Altiris.PatchManagementLinux.Redhat.Rhsm.RhsmServer.GetOwnerList()
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.ProcessRhnEntitle
ments(Dictionary`2supportedOs, Dictionary`2 resultEnitlement,
OperationProgressIterator progress, RedHatVendorPolicy policy, Boolean&
result, Int32& inNeedSavePolicy)
   atAltiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RegisterRhnSystem
s(Dictionary`2supportedOs, Dictionary`2& entitlement)
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RepairCertificate
s(List`1 channelGuids, Boolean& changed, Boolean force)

Exception logged from:
   at Altiris.PatchManagementCore.Utilities.TaskHelper.HandleTaskException<T>
(String,Exception, T, Int32)
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RepairCertificate
s(System.Collections.Generic.List<System.Guid>,
Boolean&, Boolean)
   at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.OnPreImportPackages()
   at Altiris.PatchManagementLinux.SoftwareRepository.ImportPackages()
   at Altiris.PatchManagementCore.Utilities.TaskHelper.Try<T>
(System.Func<T>,
System.Action<T,Exception>)
   at Altiris.PatchManagementLinux.SoftwareRepository.Import()
   at Altiris.PatchManagementLinux.Redhat.Tasks.RedHatErrataImport.OnExecuteInter
nal(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.PatchManagementLinux.Tasks.BaseImportTask.OnExecute(Altiris.TaskMan
agement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.PatchManagementLinux.Redhat.Tasks.RedHatErrataImport.OnExecute(Alti
ris.TaskManagement.ServerTasks.IServerTaskExecutionInstance)
   at Altiris.TaskManagement.ServerTasks.BaseServerTask.OnExecute(Altiris.TaskManagement.Common.Execution.Engine.ITaskExecutionEngine,
Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance,
Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest)
   at Altiris.TaskManagement.ServerTasks.BaseServerTask.Execute(Altiris.TaskManagement.Common.Execution.Engine.ITaskExecutionEngine,
Altiris.TaskManagement.Common.Data.IBaseTaskExecutionInstance,
Altiris.TaskManagement.Common.Execution.Engine.TaskInstanceRequest)
   at Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread.ExecuteTaskHandler()
   at Altiris.TaskManagement.ServerTasks.ServerTaskExecutionThread.ExecuteTaskHandler()
   at Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread.OnExecute(Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,
    System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, Object, Boolean)
   at  System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart(Object)
User [DOMAIN\AppID], AppDomain [AtrsHost.exe]
","Altiris.PatchManagementCore.Utilities.TaskHelper.HandleTaskException",
"Altiris.PatchManagementCore.dll","385","Warnings"

Cause

Application Program Interface (API) changes implemented by Red Hat.

Environment

ITMS 8.1 RU4. Applicable also for 8.0.

Resolution

The user used for the Red Hat import must be "Organization Administrator" in new Red Hat API and has been resolved in ITMS 8.1 RU4. 

Implement the attached PointFix as it would correlate to the following releases:

  • PM 7.6 HF7: Download and install the attached drop-in PointFix 7.6_HF7_v6_4130581.zip
  • PM 8.0 HF6: Download and install the attached drop-in PointFix 8.0_HF6_v5_4130582.zip

See INFO4767 for other known issues resolved by this PointFix.

NOTE: The RHN user that is being used for the Red Hat Import must accept the EULA to start the import. Otherwise the Red Hat import will fail.

Reference: https://access.redhat.com/solutions/2387831

Attachments

8.0_HF6_v5_4130582.zip get_app
7.6_HF7_v6_4130581.zip get_app