Bug 679118 - package install fails and tracebacks
Summary: package install fails and tracebacks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: Sprint 21
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-21 16:26 UTC by dgao
Modified: 2014-03-31 01:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:10:31 UTC
Embargoed:


Attachments (Terms of Use)

Description dgao 2011-02-21 16:26:16 UTC
[root@pulp-nightly ~]# pulp-admin repo create --id=foo
Successfully created repository [ foo ]


[root@pulp-nightly ~]# pulp-admin package upload --repoid=foo /tmp/patb-0.1-1.x86_64.rpm 
* Starting Package Upload operation. See /var/log/pulp/client.log for more verbose output

* Performing Package Uploads to Pulp server

* Performing Repo Associations 

* Package Upload complete.

[root@pulp-nightly ~]# pulp-client -u admin -p admin consumer create --id=fred
warning: this client is not registered; please register to continue
Successfully created consumer [ fred ]

[root@pulp-nightly ~]# pulp-client consumer bind --repoid=foo
Successfully subscribed consumer [fred] to repo [foo]

[root@pulp-nightly ~]# pulp-admin package install -n patb --consumerid=fred
Created task id: 448ef6a6-3dd4-11e0-8409-5452004fdd6d
Task is scheduled for: 2011-02-21 11:04
.Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 149, in <module>
    admin.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 137, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 224, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/package.py", line 113, in run
    status = self.consumer_api.task_status(spath)
AttributeError: 'ConsumerAPI' object has no attribute 'task_status'


Looks like task_status api call was moved the webservice layer.

Comment 1 Jeff Ortel 2011-02-21 21:14:23 UTC
task_status() on base connection class not accounted for during last client connections classes refactoring.  Added to PulpAPI.  Also, RepositoryAPI.sync_status() replace with PulpAPI.task_status().

commit: 2217bbfc50fb9e981de88291418e363b33efa70d

Comment 2 Jeff Ortel 2011-02-22 14:34:25 UTC
Build: 0.140

Comment 3 Preethi Thomas 2011-02-22 15:49:50 UTC
[root@preethi upload]# rpm -q pulp
pulp-0.0.140-1.fc14.noarch

[root@preethi ~]# pulp-admin package install -n zsh --consumerid=pulp-client
Created task id: a70052c2-3e99-11e0-9858-002564a85a58
Task is scheduled for: 2011-02-22 10:37
...
[[['zsh-4.3.10-5.fc14.x86_64', 'zsh-4.3.10-5.fc14.x86_64'], None]] installed on pulp-client

Comment 4 Preethi Thomas 2011-08-16 12:10:31 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:29 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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