Bug 626584
| Summary: | Traceback on pulp-admin package install when you try to install a package that is already on the system. | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-17 16:52:10 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: | 647488 | ||
|
Description
Preethi Thomas
2010-08-23 21:12:29 UTC
This should now report more gracefully and redirect the traceback to client.log
$ sudo pulp-admin -u admin -p admin package install --consumerid=test-consumer -n grinder
Created task id: c3fd0828-e1ff-11df-b211-0023ae793dbc
.........................................
[[u'grinder-0.0.63-1.fc13.noarch']] installed on test-consumer
$ sudo pulp-admin -u admin -p admin package install --consumerid=test-consumer -n grinder
Created task id: 03be7ab3-e200-11df-93e5-0023ae793dbc
.........
Package install failed
client.log:
{
"origin": "5ebff81e-e443-47b7-8d93-54b4a994c0c9",
"version": "0.1",
"sn": "de008620-c601-40b7-82ee-83f1afb2ce31",
"any": "03be7ab3-e200-11df-93e5-0023ae793dbc",
"result": {
"exval": "Traceback (most recent call last):\n\n File \"/home/pkilambi/code/pulp/src/pulp/messaging/dispatcher.py\", line 180, in __call__\n retval = method(*args, **keywords)\n\n File \"/home/pkilambi/code/pulp/src/pulp/client/agent/plugins/remote.py\", line 77, in install\n yb.processTransaction()\n\n File \"/usr/lib/python2.6/site-packages/yum/__init__.py\", line 4167, in processTransaction\n self._doTestTransaction(callback,display=rpmTestDisplay)\n\n File \"/usr/lib/python2.6/site-packages/yum/__init__.py\", line 4266, in _doTestTransaction\n raise Errors.YumTestTransactionError, errstring\n\nYumTestTransactionError: Test Transaction Errors: package grinder-0.0.63-1.fc13.noarch is already installed\n\n"
}
}
Fixed in 0.77. Fixed in build 0.78. verified [root@preethi ~]# pulp-admin -u admin -p redhat package install -n zsh --consumerid=preethi.usersys.redhat.com Created task id: 08798280-ecda-11df-9981-002564a85a58 ............ [[u'zsh-4.3.10-5.fc13.x86_64', u'zsh-4.3.10-5.fc13.x86_64']] installed on preethi.usersys.redhat.com [root@preethi ~]# pulp-admin -u admin -p redhat package install -n zsh --consumerid=preethi.usersys.redhat.com Created task id: 1d3e619c-ecda-11df-a19d-002564a85a58 . Package install failed Closing with community release pulp-0.0.139-1.fc14.noarch |