[Pulp-list] Group command again

Henri Jubin hjubin27 at yahoo.com
Wed Apr 17 15:34:53 UTC 2013


Dear List (Problem 1)
I am still struggling with the group install management.
I cut the problem in small slices and here is what i catching.
I putting here the stuff that works (expecting that helps on the infrastructure diagnostic) 
and also the one that does not work


- As you requested i updated the code to pulp 2.1.0.0

--- Working stuff ---
Register a system == OK
Bind a consumer with a repo == OK
--- NOT WORKING ---
On the client side : yum repolist displays :
yum repolist
Configuration file /etc/yum/pluginconf.d/rhnplugin.conf not found
Unable to find configuration file for plugin rhnplugin
Loaded plugins: refresh-packagekit, security
https://pulp-srv/pulp/repos/rhel-server-6-2-x86-64-updates-20130308/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
repo id                                     repo name                                    status
rhel-server-6-2-x86-64-updates-20130308     rhel-server-6-2-x86-64-updates-20130308      0
repolist: 0

When running the command :
 wget https://pulp-srv/pulp/repos/rhel-server-6-2-x86-64-updates-20130308/repodata/repomd.xml --no-check-certificate
the file repomd.xml is properly downloaded
--- WORKING AGAIN ---
I checked the /etc/yum.conf and found the proxy clause: Removing this clause makes the command yum repolist OK:
 yum repolist
Configuration file /etc/yum/pluginconf.d/rhnplugin.conf not found
Unable to find configuration file for plugin rhnplugin
Loaded plugins: refresh-packagekit, security
rhel-server-6-2-x86-64-updates-20130308                                 | 2.5 kB     00:00     
rhel-server-6-2-x86-64-updates-20130308/primary_db                      | 2.9 MB     00:00     
repo id                                     repo name                                    status
rhel-server-6-2-x86-64-updates-20130308     rhel-server-6-2-x86-64-updates-20130308      3,741
repolist: 3,741


Then

from the pulp server :
pulp-admin rpm consumer package install run --consumer-id=pulp-cli1 --name=k3b === OK

pulp-admin rpm consumer group members add --group-id=mygroup  --consumer-id=pulp-cli1 === OK

--- NOT WORKING --- (here is supose the following command shoud mimic in some way the consumer repo bind

pulp-admin rpm consumer group bind  --repo-id=rhel-server-6-2-x86-64-updates-20130308 --consumer-group-id=mygroup
An internal error occurred on the Pulp server. More information can be found in
the client log file ~/.pulp/admin.log.

On the client side the command yum repolist gives an empty repo (/etc/pulp.repo empty)
the client logs pulp and gofer dont do anything
On the server side i get in admin.log
===============================================
...
[root at pulp-srv .pulp]# cat admin.log 
2013-04-17 17:21:23,010 - ERROR - Exception occurred:
        href:      /pulp/api/v2/consumer_groups/mygroup/bindings/
        method:    POST
        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/consumer_groups.py", line 314, in POST\n    result = execution.execute_sync_created(self, call_request, link)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/task.py", line 138, in _run\n    result = call(*args, **kwargs)\n']
        data:      {}
 

...
=====================================================================

and the file server_calls.log gives:


======================================================================
...
[root at pulp-srv .pulp]# cat server_calls.log
2013-04-17 17:21:23,006 - INFO - POST request to /pulp/api/v2/consumer_groups/mygroup/bindings/ with parameters {"repo_id": "rhel-server-6-2-x86-64-updates-20130308", "distributor_id": "yum_distributor"}
2013-04-17 17:21:23,007 - INFO - Response status : 500 

2013-04-17 17:21:23,008 - INFO - Response body :
 {
  "exception": [
    "TypeError: bind() takes exactly 6 arguments (4 given)\n"
  ], 
  "traceback": [
    "  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", 
    "  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", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 279, in wsgi\n    result = self.handle_with_processors()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 26, in _handle_with_processors\n    return process(self.processors)\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in process\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 566, in processor\n    return handler()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in <lambda>\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in process\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 581, in processor\n    result = handler()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in <lambda>\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 25, in process\n    return self.handle()\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 230, in handle\n    return self._delegate(fn, self.fvars, args)\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 422, in _delegate\n    return f()\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 430, in <lambda>\n    f = lambda: self._delegate_sub_application(pat, what)\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 455, in _delegate_sub_application\n    return app.handle_with_processors()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 26, in _handle_with_processors\n    return process(self.processors)\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in process\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 566, in processor\n    return handler()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in <lambda>\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in process\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 581, in processor\n    result = handler()\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 23, in <lambda>\n    return p(lambda : process(processors))\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py\", line 25, in process\n    return self.handle()\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 230, in handle\n    return self._delegate(fn, self.fvars, args)\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 405, in _delegate\n    return handle_class(f)\n", 
    "  File \"/usr/lib/python2.6/site-packages/web/application.py\", line 396, in handle_class\n    return tocall(*args)\n", 
    "  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", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumer_groups.py\", line 314, in POST\n    result = execution.execute_sync_created(self, call_request, link)\n", 
    "  File \"/usr/lib/python2.6/site-packages/pulp/server/dispatch/task.py\", line 138, in _run\n    result = call(*args, **kwargs)\n"
  ], 
  "_href": "/pulp/api/v2/consumer_groups/mygroup/bindings/", 
  "error_message": "Unhandled Exception", 
  "http_request_method": "POST", 
  "http_status": 500
}


...
================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20130417/19096ad1/attachment.htm>


More information about the Pulp-list mailing list