Project

Profile

Help

Issue #4479

Updated by kersom over 5 years ago

 
 1 - Create a repository. 
 2 - Create a remote using url=https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo/PULP_MANIFEST 
 3 - Create a second remote using url=https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-unsigned/ 

 Sync the repository using the first remote. 
 Verify the status of the task. 
 Sync the repository using the second remote. 
 Verify the status of the task. 

 *I used the pulp-smash API client to create this one. I will look for httpie command to re-create this one. I will update here properly.* 



 Traceback: 

 <pre><code class="text"> 
 [root@p3 ~]# journalctl -f 
 -- Logs begin at Thu 2018-12-20 15:22:38 EST. -- 
 Dec 20 16:36:36 p3.pulp.vm systemd[1]: Started Session 13 of user root. 
 Dec 20 16:36:36 p3.pulp.vm sshd[25482]: pam_unix(sshd:session): session opened for user root by (uid=0) 
 Dec 20 16:36:36 p3.pulp.vm audit[25482]: USER_START pid=25482 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="root" exe="/usr/sbin/sshd" hostname=192.168.122.1 addr=192.168.122.1 terminal=ssh res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25485]: CRYPTO_KEY_USER pid=25485 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:8b:6d:ec:d8:bb:83:9a:97:48:94:6f:6a:7f:c4:a5:5e:e8:86:03:29:e2:25:b3:2d:df:11:f1:16:25:9c:a4:ef direction=? spid=25485 suid=0    exe="/usr/sbin/sshd" hostname=? addr=? terminal=? res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25485]: CRYPTO_KEY_USER pid=25485 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:05:24:79:01:95:10:79:7e:c3:6c:a4:38:f5:5f:47:75:81:99:9f:5b:32:1d:f4:d0:62:21:49:33:55:1b:52:3c direction=? spid=25485 suid=0    exe="/usr/sbin/sshd" hostname=? addr=? terminal=? res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25485]: CRYPTO_KEY_USER pid=25485 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:bb:33:a9:e3:a4:50:f1:19:3a:da:f7:28:30:00:ca:65:24:77:f6:5d:07:79:cf:81:0b:ec:3b:19:7d:2a:87:bb direction=? spid=25485 suid=0    exe="/usr/sbin/sshd" hostname=? addr=? terminal=? res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25485]: CRED_ACQ pid=25485 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_localuser,pam_unix acct="root" exe="/usr/sbin/sshd" hostname=192.168.122.1 addr=192.168.122.1 terminal=ssh res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25482]: USER_LOGIN pid=25482 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=192.168.122.1 terminal=/dev/pts/5 res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25482]: USER_START pid=25482 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login id=0 exe="/usr/sbin/sshd" hostname=? addr=192.168.122.1 terminal=/dev/pts/5 res=success' 
 Dec 20 16:36:36 p3.pulp.vm audit[25482]: CRYPTO_KEY_USER pid=25482 uid=0 auid=0 ses=13 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:bb:33:a9:e3:a4:50:f1:19:3a:da:f7:28:30:00:ca:65:24:77:f6:5d:07:79:cf:81:0b:ec:3b:19:7d:2a:87:bb direction=? spid=25486 suid=0    exe="/usr/sbin/sshd" hostname=? addr=? terminal=? res=success' 
 Dec 20 16:37:14 p3.pulp.vm audit[24816]: AVC avc:    denied    { name_connect } for    pid=24816 comm="nginx" dest=8000 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket permissive=1 
 Dec 20 16:37:14 p3.pulp.vm audit[7265]: AVC avc:    denied    { name_connect } for    pid=7265 comm="gunicorn" dest=5432 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:postgresql_port_t:s0 tclass=tcp_socket permissive=1 
 Dec 20 16:37:14 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: pulpcore.tasking.tasks._queue_reserved_task(<function synchronize at 0x7f0789342ae8>, '7ce86f8f-cc8b-4cbc-af50-15da20e285c2', ['/pulp/api/v3/remotes/file/file/2/', '/pulp/api/v3/repositories/1/'], (), {'remote_pk': 2, 'repository_pk': 1, 'mirror': True}, {}) (0e8e430c-b393-4e34-b3f4-6069fa80c33d) 
 Dec 20 16:37:14 p3.pulp.vm audit[25514]: AVC avc:    denied    { name_connect } for    pid=25514 comm="rq" dest=6379 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:redis_port_t:s0 tclass=tcp_socket permissive=1 
 Dec 20 16:37:14 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: pulp_file.app.tasks.synchronizing.synchronize(mirror=True, remote_pk=2, repository_pk=1) (7ce86f8f-cc8b-4cbc-af50-15da20e285c2) 
 Dec 20 16:37:14 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: Job OK (0e8e430c-b393-4e34-b3f4-6069fa80c33d) 
 Dec 20 16:37:14 p3.pulp.vm audit[25517]: AVC avc:    denied    { name_connect } for    pid=25517 comm="rq" dest=443 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=1 
 Dec 20 16:37:15 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: Job OK (7ce86f8f-cc8b-4cbc-af50-15da20e285c2) 
 Dec 20 16:37:15 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: pulpcore.tasking.tasks._release_resources('7ce86f8f-cc8b-4cbc-af50-15da20e285c2') (3a900d86-21f8-402b-8d3e-42677c1f7297) 
 Dec 20 16:37:15 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: Job OK (3a900d86-21f8-402b-8d3e-42677c1f7297) 
 Dec 20 16:37:16 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: pulpcore.tasking.tasks._queue_reserved_task(<function synchronize at 0x7f078933b840>, '3f380d0b-e01c-4f0e-8a4a-3d9af6624f08', ['/pulp/api/v3/remotes/rpm/rpm/1/', '/pulp/api/v3/repositories/1/'], (), {'remote_pk': 1, 'repository_pk': 1}, {}) (a31d865f-ca19-4773-bf76-e6de6965e123) 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulp_rpm.app.tasks.synchronizing.synchronize(remote_pk=1, repository_pk=1) (3f380d0b-e01c-4f0e-8a4a-3d9af6624f08) 
 Dec 20 16:37:17 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: Job OK (a31d865f-ca19-4773-bf76-e6de6965e123) 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Synchronizing: repository=4b489603-e342-42c2-a7cd-dbd5f3a5d3a3 remote=a5024b69-9ef6-4e0d-9396-f753428a3250 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Unknown repodata type: group. Skipped. 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Unknown repodata type: group_gz. Skipped. 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Unknown repodata type: other_db. Skipped. 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Unknown repodata type: primary_db. Skipped. 
 Dec 20 16:37:17 p3.pulp.vm rq[16215]: pulp: pulp_rpm.app.tasks.synchronizing:INFO: Unknown repodata type: filelists_db. Skipped. 
 Dec 20 16:37:18 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (3f380d0b-e01c-4f0e-8a4a-3d9af6624f08) 
 Dec 20 16:37:18 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulpcore.tasking.tasks._release_resources('3f380d0b-e01c-4f0e-8a4a-3d9af6624f08') (fcf19b93-f30a-4bfd-bf14-b74c946bcac5) 
 Dec 20 16:37:18 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (fcf19b93-f30a-4bfd-bf14-b74c946bcac5) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]: /usr/local/lib/pulp/lib64/python3.7/site-packages/whitenoise/base.py:104: UserWarning: No directory at: /var/lib/pulp/static/ 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     warnings.warn(u'No directory at: {}'.format(root)) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]: pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/tasks/2/ 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]: Traceback (most recent call last): 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       response = get_response(request) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/base.py", line 126, in _get_response 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       response = self.process_exception_by_middleware(e, request) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/base.py", line 124, in _get_response 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       response = wrapped_callback(request, *callback_args, **callback_kwargs) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       return view_func(*args, **kwargs) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/viewsets.py", line 116, in view 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       return self.dispatch(request, *args, **kwargs) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 495, in dispatch 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       response = self.handle_exception(exc) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 455, in handle_exception 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       self.raise_uncaught_exception(exc) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 492, in dispatch 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       response = handler(request, *args, **kwargs) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/mixins.py", line 58, in retrieve 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       return Response(serializer.data) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 563, in data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       ret = super(Serializer, self).data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 262, in data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       self._data = self.to_representation(self.instance) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 530, in to_representation 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       ret[field.field_name] = field.to_representation(attribute) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/relations.py", line 542, in to_representation 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       for value in iterable 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/relations.py", line 542, in <listcomp> 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       for value in iterable 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/serializers/task.py", line 25, in to_representation 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       return serializer.data.get('_href') 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 563, in data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       ret = super(Serializer, self).data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 262, in data 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       self._data = self.to_representation(self.instance) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py", line 530, in to_representation 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       ret[field.field_name] = field.to_representation(attribute) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/fields.py", line 1893, in to_representation 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       return method(value) 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:     File "/usr/local/lib/pulp/lib64/python3.7/site-packages/pulpcore/app/serializers/repository.py", line 405, in get_content_removed_hrefs 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]:       ctype_model = obj.content.filter(_type=ctype).first().cast().__class__ 
 Dec 20 16:37:19 p3.pulp.vm gunicorn[7250]: AttributeError: 'NoneType' object has no attribute 'cast' 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: pulpcore.tasking.tasks._queue_reserved_task(<function delete at 0x7f07896f96a8>, '321d7dd0-98d6-408a-923c-d54877f61b59', ['/pulp/api/v3/repositories/1/'], (), {'repo_id': 1}, {}) (05b739f1-0c5e-49f8-90d1-ea4bc091a591) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulpcore.app.tasks.repository.delete(repo_id=1) (321d7dd0-98d6-408a-923c-d54877f61b59) 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: Job OK (05b739f1-0c5e-49f8-90d1-ea4bc091a591) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (321d7dd0-98d6-408a-923c-d54877f61b59) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulpcore.tasking.tasks._release_resources('321d7dd0-98d6-408a-923c-d54877f61b59') (3f219917-a647-41a6-ae3a-a35203ce2444) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (3f219917-a647-41a6-ae3a-a35203ce2444) 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: pulpcore.tasking.tasks._queue_reserved_task(<function general_delete at 0x7f07896f9598>, '51375d42-c8f8-4441-bfc7-b175587c4483', ['/pulp/api/v3/remotes/file/file/2/'], ('2', 'file', 'FileRemoteSerializer'), {}, {}) (42468a36-9d02-41ee-8328-b79e87e50830) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulpcore.app.tasks.base.general_delete('2', 'file', 'FileRemoteSerializer') (51375d42-c8f8-4441-bfc7-b175587c4483) 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: Job OK (42468a36-9d02-41ee-8328-b79e87e50830) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (51375d42-c8f8-4441-bfc7-b175587c4483) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: pulpcore.tasking.tasks._release_resources('51375d42-c8f8-4441-bfc7-b175587c4483') (5c4478bd-e4ad-4f25-84f1-16ad89e94868) 
 Dec 20 16:37:19 p3.pulp.vm rq[16215]: pulp: rq.worker:INFO: reserved-resource-worker-1@p3.pulp.vm: Job OK (5c4478bd-e4ad-4f25-84f1-16ad89e94868) 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: pulpcore.tasking.tasks._queue_reserved_task(<function general_delete at 0x7f07896f9598>, '54b1335f-001f-4c3c-b9d6-5db903bd0226', ['/pulp/api/v3/remotes/rpm/rpm/1/'], ('1', 'rpm', 'RpmRemoteSerializer'), {}, {}) (2c80b7c7-6585-4109-b7c7-01f9c6a7a7a3) 
 Dec 20 16:37:19 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: pulpcore.app.tasks.base.general_delete('1', 'rpm', 'RpmRemoteSerializer') (54b1335f-001f-4c3c-b9d6-5db903bd0226) 
 Dec 20 16:37:19 p3.pulp.vm rq[16617]: pulp: rq.worker:INFO: resource-manager: Job OK (2c80b7c7-6585-4109-b7c7-01f9c6a7a7a3) 
 Dec 20 16:37:20 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: Job OK (54b1335f-001f-4c3c-b9d6-5db903bd0226) 
 Dec 20 16:37:20 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: pulpcore.tasking.tasks._release_resources('54b1335f-001f-4c3c-b9d6-5db903bd0226') (2d31c93b-4bb5-4ce5-88e9-51a31f5f9b43) 
 Dec 20 16:37:20 p3.pulp.vm rq[16343]: pulp: rq.worker:INFO: reserved-resource-worker-2@p3.pulp.vm: Job OK (2d31c93b-4bb5-4ce5-88e9-51a31f5f9b43) 
 </code></pre> 

 Pulp 3 - installation from source from FEB/26. 

Back