Bug 784271 - UI remains in processing state even after adding system packages on client node.
Summary: UI remains in processing state even after adding system packages on client node.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Katello
Classification: Retired
Component: Webservice API
Version: 1.X
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Petr Chalupa
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-24 12:29 UTC by Sachin Ghai
Modified: 2015-05-05 01:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 06:56:49 UTC


Attachments (Terms of Use)
Status remains "Adding package"..however package is installed on client node. (63.64 KB, image/png)
2012-01-24 12:31 UTC, Sachin Ghai
no flags Details
production.log when pkg install fails with an index error (9.62 KB, application/octet-stream)
2012-01-24 12:41 UTC, Sachin Ghai
no flags Details
package install complete from UI (45.28 KB, image/png)
2012-04-27 06:56 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2012-01-24 12:29:32 UTC
Description of problem:
I synced a rhel62 repo on katello server and registered a node using rhsm. I subscribed the rhel62 product and was able to fetch the packages via yum.

Later I tried to install packages from UI. Package was installed on the client however status remained same on UI  "Adding Packages".


Version-Release number of selected component (if applicable):
[root@dhcp193-110 ~]# rpm -qa | grep -ie katello-0 -ie pulp-0
katello-0.1.194-1.el6.noarch
katello-glue-pulp-0.1.194-1.el6.noarch
pulp-0.0.261-1.el6.noarch
[root@dhcp193-110 ~]# 


How reproducible:
always with 0.1.194

Steps to Reproduce:
1. sync rhel62
2. registered a node using rhsm
3. subscribed to rhel62
4. install katello-agent on client
5. Trigger add package from UI
  
Actual results:
Package was installed on client however UI remained in "Adding package" state

Expected results:
UI should reflect the status that Add Package is complete. UI shouldn't be in processing state

Additional info:


agent.log says:
==================
2012-01-24 17:39:08,930 [INFO][worker-0] dispatch() @ dispatcher.py:530 - dispatching:{
  "args": [
    [
      "zsh"
    ], 
    false
  ], 
  "auth": {
    "secret": "bd2044f5e147fe6112cc7e8670e39cb1478590e22726be75201eac4c6279f7f1", 
    "pam": null, 
    "uuid": "ea878958-edcc-4e83-9c39-1af2becc51ce"
  }, 
  "classname": "Packages", 
  "kws": {}, 
  "cntr": [
    [], 
    {
      "importkeys": false
    }
  ], 
  "method": "install"
}
2012-01-24 17:39:22,974 [INFO][worker-0] install() @ katelloplugin.py:140 - Packages installed: ['zsh-4.3.10-4.1.el6.x86_64']
2012-01-24 17:39:22,975 [INFO][worker-0] sendreply() @ rmi.py:158 - c8fd0487-0036-4f5a-b0b6-497f072c6e01 processed in: 14.149 (seconds)
^C
[root@dhcp193-155 ca]# rpm -qa | grep zsh
zsh-4.3.10-4.1.el6.x86_64
[root@dhcp193-155 ca]# 


pulp.log on server says:
======================

2012-01-24 17:38:49,016 26820:140123704362752: gofer.rmi.policy:INFO: policy:139 sent (ea878958-edcc-4e83-9c39-1af2becc51ce):
{
  "classname": "Packages", 
  "kws": {}, 
  "args": [
    [
      "zsh"
    ], 
    false
  ], 
  "method": "install", 
  "cntr": [
    [], 
    {
      "importkeys": false
    }
  ]
}
2012-01-24 17:39:03,216 26820:140123704362752: pulp.server.tasking.task:INFO: task:440 Task succeeded: Task 2ac84b1e-4684-11e1-8aba-52540064091a: ConsumerApi.__installpackages(ea878958-edcc-4e83-9c39-1af2becc51ce, ['zsh'], )


Also, please note that I tested this earlier (with 0.1.135) and this status was properly reflecting on UI. Could be a regression.

Comment 1 Sachin Ghai 2012-01-24 12:31:54 UTC
Created attachment 557222 [details]
Status remains "Adding package"..however package is installed on client node.

Comment 2 Sachin Ghai 2012-01-24 12:39:35 UTC
I tried from Cli as well and found this:

katello> system packages --name dhcp193-155.pnq.redhat.com --org ACME_Corporation --env test --install zsh
Performing remote action [ e51ff333-4686-11e1-ab62-52540064091a ]... 
Symbol as array index
katello> 


client.log
==========
[root@dhcp193-110 ~]# tail -n 50 /var/log/katello/client.log 
2012-01-24 17:58:34,726 [ERROR][MainThread] error() @ base.py:342 - error: Symbol as array index
[root@dhcp193-110 ~]#


production.log says:
=====

Started GET "/katello//api/systems/tasks/e51ff333-4686-11e1-ab62-52540064091a" for 127.0.0.1 at Tue Jan 24 17:58:34 +0530 2012
  Processing by Api::SystemsController#task_show as JSON
  Parameters: {"id"=>"e51ff333-4686-11e1-ab62-52540064091a"}
TypeError: Symbol as array index
/usr/share/katello/app/models/system_task.rb:298:in `[]'
/usr/share/katello/app/models/system_task.rb:298:in `packages_change_description'
/usr/share/katello/app/models/system_task.rb:287:in `success_description'
/usr/share/katello/app/models/system_task.rb:269:in `result_description'
<truncate>

Comment 3 Sachin Ghai 2012-01-24 12:41:29 UTC
Created attachment 557223 [details]
production.log when pkg install fails with an index error

Comment 4 Petr Chalupa 2012-04-26 13:17:11 UTC
I was unable to reproduce.  UI and CLI are installing and removing packages without any error.

Tested on versions:
katello-glue-pulp-0.2.30-1.fc16.noarch
katello-0.2.30-1.fc16.noarch
pulp-1.1.4-1.fc16.noarch
rhel62

Can be this bug closed?

Comment 5 Sachin Ghai 2012-04-27 06:54:54 UTC
Yes, I reverified this bug against 0.1.310 build. And the reported issue is no longer reproducible..

No error in production.log and client.log.

---
2012-04-27 06:49:19,361 [INFO][worker-0] dispatch() @ dispatcher.py:530 - dispatching:{
  "args": [
    [
      "zsh"
    ], 
    false
  ], 
  "auth": {
    "secret": "e49836a4ec43bb502b289c8ce9145bd74b887815444a8390edfeafdaefecc55e", 
    "pam": null, 
    "uuid": "b8696d46-8b83-4142-80cf-b37a0cafb987"
  }, 
  "classname": "Packages", 
  "kws": {}, 
  "cntr": [
    [], 
    {
      "importkeys": false
    }
  ], 
  "method": "install"
}
2012-04-27 06:49:25,532 [INFO][worker-0] install() @ katelloplugin.py:176 - Packages installed: {'resolved': [{'epoch': '0', 'version': '4.3.10', 'name': 'zsh', 'release': '4.1.el6', 'arch': 'x86_64', 'qname': 'zsh-4.3.10-4.1.el6.x86_64', 'repoid': 'rhel-6-server-rpms'}], 'deps': []}
2012-04-27 06:49:25,533 [INFO][worker-0] sendreply() @ rmi.py:158 - fc983ab9-9b72-4b9f-aeaa-059513c640ce processed in: 6.218 (seconds)
--

Comment 6 Sachin Ghai 2012-04-27 06:56:11 UTC
Created attachment 580652 [details]
package install complete from UI


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