Advertisement
Guest User

Pulp with auth feed

a guest
Mar 2nd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. pulp-admin rpm repo create --repo-id=test-repo-x86_64-live --display-name="TEST REPO x86_64 (Live)" --description="TEST REPO x86_64 (Live)" --feed="https://artifactory-master.example.com/artifactory/yum-local/test-repo/6/x86_64/" --serve-http=True --serve-https=False --relative-url=test-repo/6/x86_64/live --basicauth-user=login --basicauth-pass=pass
  2.  
  3.  
  4. pulp-admin -vv rpm repo sync run --repo-id=test-repo-x86_64-live [0, 8.0G, 0.04
  5.  
  6. (4)] 7:59:20
  7. +----------------------------------------------------------------------+
  8. Synchronizing Repository [test-repo-x86_64-live]
  9. +----------------------------------------------------------------------+
  10.  
  11. 2016-03-02 07:59:29,078 - DEBUG - sending POST request to /pulp/api/v2/tasks/search/
  12. 2016-03-02 07:59:29,157 - INFO - POST request to /pulp/api/v2/tasks/search/ with parameters {"criteria": {"filters": {"state": {"$nin": ["finished", "error", "canceled", "skipped"]}, "tags": {"$all": ["pulp:repository:test-repo-x86_64-live", "pulp:action:sync"]}}}}
  13. 2016-03-02 07:59:29,157 - INFO - Response status : 200
  14.  
  15. 2016-03-02 07:59:29,157 - INFO - Response body :
  16. []
  17.  
  18. 2016-03-02 07:59:29,158 - DEBUG - sending POST request to /pulp/api/v2/repositories/test-repo-x86_64-live/actions/sync/
  19. 2016-03-02 07:59:29,258 - INFO - POST request to /pulp/api/v2/repositories/test-repo-x86_64-live/actions/sync/ with parameters {"override_config": null}
  20. 2016-03-02 07:59:29,258 - INFO - Response status : 202
  21.  
  22. 2016-03-02 07:59:29,259 - INFO - Response body :
  23. {
  24. "spawned_tasks": [
  25. {
  26. "_href": "/pulp/api/v2/tasks/c6a22e58-f950-44d8-bf7f-616c8f4a2b27/",
  27. "task_id": "c6a22e58-f950-44d8-bf7f-616c8f4a2b27"
  28. }
  29. ],
  30. "result": null,
  31. "error": null
  32. }
  33.  
  34. This command may be exited via ctrl+c without affecting the request.
  35.  
  36.  
  37. 2016-03-02 07:59:30,260 - DEBUG - sending GET request to /pulp/api/v2/tasks/c6a22e58-f950-44d8-bf7f-616c8f4a2b27/
  38. 2016-03-02 07:59:30,355 - INFO - GET request to /pulp/api/v2/tasks/c6a22e58-f950-44d8-bf7f-616c8f4a2b27/ with parameters None
  39. 2016-03-02 07:59:30,355 - INFO - Response status : 200
  40.  
  41. 2016-03-02 07:59:30,355 - INFO - Response body :
  42. {
  43. "exception": null,
  44. "task_type": "pulp.server.managers.repo.sync.sync",
  45. "_href": "/pulp/api/v2/tasks/c6a22e58-f950-44d8-bf7f-616c8f4a2b27/",
  46. "task_id": "c6a22e58-f950-44d8-bf7f-616c8f4a2b27",
  47. "tags": [
  48. "pulp:repository:test-repo-x86_64-live",
  49. "pulp:action:sync"
  50. ],
  51. "finish_time": "2016-03-02T12:59:30Z",
  52. "_ns": "task_status",
  53. "start_time": "2016-03-02T12:59:29Z",
  54. "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 393, 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/sync.py\", line 96, in sync\n call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/sync.py\", line 150, in _do_sync\n sync_report = sync_repo(transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 578, in wrap_f\n return f(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py\", line 66, in sync_repo\n report = self._current_sync.run()\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py\", line 177, in run\n if self.sync_feed == []:\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py\", line 96, in sync_feed\n self.check_metadata(repo_url_slash)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py\", line 304, in check_metadata\n metadata_files.parse_repomd()\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/metadata.py\", line 168, in parse_repomd\n self.revision = int(element.text)\nTypeError: int() argument must be a string or a number, not 'NoneType'\n",
  55. "spawned_tasks": [],
  56. "progress_report": {
  57. "yum_importer": {
  58. "content": {
  59. "size_total": 0,
  60. "items_left": 0,
  61. "items_total": 0,
  62. "state": "NOT_STARTED",
  63. "size_left": 0,
  64. "details": {
  65. "rpm_total": 0,
  66. "rpm_done": 0,
  67. "drpm_total": 0,
  68. "drpm_done": 0
  69. },
  70. "error_details": []
  71. },
  72. "comps": {
  73. "state": "NOT_STARTED"
  74. },
  75. "distribution": {
  76. "items_total": 0,
  77. "state": "NOT_STARTED",
  78. "error_details": [],
  79. "items_left": 0
  80. },
  81. "errata": {
  82. "state": "NOT_STARTED"
  83. },
  84. "metadata": {
  85. "state": "NOT_STARTED"
  86. }
  87. }
  88. },
  89. "queue": "reserved_resource_worker-3@localhost.localdomain.dq",
  90. "state": "error",
  91. "worker_name": "reserved_resource_worker-3@localhost.localdomain",
  92. "result": null,
  93. "error": {
  94. "code": "PLP0000",
  95. "data": {},
  96. "description": "int() argument must be a string or a number, not 'NoneType'",
  97. "sub_errors": []
  98. },
  99. "_id": {
  100. "$oid": "56d6e3b1d305bcaf620dcf9d"
  101. },
  102. "id": "56d6e3b1d305bcaf620dcf9d"
  103. }
  104.  
  105.  
  106. Task Failed
  107.  
  108. int() argument must be a string or a number, not 'NoneType'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement