[Pulp-list] pulp-admin rpm consumer group install .... DOES NOT WORK
Henri Jubin
hjubin27 at yahoo.com
Mon Apr 15 21:08:15 UTC 2013
I am running the standard 2.0 version
Should i try the 2.01 ?
Dear All, Plaese i really need help on this subject : I am supposed to report if pulp is usable for us. The group install package is mandatory. So can you tell me :
- 1 Is this option working
- 2 Did some of you have this option working and how you did it
- How i can diagnose the problem
Here following my last message:
________________________________
From: Henri Jubin <hjubin27 at yahoo.com>
To: "pulp-list at redhat.com" <pulp-list at redhat.com>
Sent: Thursday, March 28, 2013 9:56 AM
Subject: pulp-admin rpm consumer group install .... DOES NOT WORK
Dear All, Hope you can help
Does any one ahve this command working?
- pulp-admin rpm consumer group package install --name=k3b --consumer-group-id=mygroup
I checked the files you mentioned.
In the client side i got a pulp.repo file in /etc/yum.repos.d. As you said the following server side commands
- pulp-admin rpm consumer group unbind --consumer-group-id=mygroup --repo-id=rhel-server-6-2-x86-64
- pulp-admin rpm consumer group members remove --all --group-id=mygroup
- pulp-admin rpm consumer group members add --group-id=mygroup --consumer-id=pulp-cli2
- pulp-admin rpm consumer group bind --consumer-group-id=mygroup --repo-id=rhel-server-6-2-x86-64
Does not
generate any activity on the log files in the client side
The command server side
- pulp-admin rpm consumer group package install --name=k3b --consumer-group-id=mygroup
Generate the following on the client side
/var/log/gofer/agent.log
2013-03-27 16:01:09,972 [INFO][worker-0] dispatch() @ dispatcher.py:646 - request: {'classname': 'Content', 'kws': {}, 'args': [[{'unit_key': {'name': 'k3b'}, 'type_id': 'rpm'}], {'apply': True, 'reboot': False, 'importkeys': False}], 'method': 'install', 'cntr': None}
2013-03-27 16:01:10,292 [INFO][worker-0] sendreply() @ rmi.py:156 - 60f49929-d824-47e9-972b-593a435c7525 processed in: 372 (ms)
the files client side /root/.pulp/consumer.log and /root/.pulp/consumer_server_calls.log remains inactive.
The following command server side works:
- pulp-admin rpm consumer package install run --name=k3b --consumer-id=pulp-cli2
Install task created
with id [4e3b9486-59d2-45be-a795-e3d8b32a25dd]
This command may be exited via ctrl+c without affecting the install.
Refresh Repository Metadata [ OK ]
Install Succeeded
Packages already installed
But the files client side remains empty /root/.pulp/consumer.log and /root/.pulp/consumer_server_calls.log remains empty.
In The server side the logs looks like:
=======================================
Server side i got the logs:
/root/.pulp/admin.log
================
Wed Mar 27 16:36:10 CET 2013
____________________________________________________
____________________________________________________
2013-03-27 16:36:30,055 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in
run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 921, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/consumer_group_package.py", line 82, in run
self.install(consumer_group_id, units, options)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/consumer_group_package.py", line 99, in install
self.process(id, task)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/command.py", line 63, in process
self.succeeded(id, task)
File
"/usr/lib/pulp/admin/extensions/rpm_admin_consumer/consumer_group_package.py", line 107, in succeeded
if not task.result['status']:
KeyError: 'status'
/root/.pulp/server_calls.log
====================
Wed Mar 27 16:36:10 CET 2013
____________________________________________________
____________________________________________________
2013-03-27 16:36:28,887 - INFO - POST request to /pulp/api/v2/consumer_groups/mygroup/actions/content/install/ with parameters {"units": [{"unit_key": {"name": "k3b"}, "type_id": "rpm"}], "options": {"apply": true, "reboot": false, "importkeys": false}}
2013-03-27 16:36:28,888 - INFO - Response status : 202
2013-03-27 16:36:28,891 - INFO - Response body :
{
"task_group_id": null,
"call_request_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"exception": null,
"_href":
"/pulp/api/v2/tasks/c82739c7-7856-45e5-9d3e-f0488a6d29f0/",
"task_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"call_request_tags": [],
"reasons": [],
"start_time": null,
"traceback": null,
"schedule_id": null,
"finish_time": null,
"state": "waiting",
"result": null,
"dependency_failures": {},
"call_request_group_id": null,
"progress": {},
"principal_login": "admin",
"response": "accepted",
"tags": []
}
2013-03-27 16:36:29,238 - INFO - GET request to /pulp/api/v2/tasks/c82739c7-7856-45e5-9d3e-f0488a6d29f0/ with parameters None
2013-03-27 16:36:29,239 - INFO - Response status : 200
2013-03-27 16:36:29,239 - INFO - Response body :
{
"task_group_id": null,
"call_request_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"exception": null,
"_href":
"/pulp/api/v2/tasks/c82739c7-7856-45e5-9d3e-f0488a6d29f0/",
"task_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"call_request_tags": [],
"reasons": [],
"start_time": "2013-03-27T15:36:28Z",
"traceback": null,
"schedule_id": null,
"finish_time": null,
"state": "running",
"result": null,
"dependency_failures": {},
"call_request_group_id": null,
"progress": {},
"principal_login": "admin",
"response": "accepted",
"tags": []
}
2013-03-27 16:36:30,054 - INFO - GET request to /pulp/api/v2/tasks/c82739c7-7856-45e5-9d3e-f0488a6d29f0/ with parameters None
2013-03-27 16:36:30,054 - INFO - Response status : 200
2013-03-27 16:36:30,055 - INFO - Response body :
{
"task_group_id": null,
"call_request_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"exception":
null,
"_href": "/pulp/api/v2/tasks/c82739c7-7856-45e5-9d3e-f0488a6d29f0/",
"task_id": "c82739c7-7856-45e5-9d3e-f0488a6d29f0",
"call_request_tags": [],
"reasons": [],
"start_time": "2013-03-27T15:36:28Z",
"traceback": null,
"schedule_id": null,
"finish_time": "2013-03-27T15:36:29Z",
"state": "finished",
"result": {
"reboot": {
"scheduled": false,
"details": {}
},
"details": {
"rpm": {
"details": {
"resolved": [],
"deps": []
},
"succeeded":
true
}
},
"succeeded": true,
"num_changes": 0
},
"dependency_failures": {},
"call_request_group_id": null,
"progress": {
"steps": [
[
"Refresh Repository Metadata",
true
]
],
"details": {}
},
"principal_login": "admin",
"response": "accepted",
"tags": []
}
/var/log/pulp/pulp.log
================
____________________________________________________
Wed Mar 27 16:36:08 CET 2013
____________________________________________________
____________________________________________________
2013-03-27 16:36:29,412
gofer.rmi.policy:INFO: sent (pulp-cli2):
{'classname': 'Content', 'kws': {}, 'args': ([{'unit_key': {'name': 'k3b'}, 'type_id': 'rpm'}], {'apply': True, 'reboot': False, 'importkeys': False}), 'method': 'install', 'cntr': None}
2013-03-27 16:36:29,419 gofer.rmi.async:INFO: tracking: {'replyto': 'pulp.task;{create:always,node:{type:queue,durable:True,},link:{durable:True,reliability:at-least-once,x-subscribe:{exclusive:True}}}', 'ts': (1364398599.4184799, 1364399189.4184799), 'any': 'c82739c7-7856-45e5-9d3e-f0488a6d29f0', 'idx': 0, 'sn': '5d2d3614-ca7b-4e5e-8174-1709e0e610e8'}
2013-03-27 16:36:29,448 gofer.rmi.async:INFO: 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
2013-03-27 16:36:29,501 gofer.rmi.async:INFO: 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
2013-03-27 16:36:29,503 pulp.server.agent.direct.services:INFO: Task RMI (progress)
Progress
sn : 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
origin :
1444b124-98cb-43a3-8dc5-cb3165956fe4
user data : c82739c7-7856-45e5-9d3e-f0488a6d29f0
total: 0
completed: 0
details: {'steps': [['Refresh Repository Metadata', None]], 'details': {}}
2013-03-27 16:36:29,785 gofer.rmi.async:INFO: 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
2013-03-27 16:36:29,787 pulp.server.agent.direct.services:INFO: Task RMI (progress)
Progress
sn : 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
origin : 1444b124-98cb-43a3-8dc5-cb3165956fe4
user data : c82739c7-7856-45e5-9d3e-f0488a6d29f0
total: 0
completed: 0
details: {'steps': [['Refresh Repository Metadata', True]], 'details': {}}
2013-03-27 16:36:29,979 gofer.rmi.async:INFO: 5d2d3614-ca7b-4e5e-8174-1709e0e610e8
2013-03-27 16:36:29,983 pulp.server.agent.direct.services:INFO: Task RMI (succeeded)
Succeeded
sn :
5d2d3614-ca7b-4e5e-8174-1709e0e610e8
origin : 1444b124-98cb-43a3-8dc5-cb3165956fe4
user data : c82739c7-7856-45e5-9d3e-f0488a6d29f0
retval:
{'details': {'rpm': {'details': {'resolved': [], 'deps': []}, 'succeeded': True}}, 'num_changes': 0, 'succeeded': True, 'reboot': {'scheduled': False, 'details': {}}}
2013-03-27 16:36:29,988 pulp.server.dispatch.task:INFO: SUCCESS: Task c82739c7-7856-45e5-9d3e-f0488a6d29f0: CallRequest: ConsumerGroupManager.install_content(u'mygroup', [{'unit_key': {'name': 'k3b'}, 'type_id': 'rpm'}], {'apply': True, 'reboot': False, 'importkeys': False})
[root at pulp-srv pulp]#
Any ideas Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20130415/0bb615f5/attachment.htm>
More information about the Pulp-list
mailing list