Project

Profile

Help

Issue #576

closed

Repo group publish via cli fails with NoneType error

Added by ipanova@redhat.com about 9 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.5
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:

  1. 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": "",
"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 +

Actions #2

Updated by cduryee about 9 years ago

fixed in pulp 2.6.0-0.2.beta

+ This comment was cloned from Bugzilla #1151490 comment 2 +

Actions #3

Updated by igulina@redhat.com about 9 years ago

rpm -qa | grep pulp-server

pulp-server-2.6.0-0.2.beta.fc20.noarch

pulp-admin rpm repo create --repo-id genka --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/dog-4.23-1.noarch.rpm

Successfully created repository [genka]

pulp-admin repo group create --group-id gena-group

Repository Group [gena-group] successfully created

pulp-admin rpm repo create --repo-id genka2

Successfully created repository [genka2]

pulp-admin repo group members add --group-id gena-group --repo-id genka2 --repo-id genka

Successfully added members to repository group [gena-group]

pulp-admin repo group list

--------------------------------------------------------------------
Repository Groups
--------------------------------------------------------------------

Id: gena-group
Display Name: None
Description: None
Repo Ids: genka2, genka
Notes:

pulp-admin rpm repo group export run --group-id gena-group

--------------------------------------------------------------------
Exporting Repository Group [gena-group]
--------------------------------------------------------------------

This command may be exited via ctrl+c without affecting the request.

Exporting Repo: genka2
[-]
... completed

Exporting Repo: genka
[-]
... completed

Exporting ISO
[-]
... completed

Task Succeeded

+ This comment was cloned from Bugzilla #1151490 comment 3 +

Actions #4

Updated by bmbouter almost 9 years ago

  • Severity changed from High to 3. High
Actions #5

Updated by rbarlow almost 9 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #7

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF