Actions
Issue #1267
closedRe-publish fails if content of the repo changes
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.7.0 Beta
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
1. create repo with feed
2. syn and publish it
3. remove one/some rpms
4. publish it again
5. observe the failure
# pulp-admin -u admin -p admin repo list --repo-id ccc
+----------------------------------------------------------------------+
Repositories
+----------------------------------------------------------------------+
Id: ccc
Display Name: ccc
Description: None
Content Unit Counts:
Erratum: 4
Package Category: 1
Package Group: 2
Rpm: 31
# pulp-admin -u admin -p admin rpm repo remove rpm --repo-id ccc --str-eq='name=cat'
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Units Removed:
cat-1.0-1-noarch
# pulp-admin -u admin -p admin -vv rpm repo publish run --repo-id ccc
+----------------------------------------------------------------------+
Publishing Repository [ccc]
+----------------------------------------------------------------------+
2015-09-24 10:30:01,181 - DEBUG - sending POST request to /pulp/api/v2/tasks/search/
2015-09-24 10:30:01,355 - INFO - POST request to /pulp/api/v2/tasks/search/ with parameters {"criteria": {"filters": {"state": {"$nin": ["finished", "error", "canceled", "skipped"]}, "tags": {"$all": ["pulp:repository:ccc", "pulp:action:publish"]}}}}
2015-09-24 10:30:01,355 - INFO - Response status : 200
2015-09-24 10:30:01,355 - INFO - Response body :
[]
2015-09-24 10:30:01,355 - DEBUG - sending POST request to /pulp/api/v2/repositories/ccc/actions//publish/
2015-09-24 10:30:01,553 - INFO - POST request to /pulp/api/v2/repositories/ccc/actions//publish/ with parameters {"override_config": null, "id": "yum_distributor"}
2015-09-24 10:30:01,553 - INFO - Response status : 202
2015-09-24 10:30:01,554 - INFO - Response body :
{
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea/",
"task_id": "ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea"
}
],
"result": null,
"error": null
}
This command may be exited via ctrl+c without affecting the request.
2015-09-24 10:30:02,558 - DEBUG - sending GET request to /pulp/api/v2/tasks/ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea/
2015-09-24 10:30:02,722 - INFO - GET request to /pulp/api/v2/tasks/ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea/ with parameters None
2015-09-24 10:30:02,722 - INFO - Response status : 200
2015-09-24 10:30:02,722 - INFO - Response body :
{
"exception": null,
"task_type": "pulp.server.managers.repo.publish.publish",
"_href": "/pulp/api/v2/tasks/ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea/",
"task_id": "ccd5d9fa-7da9-4dfc-9060-ebebbfb6d1ea",
"tags": [
"pulp:repository:ccc",
"pulp:action:publish"
],
"finish_time": "2015-09-24T10:30:01Z",
"_ns": "task_status",
"start_time": "2015-09-24T10:30:01Z",
"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 395, 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/publish.py\", line 88, in publish\n transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/publish.py\", line 116, in _do_publish\n publish_report = publish_repo(transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 567, in wrap_f\n return f(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py\", line 170, in publish_repo\n self._publisher = publish.Publisher(repo, publish_conduit, config, TYPE_ID_DISTRIBUTOR_YUM)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 257, in __init__\n ((last_deleted and last_published > last_deleted) or not last_deleted):\nTypeError: can't compare offset-naive and offset-aware datetimes\n",
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-0@ec2-54-78-44-32.eu-west-1.compute.amazonaws.com.dq",
"state": "error",
"worker_name": "reserved_resource_worker-0@ec2-54-78-44-32.eu-west-1.compute.amazonaws.com",
"result": null,
"error": {
"code": "PLP0000",
"data": {},
"description": "can't compare offset-naive and offset-aware datetimes",
"sub_errors": []
},
"_id": {
"$oid": "5603d0a93ce2e908c2806bf1"
},
"id": "5603d0a93ce2e908c2806bf1"
}
Task Failed
can't compare offset-naive and offset-aware datetimes
Related issues
Updated by ipanova@redhat.com over 8 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by ipanova@redhat.com over 8 years ago
closing this as DUP of https://pulp.plan.io/issues/1254
Added by mhrivnak over 8 years ago
Added by mhrivnak over 8 years ago
Revision e369bc00 | View on GitHub
adding UTCDateTimeField, which always returns datetimes with timezone UTC
https://www.redhat.com/archives/pulp-list/2015-November/msg00044.html
Updated by bmbouter about 8 years ago
- Is duplicate of Issue #1254: TypeError: can't compare offset-naive and offset-aware datetimes added
Actions
adding UTCDateTimeField, which always returns datetimes with timezone UTC
re #1254 re #1267
https://www.redhat.com/archives/pulp-list/2015-November/msg00044.html