[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Removing rpm packages from pulp repository



Yes, seems this is what I need. But when I try this command:

pulp-admin -u admin -p **** orphan list --type puppet

I gen an error in .pulp/admin.log:

2013-06-06 10:23:42,023 - ERROR - Exception occurred:
        href:      /pulp/api/v2/content/orphans/puppet/
        method:    GET
        status:    500
        error:     Unhandled Exception
        traceback: [u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/exception.py",
line 44, in __call__\n    return self.app(environ, start_response)\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/postponed.py",
line 39, in __call__\n    return self.app(environ, start_response)\n',
u'  File "/usr/lib/python2.6/site-packages/web/application.py", line
279, in wsgi\n    result = self.handle_with_processors()\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 26, in _handle_with_processors\n    return
process(self.processors)\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in process\n    return p(lambda : process(processors))\n', u'
 File "/usr/lib/python2.6/site-packages/web/application.py", line 566,
in processor\n    return handler()\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in <lambda>\n    return p(lambda : process(processors))\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in process\n    return p(lambda : process(processors))\n', u'
 File "/usr/lib/python2.6/site-packages/web/application.py", line 581,
in processor\n    result = handler()\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in <lambda>\n    return p(lambda : process(processors))\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 25, in process\n    return self.handle()\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 230, in
handle\n    return self._delegate(fn, self.fvars, args)\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 422, in
_delegate\n    return f()\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 430, in
<lambda>\n    f = lambda: self._delegate_sub_application(pat,
what)\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 455, in
_delegate_sub_application\n    return app.handle_with_processors()\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 26, in _handle_with_processors\n    return
process(self.processors)\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in process\n    return p(lambda : process(processors))\n', u'
 File "/usr/lib/python2.6/site-packages/web/application.py", line 566,
in processor\n    return handler()\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in <lambda>\n    return p(lambda : process(processors))\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in process\n    return p(lambda : process(processors))\n', u'
 File "/usr/lib/python2.6/site-packages/web/application.py", line 581,
in processor\n    result = handler()\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 23, in <lambda>\n    return p(lambda : process(processors))\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py",
line 25, in process\n    return self.handle()\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 230, in
handle\n    return self._delegate(fn, self.fvars, args)\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 405, in
_delegate\n    return handle_class(f)\n', u'  File
"/usr/lib/python2.6/site-packages/web/application.py", line 396, in
handle_class\n    return tocall(*args)\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py",
line 231, in _auth_decorator\n    value = method(self, *args,
**kwargs)\n', u'  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/contents.py",
line 296, in GET\n    orphans =
list(orphan_manager.generate_orphans_by_type_with_unit_keys(content_type))\n',
u'  File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/orphan.py",
line 106, in generate_orphans_by_type_with_unit_keys\n
fields.extend(content_type_definition[\'unit_key\'])\n']
        data:      {}

2013/6/5 Jeff Ortel <jortel redhat com>:
> Once you have removed an rpm from all repositories it becomes an orphan.
> Once orphaned, you can delete the rpm itself (recover the disk space) by
> removing orphans as described here:
> https://pulp-user-guide.readthedocs.org/en/pulp-2.1/admin-client/orphan.html.
>
>
> On 06/05/2013 07:52 AM, Michael Hrivnak wrote:
>>
>> Doing a "node" publish is probably not what you want. See here for an
>> overview of what the node concept is:
>>
>> https://pulp-user-guide.readthedocs.org/en/pulp-2.1/nodes.html
>>
>> And in the mean time, try this publish command:
>>
>> $ pulp-admin rpm repo publish --repo-id in4x-apps
>>
>> Michael
>>
>> ----- Original Message -----
>> From: "Shaymardanov Rushan" <rush ru gmail com>
>> To: pulp-list redhat com
>> Sent: Wednesday, June 5, 2013 5:30:20 AM
>> Subject: [Pulp-list] Removing rpm packages from pulp repository
>>
>> Hello.
>>
>> I'm trying to remove some rpm packages from pulp repository. I've used
>> command:
>>
>> pulp-admin -u admin -p pass rpm repo remove rpm --repo-id=myapps
>> --match 'name=mypackage' --match 'version=0.00.00.10'
>>
>> Then I published repository using command:
>>
>> pulp-admin node repo publish --repo-id in4x-apps
>>
>> Package disappeared from output of rpm repo content command:
>>
>> # pulp-admin -u admin -p pass rpm repo  content rpm --repo-id=myapps
>> --match 'name=mypackage' --match 'version=0.00.00.10'
>>
>> But it still published via http:
>>
>> # ls -l /var/www/pub/http/repos/myapps/mypackage-0.00.00.10-1.noarch.rpm
>> lrwxrwxrwx 1 apache apache 152 May 24 17:29
>> /var/www/pub/http/repos/myapps/mypackage-0.00.00.10-1.noarch.rpm ->
>>
>> /var/lib/pulp/content/rpm/mypackage/0.00.00.10/1/noarch/e67d98cedfc3eca20e2911837032be902dde07a04889843cd78f8e028217b066/mypackage-0.00.00.10-1.noarch.rpm
>>
>> And still uses disk space.
>>
>> How can I completely remove packages from pulp?
>>
>>
>> Rushan Shaymardanov
>>
>> _______________________________________________
>> Pulp-list mailing list
>> Pulp-list redhat com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>>
>> _______________________________________________
>> Pulp-list mailing list
>> Pulp-list redhat com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list redhat com
> https://www.redhat.com/mailman/listinfo/pulp-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]