Actions
Issue #1011
closedCannot install content on the consumer group
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.7.0 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
An exception is raised during install/update/uninstall package on the consumer group.
Meanwhile install/update/uninstall package on the consumer works as expected.
# pulp-admin -u admin -p admin rpm consumer group package install --name zsh --consumer-group-id xxx
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apache's log.
[root@ec2-54-216-157-158 ~]# pulp-admin -u admin -p admin -vv rpm consumer group package install --name zsh --consumer-group-id xxx
2015-05-28 14:16:01,151 - DEBUG - sending POST request to /pulp/api/v2/consumer_groups/xxx/actions/content/install/
2015-05-28 14:16:01,713 - INFO - POST request to /pulp/api/v2/consumer_groups/xxx/actions/content/install/ with parameters {"units": [{"unit_key": {"name": "zsh"}, "type_id": "rpm"}], "options": {"apply": true, "reboot": false, "importkeys": false}}
2015-05-28 14:16:01,714 - INFO - Response status : 500
2015-05-28 14:16:01,714 - INFO - Response body :
"<h1>Server Error (500)</h1>"
2015-05-28 14:16:01,714 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/client/extensions/core.py", line 474, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.7/site-packages/pulp/client/extensions/extensions.py", line 210, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/python2.7/site-packages/pulp_rpm/extensions/admin/rpm_admin_consumer/consumer_group_package.py", line 84, in run
self.install(consumer_group_id, units, options, kwargs)
File "/usr/lib/python2.7/site-packages/pulp_rpm/extensions/admin/rpm_admin_consumer/consumer_group_package.py", line 91, in install
consumer_group_id, units=units, options=options)
File "/usr/lib/python2.7/site-packages/pulp/bindings/consumer_groups.py", line 221, in install
return self.server.POST(path, data)
File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 97, in POST
return self._request('POST', path, body=body, ensure_encoding=ensure_encoding)
File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 151, in _request
self._handle_exceptions(response_code, response_body)
File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 187, in _handle_exceptions
raise exceptions.ApacheServerException(response_body)
ApacheServerException
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apache's log.
# pulp-admin -u admin -p admin -vv rpm consumer package install run --name zsh --consumer-id c1
2015-05-28 14:16:38,855 - DEBUG - sending POST request to /pulp/api/v2/consumers/c1/actions/content/install/
2015-05-28 14:16:39,097 - INFO - POST request to /pulp/api/v2/consumers/c1/actions/content/install/ with parameters {"units": [{"unit_key": {"name": "zsh"}, "type_id": "rpm"}], "options": {"apply": true, "reboot": false, "importkeys": false}}
2015-05-28 14:16:39,097 - INFO - Response status : 202
2015-05-28 14:16:39,098 - INFO - Response body :
{
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/68cc85b6-3381-45f7-a1c1-ec97fc9e506f/",
"task_id": "68cc85b6-3381-45f7-a1c1-ec97fc9e506f"
}
],
"result": null,
"error": null
}
Install task created with id [ 68cc85b6-3381-45f7-a1c1-ec97fc9e506f ]
This command may be exited via ctrl+c without affecting the request.
Actions
Add support for parsing TaskStatus objects to the TaskResult object
fixes #1011