When re-uploading existing package, an exception is thrown. This exception doesn't contain any information other than a traceback text. I think server should return an error code (and message) instead so client can act properly. sconn = pulp.client.connection.ServicesConnection() sconn.upload(...) This is *text*, not actual exception instance: 500: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 52, in report_error return method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/compat.py", line 40, in _decorator return decorator(*args,**kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 124, in _auth_decorator value = method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/services.py", line 61, in POST return self.ok(papi.upload(data['pkginfo'], data['pkgstream'])) File "/usr/lib/python2.7/site-packages/pulp/server/api/package.py", line 230, in upload raise pae PackageAlreadyExists: Package testpkg-1-1.el5.noarch.rpm Already Exists on the server with checksum [2f77b988b8c85eb7c09832bbe4b5fb9514b1c0231bd4d19936f6c01f3f2b1e3d]; skipping upload.
fixed this as part of upload rewrite.
Build: 0.141
verified [root@preethi ~]# rpm -q pulp pulp-0.0.144-1.fc14.noarch [root@preethi ~]# pulp-admin content upload -r upload2 /root/upload/gofer-0.20-1.fc14.noarch.rpm -v * Starting Package Upload * Performing Package Uploads to Pulp server Package [/root/upload/gofer-0.20-1.fc14.noarch.rpm] is not signed. Please use --nosig. Skipping No applicable content to associate. [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin content upload -r upload2 /root/upload/gofer-0.20-1.fc14.noarch.rpm --nosig -v * Starting Package Upload * Performing Package Uploads to Pulp server Successfully uploaded [gofer-0.20-1.fc14.noarch.rpm] to server * Performing Repo Associations Package association Complete for Repo [upload2]: Packages: gofer-0.20-1.fc14.noarch.rpm Files: None * Content Upload complete. [root@preethi ~]# pulp-admin content upload -r upload2 /root/upload/gofer-0.20-1.fc14.noarch.rpm --nosig -v * Starting Package Upload * Performing Package Uploads to Pulp server Package [gofer-0.20-1.fc14.noarch.rpm] already exists on the server with checksum [37f3605eabbb0ef9fb73f504b84422036e9af17f3d6247d594e610ca2a727df2] * Performing Repo Associations Package association Complete for Repo [upload2]: Packages: gofer-0.20-1.fc14.noarch.rpm Files: None * Content Upload complete.
Closing with Community Release 15 pulp-0.0.223-4.