Advertisement
mikedep333

pulp-api on k8s error 2

May 7th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.02 KB | None | 0 0
  1. Waiting on postgresql to start...
  2. Checking postgres host 10.107.241.119
  3. Checking postgres host 10.107.241.119
  4. Checking postgres host 10.107.241.119
  5. Checking postgres host 10.107.241.119
  6. Checking postgres host 10.107.241.119
  7. Checking postgres host 10.107.241.119
  8. Checking postgres host 10.107.241.119
  9. Postgres started!
  10. No installed app with label 'cookbook'.
  11. Operations to perform:
  12. Apply all migrations: admin, ansible, auth, contenttypes, core, file, sessions
  13. Traceback (most recent call last):
  14. File "/opt/rh/rh-python36/root/usr/bin/django-admin", line 11, in <module>
  15. sys.exit(execute_from_command_line())
  16. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  17. utility.execute()
  18. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
  19. self.fetch_command(subcommand).run_from_argv(self.argv)
  20. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
  21. self.execute(*args, **cmd_options)
  22. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
  23. output = self.handle(*args, **options)
  24. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
  25. res = handle_func(*args, **kwargs)
  26. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 191, in handle
  27. pre_migrate_apps = pre_migrate_state.apps
  28. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/utils/functional.py", line 80, in __get__
  29. res = instance.__dict__[self.name] = self.func(instance)
  30. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 210, in apps
  31. return StateApps(self.real_apps, self.models)
  32. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 273, in __init__
  33. self.render_multiple([*models.values(), *self.real_models])
  34. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 316, in render_multiple
  35. "for more" % (new_unrendered_models, get_docs_version())
  36. django.db.migrations.exceptions.InvalidBasesError: Cannot resolve bases for [<ModelState: 'python.PythonPackageContent'>, <ModelState: 'python.PythonPublication'>, <ModelState: 'python.PythonRemote'>, <ModelState: 'docker.ManifestBlob'>, <ModelState: 'docker.ImageManifest'>, <ModelState: 'docker.ManifestList'>, <ModelState: 'docker.ManifestTag'>, <ModelState: 'docker.ManifestListTag'>, <ModelState: 'docker.DockerRemote'>, <ModelState: 'maven.MavenArtifact'>, <ModelState: 'maven.MavenRemote'>]
  37. This can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)
  38. in an app with no migrations; see https://docs.djangoproject.com/en/2.2/topics/migrations/#dependencies for more
  39. Operations to perform:
  40. Apply all migrations: auth
  41. Traceback (most recent call last):
  42. File "/opt/rh/rh-python36/root/usr/bin/django-admin", line 11, in <module>
  43. sys.exit(execute_from_command_line())
  44. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  45. utility.execute()
  46. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
  47. self.fetch_command(subcommand).run_from_argv(self.argv)
  48. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
  49. self.execute(*args, **cmd_options)
  50. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
  51. output = self.handle(*args, **options)
  52. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
  53. res = handle_func(*args, **kwargs)
  54. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 191, in handle
  55. pre_migrate_apps = pre_migrate_state.apps
  56. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/utils/functional.py", line 80, in __get__
  57. res = instance.__dict__[self.name] = self.func(instance)
  58. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 210, in apps
  59. return StateApps(self.real_apps, self.models)
  60. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 273, in __init__
  61. self.render_multiple([*models.values(), *self.real_models])
  62. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/migrations/state.py", line 316, in render_multiple
  63. "for more" % (new_unrendered_models, get_docs_version())
  64. django.db.migrations.exceptions.InvalidBasesError: Cannot resolve bases for [<ModelState: 'maven.MavenArtifact'>, <ModelState: 'maven.MavenRemote'>, <ModelState: 'docker.ManifestBlob'>, <ModelState: 'docker.ImageManifest'>, <ModelState: 'docker.ManifestList'>, <ModelState: 'docker.ManifestTag'>, <ModelState: 'docker.ManifestListTag'>, <ModelState: 'docker.DockerRemote'>, <ModelState: 'python.PythonPackageContent'>, <ModelState: 'python.PythonPublication'>, <ModelState: 'python.PythonRemote'>]
  65. This can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)
  66. in an app with no migrations; see https://docs.djangoproject.com/en/2.2/topics/migrations/#dependencies for more
  67. [2019-05-07 21:10:13 +0000] [35] [INFO] Starting gunicorn 19.9.0
  68. [2019-05-07 21:10:13 +0000] [35] [INFO] Listening at: http://0.0.0.0:24817 (35)
  69. [2019-05-07 21:10:13 +0000] [35] [INFO] Using worker: sync
  70. [2019-05-07 21:10:13 +0000] [38] [INFO] Booting worker with pid: 38
  71. pulp: django.request:WARNING: Not Found: /
  72. pulp: django.request:WARNING: Not Found: /favicon.ico
  73. /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'pulp_ansible.app.galaxy.views.RoleList'> is not compatible with schema generation
  74. "{} is not compatible with schema generation".format(view.__class__)
  75. /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'pulp_ansible.app.galaxy.views.RoleVersionList'> is not compatible with schema generation
  76. "{} is not compatible with schema generation".format(view.__class__)
  77. /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'pulp_ansible.app.galaxy.views.GalaxyCollectionDetailView'> is not compatible with schema generation
  78. "{} is not compatible with schema generation".format(view.__class__)
  79. /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'pulp_ansible.app.galaxy.views.GalaxyCollectionNamespaceNameVersionList'> is not compatible with schema generation
  80. "{} is not compatible with schema generation".format(view.__class__)
  81. pulp: pulpcore.app.views.status:ERROR: Cannot connect to database during status check.
  82. Traceback (most recent call last):
  83. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  84. return self.cursor.execute(sql, params)
  85. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  86. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  87. ^
  88.  
  89.  
  90. The above exception was the direct cause of the following exception:
  91.  
  92. Traceback (most recent call last):
  93. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 71, in _get_db_conn_status
  94. Worker.objects.count()
  95. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  96. return getattr(self.get_queryset(), name)(*args, **kwargs)
  97. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 392, in count
  98. return self.query.get_count(using=self.db)
  99. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 504, in get_count
  100. number = obj.get_aggregation(using, ['__count'])['__count']
  101. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 489, in get_aggregation
  102. result = compiler.execute_sql(SINGLE)
  103. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  104. cursor.execute(sql, params)
  105. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  106. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  107. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  108. return executor(sql, params, many, context)
  109. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  110. return self.cursor.execute(sql, params)
  111. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  112. raise dj_exc_value.with_traceback(traceback) from exc_value
  113. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  114. return self.cursor.execute(sql, params)
  115. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  116. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  117. ^
  118.  
  119. pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/status/
  120. Traceback (most recent call last):
  121. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  122. return self.cursor.execute(sql, params)
  123. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  124. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  125. ^
  126.  
  127.  
  128. The above exception was the direct cause of the following exception:
  129.  
  130. Traceback (most recent call last):
  131. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
  132. response = get_response(request)
  133. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
  134. response = self.process_exception_by_middleware(e, request)
  135. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
  136. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  137. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  138. return view_func(*args, **kwargs)
  139. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
  140. return self.dispatch(request, *args, **kwargs)
  141. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
  142. response = self.handle_exception(exc)
  143. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
  144. self.raise_uncaught_exception(exc)
  145. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 466, in raise_uncaught_exception
  146. raise exc
  147. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
  148. response = handler(request, *args, **kwargs)
  149. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 60, in get
  150. return Response(serializer.data)
  151. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 563, in data
  152. ret = super(Serializer, self).data
  153. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 262, in data
  154. self._data = self.to_representation(self.instance)
  155. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 530, in to_representation
  156. ret[field.field_name] = field.to_representation(attribute)
  157. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 686, in to_representation
  158. self.child.to_representation(item) for item in iterable
  159. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
  160. self._fetch_all()
  161. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
  162. self._result_cache = list(self._iterable_class(self))
  163. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
  164. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  165. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  166. cursor.execute(sql, params)
  167. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  168. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  169. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  170. return executor(sql, params, many, context)
  171. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  172. return self.cursor.execute(sql, params)
  173. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  174. raise dj_exc_value.with_traceback(traceback) from exc_value
  175. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  176. return self.cursor.execute(sql, params)
  177. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  178. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  179. ^
  180.  
  181. pulp: pulpcore.app.views.status:ERROR: Cannot connect to database during status check.
  182. Traceback (most recent call last):
  183. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  184. return self.cursor.execute(sql, params)
  185. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  186. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  187. ^
  188.  
  189.  
  190. The above exception was the direct cause of the following exception:
  191.  
  192. Traceback (most recent call last):
  193. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 71, in _get_db_conn_status
  194. Worker.objects.count()
  195. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  196. return getattr(self.get_queryset(), name)(*args, **kwargs)
  197. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 392, in count
  198. return self.query.get_count(using=self.db)
  199. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 504, in get_count
  200. number = obj.get_aggregation(using, ['__count'])['__count']
  201. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 489, in get_aggregation
  202. result = compiler.execute_sql(SINGLE)
  203. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  204. cursor.execute(sql, params)
  205. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  206. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  207. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  208. return executor(sql, params, many, context)
  209. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  210. return self.cursor.execute(sql, params)
  211. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  212. raise dj_exc_value.with_traceback(traceback) from exc_value
  213. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  214. return self.cursor.execute(sql, params)
  215. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  216. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  217. ^
  218.  
  219. pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/status/
  220. Traceback (most recent call last):
  221. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  222. return self.cursor.execute(sql, params)
  223. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  224. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  225. ^
  226.  
  227.  
  228. The above exception was the direct cause of the following exception:
  229.  
  230. Traceback (most recent call last):
  231. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
  232. response = get_response(request)
  233. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
  234. response = self.process_exception_by_middleware(e, request)
  235. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
  236. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  237. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  238. return view_func(*args, **kwargs)
  239. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
  240. return self.dispatch(request, *args, **kwargs)
  241. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
  242. response = self.handle_exception(exc)
  243. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
  244. self.raise_uncaught_exception(exc)
  245. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 466, in raise_uncaught_exception
  246. raise exc
  247. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
  248. response = handler(request, *args, **kwargs)
  249. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 60, in get
  250. return Response(serializer.data)
  251. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 563, in data
  252. ret = super(Serializer, self).data
  253. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 262, in data
  254. self._data = self.to_representation(self.instance)
  255. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 530, in to_representation
  256. ret[field.field_name] = field.to_representation(attribute)
  257. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 686, in to_representation
  258. self.child.to_representation(item) for item in iterable
  259. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
  260. self._fetch_all()
  261. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
  262. self._result_cache = list(self._iterable_class(self))
  263. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
  264. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  265. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  266. cursor.execute(sql, params)
  267. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  268. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  269. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  270. return executor(sql, params, many, context)
  271. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  272. return self.cursor.execute(sql, params)
  273. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  274. raise dj_exc_value.with_traceback(traceback) from exc_value
  275. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  276. return self.cursor.execute(sql, params)
  277. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  278. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  279. ^
  280.  
  281. pulp: pulpcore.app.views.status:ERROR: Cannot connect to database during status check.
  282. Traceback (most recent call last):
  283. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  284. return self.cursor.execute(sql, params)
  285. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  286. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  287. ^
  288.  
  289.  
  290. The above exception was the direct cause of the following exception:
  291.  
  292. Traceback (most recent call last):
  293. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 71, in _get_db_conn_status
  294. Worker.objects.count()
  295. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  296. return getattr(self.get_queryset(), name)(*args, **kwargs)
  297. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 392, in count
  298. return self.query.get_count(using=self.db)
  299. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 504, in get_count
  300. number = obj.get_aggregation(using, ['__count'])['__count']
  301. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 489, in get_aggregation
  302. result = compiler.execute_sql(SINGLE)
  303. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  304. cursor.execute(sql, params)
  305. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  306. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  307. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  308. return executor(sql, params, many, context)
  309. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  310. return self.cursor.execute(sql, params)
  311. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  312. raise dj_exc_value.with_traceback(traceback) from exc_value
  313. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  314. return self.cursor.execute(sql, params)
  315. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  316. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  317. ^
  318.  
  319. pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/status/
  320. Traceback (most recent call last):
  321. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  322. return self.cursor.execute(sql, params)
  323. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  324. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  325. ^
  326.  
  327.  
  328. The above exception was the direct cause of the following exception:
  329.  
  330. Traceback (most recent call last):
  331. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
  332. response = get_response(request)
  333. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
  334. response = self.process_exception_by_middleware(e, request)
  335. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
  336. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  337. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  338. return view_func(*args, **kwargs)
  339. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
  340. return self.dispatch(request, *args, **kwargs)
  341. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
  342. response = self.handle_exception(exc)
  343. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
  344. self.raise_uncaught_exception(exc)
  345. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 466, in raise_uncaught_exception
  346. raise exc
  347. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
  348. response = handler(request, *args, **kwargs)
  349. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 60, in get
  350. return Response(serializer.data)
  351. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 563, in data
  352. ret = super(Serializer, self).data
  353. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 262, in data
  354. self._data = self.to_representation(self.instance)
  355. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 530, in to_representation
  356. ret[field.field_name] = field.to_representation(attribute)
  357. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 686, in to_representation
  358. self.child.to_representation(item) for item in iterable
  359. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
  360. self._fetch_all()
  361. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
  362. self._result_cache = list(self._iterable_class(self))
  363. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
  364. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  365. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  366. cursor.execute(sql, params)
  367. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  368. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  369. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  370. return executor(sql, params, many, context)
  371. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  372. return self.cursor.execute(sql, params)
  373. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  374. raise dj_exc_value.with_traceback(traceback) from exc_value
  375. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  376. return self.cursor.execute(sql, params)
  377. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  378. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  379. ^
  380.  
  381. pulp: pulpcore.app.views.status:ERROR: Cannot connect to database during status check.
  382. Traceback (most recent call last):
  383. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  384. return self.cursor.execute(sql, params)
  385. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  386. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  387. ^
  388.  
  389.  
  390. The above exception was the direct cause of the following exception:
  391.  
  392. Traceback (most recent call last):
  393. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 71, in _get_db_conn_status
  394. Worker.objects.count()
  395. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  396. return getattr(self.get_queryset(), name)(*args, **kwargs)
  397. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 392, in count
  398. return self.query.get_count(using=self.db)
  399. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 504, in get_count
  400. number = obj.get_aggregation(using, ['__count'])['__count']
  401. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/query.py", line 489, in get_aggregation
  402. result = compiler.execute_sql(SINGLE)
  403. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  404. cursor.execute(sql, params)
  405. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  406. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  407. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  408. return executor(sql, params, many, context)
  409. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  410. return self.cursor.execute(sql, params)
  411. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  412. raise dj_exc_value.with_traceback(traceback) from exc_value
  413. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  414. return self.cursor.execute(sql, params)
  415. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  416. LINE 1: SELECT COUNT(*) AS "__count" FROM "core_worker"
  417. ^
  418.  
  419. pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/status/
  420. Traceback (most recent call last):
  421. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  422. return self.cursor.execute(sql, params)
  423. psycopg2.errors.UndefinedTable: relation "core_worker" does not exist
  424. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  425. ^
  426.  
  427.  
  428. The above exception was the direct cause of the following exception:
  429.  
  430. Traceback (most recent call last):
  431. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
  432. response = get_response(request)
  433. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
  434. response = self.process_exception_by_middleware(e, request)
  435. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
  436. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  437. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  438. return view_func(*args, **kwargs)
  439. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
  440. return self.dispatch(request, *args, **kwargs)
  441. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
  442. response = self.handle_exception(exc)
  443. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
  444. self.raise_uncaught_exception(exc)
  445. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 466, in raise_uncaught_exception
  446. raise exc
  447. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
  448. response = handler(request, *args, **kwargs)
  449. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/views/status.py", line 60, in get
  450. return Response(serializer.data)
  451. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 563, in data
  452. ret = super(Serializer, self).data
  453. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 262, in data
  454. self._data = self.to_representation(self.instance)
  455. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 530, in to_representation
  456. ret[field.field_name] = field.to_representation(attribute)
  457. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 686, in to_representation
  458. self.child.to_representation(item) for item in iterable
  459. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
  460. self._fetch_all()
  461. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
  462. self._result_cache = list(self._iterable_class(self))
  463. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
  464. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  465. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
  466. cursor.execute(sql, params)
  467. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  468. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  469. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  470. return executor(sql, params, many, context)
  471. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  472. return self.cursor.execute(sql, params)
  473. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  474. raise dj_exc_value.with_traceback(traceback) from exc_value
  475. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  476. return self.cursor.execute(sql, params)
  477. django.db.utils.ProgrammingError: relation "core_worker" does not exist
  478. LINE 1: ...cefully_stopped", "core_worker"."cleaned_up" FROM "core_work...
  479. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement