Issue #576
closedRepo group publish via cli fails with NoneType error
Description
Description of problem:
- pulp-admin -u admin -p admin repo group list
----------------------------------------------------------------------
Repository Groups
--------------------------------------------------------------------
Id: test-group
Display Name: None
Description: None
Repo Ids: arthur
Notes:
pulp-admin -u admin -p admin rpm repo group export run --group-id test-group
----------------------------------------------------------------------
Exporting Repository Group [test-group]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Task Failed
'NoneType' object has no attribute 'startswith'
From the logs:
2014-10-10 14:42:40,787 - INFO - POST request to /pulp/api/v2/repo_groups/test-group/actions/publish/ with parameters {"override_config": {"export_dir": null, "end_date": null, "iso_size": n
ull, "https": false, "http": false, "iso_prefix": null, "start_date": null}, "id": "886126bf-4012-4ac0-aa55-0088e4fbebf9"}
2014-10-10 14:42:40,788 - INFO - Response status : 202
2014-10-10 14:42:40,789 - INFO - Response body :
{
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/5fe36f2b-7589-4332-871e-f4e4c5c60887/",
"task_id": "5fe36f2b-7589-4332-871e-f4e4c5c60887"
}
],
"result": null,
"error": null
}
2014-10-10 14:42:42,001 - INFO - GET request to /pulp/api/v2/tasks/5fe36f2b-7589-4332-871e-f4e4c5c60887/ with parameters None
2014-10-10 14:42:42,002 - INFO - Response status : 200
2014-10-10 14:42:42,005 - INFO - Response body :
{
"exception": null,
"task_type": "pulp.server.managers.repo.group.publish.publish",
"_href": "/pulp/api/v2/tasks/5fe36f2b-7589-4332-871e-f4e4c5c60887/",
"task_id": "5fe36f2b-7589-4332-871e-f4e4c5c60887",
"tags": [
"pulp:repository_group:test-group",
"pulp:repository_group_distributor:886126bf-4012-4ac0-aa55-0088e4fbebf9",
"pulp:action:publish"
],
"finish_time": "2014-10-10T14:42:40Z",
"_ns": "task_status",
"start_time": "2014-10-10T14:42:40Z",
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 315, in call\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in protected_call\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py\", line 73, in publish\n RepoGroupPublishManager._do_publish(transfer_group, distributor_id, distributor_instance,\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/group/publish.py\", line 85, in _do_publish\n try:\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/export_distributor/groupdistributor.py\", line 104, in publish_group\n valid_config, msg = export_utils.validate_export_config(config)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/export_distributor/export_utils.py\", line 108, in validate_export_config\n if not os.path.isabs(export_dir):\n File \"/usr/lib64/python2.7/posixpath.py\", line 61, in isabs\n return s.startswith('/')\nAttributeError: 'NoneType' object has no attribute 'startswith'\n",
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-0@ec2-54-220-83-236.eu-west-1.compute.amazonaws.com.dq",
"state": "error",
"result": null,
"error": {
"code": "PLP0000",
"data": {},
"description": "'NoneType' object has no attribute 'startswith'",
"sub_errors": []
},
"_id": {
"$oid": "5437f060960e2e295138b7a3"
},
"id": "5437f060458fb16123b083ef"
}
Version-Release number of selected component (if applicable):
pulp-2.5.0-0.7.beta
How reproducible:
always
Steps to Reproduce:
1.
2.
3.
Actual results:
repo group publish fails
Expected results:
repo group published with success
Additional info:
+ This bug was cloned from Bugzilla Bug #1151490 +