Bug 536876

Summary: User cannot install RPM from Repo - NPE in agent log
Product: [Other] RHQ Project Reporter: Corey Welton <cwelton>
Component: ContentAssignee: John Matthews <jmatthew>
Status: CLOSED WORKSFORME QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jmatthew
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: sprint_2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-25 02:26:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 538145    

Description Corey Welton 2009-11-11 16:48:24 UTC
Description of problem:
If user attempts to install an RPM from a repo, NPE results in agent log and nothing is installed -- fails immediately.


Version-Release number of selected component (if applicable):


How reproducible:

Every time

Steps to Reproduce:
1. Sync a CP,
2. create a Repo and associate it with CP
3. Associate RHEL box with Repo. 
4. Attempt to install RPM 
  
Actual results:
NPE:

2009-11-05 15:28:35,854 ERROR [ResourceContainer.invoker.nonDaemon-3] (org.rhq.plugins.platform.LinuxPlatformComponent)- Install packages failed
java.lang.NullPointerException
	at org.rhq.plugins.platform.content.yum.YumProxy.execute(YumProxy.java:160)
	at org.rhq.plugins.platform.content.yum.YumProxy.install(YumProxy.java:95)
	at org.rhq.plugins.platform.LinuxPlatformComponent.deployPackages(LinuxPlatformComponent.java:263)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
	at java.lang.Thread.run(Thread.java:619)

Expected results:

User can install package from repo.

Additional info:

Comment 1 Corey Welton 2009-11-12 16:30:09 UTC
dev -> pkilambi

Comment 2 John Matthews 2009-12-07 21:04:43 UTC
This has been fixed with work done during Sprint #3.  

The issue was related to RHN Hosted plugin not passing in "metadata".  RHQ was expecting a gzipped blob of xml package metadata, this metadata is later pulled from the DB and put together to form a primary.xml file for yum.

Marking as "MODIFIED" state until we have clear direction on what state this should be.

Comment 3 Corey Welton 2010-03-25 02:26:36 UTC
QA Closing -- essentially untestable.