Red Hat PMImport failed to download

book

Article ID: 170343

calendar_today

Updated On:

Products

Patch Management Solution for Windows

Issue/Introduction

Opened the Console > Home > Patch Management Solution > Red Hat Linux segment; under Settings, MetaData Import Task fro Red Hat. Scheduled the task to execute and found the process failed.

This issue currently causing Red Hat Patch Management to be non-functional for all versions of Altiris Patch Management product.

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: 

[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.ProcessRhnEntitlements(Dictionary`2 supportedOs, Dictionary`2 resultEnitlement, 
OperationProgressIterator progress, RedHatVendorPolicy policy, Boolean& result, Int32& inNeedSavePolicy) 
at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RegisterRhnSystems(Dictionary`2 supportedOs, Dictionary`2& entitlement) 
at Altiris.PatchManagementLinux.Redhat.RhnSoftwareRepository.RepairCertificates(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.RepairCertificates(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.OnExecuteInternal(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance) 
at Altiris.PatchManagementLinux.Tasks.BaseImportTask.OnExecute(Altiris.TaskManagement.ServerTasks.IServerTaskExecutionInstance) 
at Altiris.PatchManagementLinux.Redhat.Tasks.RedHatErrataImport.OnExecute(Altiris.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) 

Cause

Appears recent changes made by Red Hat has caused this issue.

Environment

Patch Management 7.5.x, 7.6.x and 8.x

Resolution

This issue has been addressed under ITMS 8.1 RU4

Please refer to TECH248341 for pointfixes on versions 7.6 and 8.0