Bug 536876 - User cannot install RPM from Repo - NPE in agent log
Summary: User cannot install RPM from Repo - NPE in agent log
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: RHQ Project
Classification: Other
Component: Content
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Corey Welton
URL:
Whiteboard: sprint_2
Depends On:
Blocks: RHQ_CONT_REPO
TreeView+ depends on / blocked
 
Reported: 2009-11-11 16:48 UTC by Corey Welton
Modified: 2010-03-25 02:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-25 02:26:36 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.