Skip to content

Instantly share code, notes, and snippets.

View jortel's full-sized avatar

Jeff Ortel jortel

  • Red Hat
  • Huntsville, AL
View GitHub Profile
[jortel@f26c ~]$ pulp-admin ostree repo sync run -h
Command: run
Description: triggers an immediate sync of a repository
Available Arguments:
--bg - if specified, the client process will end immediately (the task
will continue to run on the server)
--repo-id - (required) unique identifier; only alphanumeric, ., -, and _
allowed
# https://github.com/jortel/gofer/blob/master/src/gofer/messaging/adapter/model.py#L548
from gofer.messaging import NotFound, Reader, Queue
q = Queue('xyz')
try:
with Reader(q, url='qpid+amqp://localhost'):
print 'Found'
except NotFound:
Feb 07 15:40:16 f27a.redhat.com rq[6911]: pulp: rq.worker:INFO: resource_manager: Job OK (ed449947-bc85-47d5-88b8-5bf38b79562c)
Feb 07 15:40:16 f27a.redhat.com rq[6911]: pulp: rq.worker:INFO: Cleaning registries for queue: resource_manager
Feb 07 15:40:16 f27a.redhat.com rq[15928]: pulp: pulp_docker.app.downloaders:INFO: Updating bearer token
Feb 07 15:40:16 f27a.redhat.com rq[15928]: pulp: pulp_docker.app.downloaders:INFO: FFFFFFFFFFFFFFFFfhttps://registry-1.docker.io/v2/library/nanoserver/tags/list
Feb 07 15:40:16 f27a.redhat.com rq[15928]: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized')
Feb 07 15:40:16 f27a.redhat.com rq[15928]: pulp: backoff:ERROR: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized')
Feb 07 15:40:16 f27a.redhat.com rq[15928]: Giving up _run(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized')
Feb 07 15:40:16 f27a.redhat.com rq[
{
"_href": "/pulp/api/v3/tasks/111/",
"_created": "2019-01-23T17:17:45.077574Z",
"job_id": "002bc174-df1b-4e0c-acd7-2b7f4f3ff303",
"state": "running",
"name": "pulp_file.app.tasks.synchronizing.synchronize",
"started_at": "2019-01-23T17:17:45.164361Z",
"finished_at": null,
"non_fatal_errors": [],
"error": null,
[jortel@f27a pulp-certguard]$ sudo pip3 install createrepo-c
Collecting createrepo-c
Using cached https://files.pythonhosted.org/packages/e6/64/5d15820ea82fa1fdae773fbccef14b0aaf240eb0be17423811e010c16deb/createrepo_c-0.11.1.post1.tar.gz
Installing build dependencies ... done
Building wheels for collected packages: createrepo-c
Running setup.py bdist_wheel for createrepo-c ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-tl26t06m/createrepo-c/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-7ufcs7o9 --python-tag cp36:
--------------------------------------------------------------------------------
Jan 08 15:54:05 f27a.redhat.com gunicorn[30806]: Traceback (most recent call last):
Jan 08 15:54:05 f27a.redhat.com gunicorn[30806]: File "/usr/local/lib64/python3.6/site-packages/aiohttp/web_protocol.py", line 230, in data_received
Jan 08 15:54:05 f27a.redhat.com gunicorn[30806]: messages, upgraded, tail = self._request_parser.feed_data(data)
Jan 08 15:54:05 f27a.redhat.com gunicorn[30806]: File "aiohttp/_http_parser.pyx", line 297, in aiohttp._http_parser.HttpParser.feed_data
Jan 08 15:54:05 f27a.redhat.com gunicorn[30806]: aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
Jan 08 15:54:23 f27a.redhat.com gunicorn[30806]: [2019-01-08 21:54:23 +0000] [30814] [ERROR] Error handling request
Jan 08 15:54:23 f27a.redhat.com gunicorn[30806]: Traceback (most recent call last):
Jan 08 15:54:23 f27a.redhat.com gunicorn[30806]: File "/usr/local/lib64/python3.6/site-packages/aiohttp/web_protocol.py", line 230, in data_received
Jan 08 15:54:23 f27a.redhat.com gunicorn[30806]: messages, upgraded, t
Comment #16 suggested in general terms what a satisfactory error message may contain. The patch attempted to meet this expectation. However, it seems that you have something specific in mind. Please specify the EXACT error message required to resolve this bug.
[jortel@f26p ~]$ pulp get --url=http://f26p.redhat.com:8000/pulp/api/v3/?format=corejson
[14/Jun/2018 15:50:13] "GET /pulp/api/v3/?format=corejson HTTP/1.1" 403 39
Something went wrong: {'detail': 'Invalid username/password.'}
[jortel@f26p ~]$
Apr 23 10:26:38 f26p.redhat.com systemd[1]: Started Pulp Celery Worker.
-- Logs begin at Mon 2017-11-06 11:05:05 CST. --
Apr 23 10:26:39 f26p.redhat.com celery[17260]: File "/home/jortel/git/pulp/pulpcore/pulpcore/app/models/publication.py", line 5, in <module>
Apr 23 10:26:39 f26p.redhat.com celery[17260]: from .task import CreatedResource
Apr 23 10:26:39 f26p.redhat.com celery[17260]: File "/home/jortel/git/pulp/pulpcore/pulpcore/app/models/task.py", line 15, in <module>
Apr 23 10:26:39 f26p.redhat.com celery[17260]: from pulpcore.common import TASK_FINAL_STATES, TASK_CHOICES, TASK_STATES
Apr 23 10:26:39 f26p.redhat.com celery[17260]: ImportError: cannot import name 'TASK_CHOICES'
Python 3.6.2 (default, Sep 1 2017, 12:03:48)
[GCC 7.1.1 20170802 (Red Hat 7.1.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
['', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/lib64/python3.6/site-packages', '/usr/lib/python3.6/site-packages']
>>>