Project

Profile

Help

Issue #638

closed

time & build_time fields on manually uploaded RPMs

Added by mrsalty0@yahoo.com about 9 years ago. Updated almost 5 years ago.

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

Description

Description of problem:

When I adding rpms to a repo via 'pulp-admin repo uploads rpm --repo-id=XX --file=XX' The resulting unit has no 'time' or 'build_time' metadata.

Version-Release number of selected component (if applicable): 2.5.0-1.el6

How reproducible: 100% in my limited testing

Steps to Reproduce:
1. pulp-admin repo uploads rpm --repo-id=XX --file=XX
2.
3.

Actual results: Uploaded Unit metadata object has no 'time' or 'build_time' property

Expected results: Uploaded Unit metadata object has time' and 'build_time' property

Additional info:

+ This bug was cloned from Bugzilla Bug #1173280 +

Actions #1

Updated by bcourt about 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bcourt

Added by bcourt about 9 years ago

Revision 8fbf0d89 | View on GitHub

638 - Process build_time & time values for uploaded RPMs

The build_time & time values for uploaded rpms have not been saved on the model and they are being saved for synced rpms. Update the processing code to calculate these values upon upload.

closes #638

Actions #2

Updated by bcourt about 9 years ago

  • Status changed from ASSIGNED to POST
  • Platform Release set to 2.6.1
Actions #3

Updated by bcourt about 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by bmbouter about 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #5

Updated by bcourt about 9 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by pthomas@redhat.com almost 9 years ago

  • Status changed from 5 to 6

verified
[root@cloud-qe-12 ~]# rpm -qa pulp-server
pulp-server-2.6.1-0.2.beta.el6.noarch
[root@cloud-qe-12 ~]#

2015-04-02 10:58:39,272 - INFO - POST request to /pulp/api/v2/repositories/upload/search/units/ with parameters {"criteria": {"type_ids": ["rpm"], "filters": {"unit": {"name": {"$regex": "camel"}}}}}
2015-04-02 10:58:39,273 - INFO - Response status : 200 

2015-04-02 10:58:39,273 - INFO - Response body :
 [
  {
    "updated": "2015-04-02T14:50:42Z", 
    "repo_id": "upload", 
    "created": "2015-04-02T14:50:42Z", 
    "_ns": "repo_content_units", 
    "unit_id": "7a6593b6-400b-4165-9308-3ed43b82ad23", 
    "owner_id": "SYSTEM", 
    "unit_type_id": "rpm", 
    "owner_type": "user", 
    "_id": {
      "$oid": "551d574253173a08a251abf4"
    }, 
    "id": "551d574253173a08a251abf4", 
    "metadata": {
      "build_time": 1331831360, 
      "buildhost": "smqe-ws15", 
      "_content_type_id": "rpm", 
      "vendor": null, 
      "_ns": "units_rpm", 
      "release_sort_index": "01-1", 
      "filename": "camel-0.1-1.noarch.rpm", 
      "epoch": "0", 
      "version": "0.1", 
      "version_sort_index": "01-0.01-1", 
      "provides": [
        {
          "release": "1", 
          "epoch": "0", 
          "version": "0.1", 
          "flags": "EQ", 
          "name": "camel"
        }
      ], 
      "repodata": {
        "filelists": "\n<package pkgid=\"82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba\" name=\"camel\" arch=\"noarch\">\n    <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n\n    <file>/tmp/camel.txt</file>\n</package>\n", 
        "other": "\n<package pkgid=\"82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba\" name=\"camel\" arch=\"noarch\">\n    <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n\n</package>\n", 
        "primary": "\n<package type=\"rpm\">\n  <name>camel</name>\n  <arch>noarch</arch>\n  <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n  <checksum type=\"sha256\" pkgid=\"YES\">82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba</checksum>\n  <summary>A dummy package of camel</summary>\n  <description>A dummy package of camel</description>\n  <packager></packager>\n  <url>http://tstrachota.fedorapeople.org</url>\n  <time file=\"1427986241\" build=\"1331831360\"/>\n  <size package=\"2439\" installed=\"42\" archive=\"296\"/>\n<location href=\"camel-0.1-1.noarch.rpm\"/>\n  <format>\n    <rpm:license>GPLv2</rpm:license>\n    <rpm:vendor/>\n    <rpm:group>Internet/Applications</rpm:group>\n    <rpm:buildhost>smqe-ws15</rpm:buildhost>\n    <rpm:sourcerpm>camel-0.1-1.src.rpm</rpm:sourcerpm>\n    <rpm:header-range start=\"872\" end=\"2289\"/>\n    <rpm:provides>\n      <rpm:entry name=\"camel\" flags=\"EQ\" epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n    </rpm:provides>\n  </format>\n</package>"
      }, 
      "description": "A dummy package of camel", 
      "_last_updated": 1427986242, 
      "time": 1427986241, 
      "arch": "noarch", 
      "checksumtype": "sha256", 
      "_storage_path": "/var/lib/pulp/content/rpm/camel/0.1/1/noarch/82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba/camel-0.1-1.noarch.rpm", 
      "name": "camel", 
      "license": "GPLv2", 
      "relativepath": "camel-0.1-1.noarch.rpm", 
      "checksum": "82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba", 
      "release": "1", 
      "checksum_type": null, 
      "_id": "7a6593b6-400b-4165-9308-3ed43b82ad23", 
      "requires": []
    }
  }
]
Actions #8

Updated by dkliban@redhat.com almost 9 years ago

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

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF