Bug 1417752
| Summary: | Satellite Capsule syncs error out when there are more than a certain amount of characters in the content view name | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sam Yangsao <syangsao> |
| Component: | Content Management | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Lai <ltran> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.7 | CC: | aladke, avroy, bbuckingham, ehelms, heiko.hemmerling, juwatts, mmccune, sraut |
| Target Milestone: | 6.10.0 | Keywords: | Reopened, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-16 14:08:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. I have the same problem with Satellite 6.8. To me it looks like the generated data name, which causes problems here, has a length of 287 characters. That is obviously 32 characters too many. The part of this file name that I am responsible for is 56 characters. Assuming that the organization, lifecycle and content view are represented in these 56 characters, that is by no means too much. I find the far too long repo names that RedHat is responsible for much more difficult here. Now these repos are called that and it is difficult to change that afterwards. So the only acceptable solution is to remove or extend the 255 character limit! Otherwise the capsule cannot be used by us, which I would have to escalate accordingly. We are going to re-open this bug as it will be resolved in Satellite 6.10 with our move to Pulp 3 as the content storage backend for Satellite. Pulp 3 uses an entirely different database and filesystem layout for storing content and repositories that will not face the 255 character limitation as outlined in this bug. We will add this to our verification and test cycle of Satellite 6.10 to ensure that this issue does not effect our customers and users. Steps to retest: 1. Register a capsule to a sat via an ak 2. Ensure subscriptions and repos are present by running "subscription-manager repos" or "yum repolist" 3. Create a cv with over 255 characters in the name 4. Create a cv with exactly 255 characters in the name 5. Add necessary a sample repo to the cv created in 4 and publish 6. Check tasks page Expected: 3. Should be an error that says only have a 255 character limit 4. Should be able to create cv successfully 6. Actions::Katello::ContentView::CapsuleGenerateAndSync should be successful Actual: 3. There's an error that says only have a 255 character limit 4. Able to create cv successfully 6. Actions::Katello::ContentView::CapsuleGenerateAndSync is successful Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4702 |
Description of problem: Satellite Capsule syncs error out when there are more than a certain number characters in the content view name Version-Release number of selected component (if applicable): 6.2.7 How reproducible: Always Steps to Reproduce: 1. Create a content view with a long name 2. Sync the content view to a Capsule server 3. The following errors occur in the Task Error tab: Satellite server - in GUI - Syncrhonize capsule content Monitor > Task > Errors output below: Errors: 500 Internal Server Error 500 Internal Server Error 500 Internal Server Error 500 Internal Server Error 404 Resource Not Found 404 Resource Not Found 404 Resource Not Found 404 Resource Not Found When looking at /var/log/messages on Capsule server: Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) [Errno 36] File name too long: '/var/lib/pulp/importers/Default_Organization-SANDBOX-RHEL_SAP_HANA_EUS-Red_Hat_Enterprise_Linux_Scalable_File_System__for_RHEL_Server__-_Extended_Update_Support-Red_Hat_Enterprise_Linux_Scalable_File_System_for_RHEL_6_Server_-_Extended_Update_Support_RPMs_x86_64_6Server-yum_importer' Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) Traceback (most recent call last): Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) response = wrapped_callback(request, *callback_args, **callback_kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return self.dispatch(request, *args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return handler(request, *args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return _verify_auth(self, operation, super_user_only, method, *args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) value = method(self, *args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py", line 130, in wrapper Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return func(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/repositories.py", line 128, in post Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) distributor_list=repo_data.get('distributors') Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 411, in create_repo Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) importer_controller.set_importer(repo_id, importer_type_id, importer_repo_plugin_config) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/celery/local.py", line 167, in <lambda> Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return super(Task, self).__call__(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return super(PulpTask, self).__call__(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) return self.run(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/importer.py", line 112, in set_importer Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) importer.save() Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/db/model/__init__.py", line 283, in save Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) self._write_pem_file(key, path) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/server/db/model/__init__.py", line 344, in _write_pem_file Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) misc.mkdir(os.path.dirname(self._pki_path)) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/misc.py", line 48, in mkdir Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) os.makedirs(path) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) File "/usr/lib64/python2.7/os.py", line 157, in makedirs Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) mkdir(name, mode) Jan 30 12:41:37 sat6cap pulp: pulp.server.webservices.middleware.exception:ERROR: (13235-57152) OSError: [Errno 36] File name too long: '/var/lib/pulp/importers/Default_Organization-SANDBOX-RHEL_SAP_HANA_EUS-Red_Hat_Enterprise_Linux_Scalable_File_System__for_RHEL_Server__-_Extended_Update_Support-Red_Hat_Enterprise_Linux_Scalable_File_System_for_RHEL_6_Server_-_Extended_Update_Support_RPMs_x86_64_6Server-yum_importer' Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) Exception adding importer to repo [Default_Organization-SANDBOX-RHEL_SAP_HANA_67EUS-Red_Hat_Enterprise_Linux_Scalable_File_System__for_RHEL_Server__-_Extended_Update_Support-Red_Hat_Enterprise_Linux_Scalable_File_System_for_RHEL_6_Server_-_Extended_Update_Support_RPMs_x86_64_6Server]; the repo will be deleted Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) Traceback (most recent call last): Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 411, in create_repo Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) importer_controller.set_importer(repo_id, importer_type_id, importer_repo_plugin_config) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/celery/local.py", line 167, in <lambda> Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) return super(Task, self).__call__(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) return super(PulpTask, self).__call__(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__ Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) return self.run(*args, **kwargs) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/importer.py", line 112, in set_importer Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) importer.save() Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/db/model/__init__.py", line 283, in save Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) self._write_pem_file(key, path) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/server/db/model/__init__.py", line 344, in _write_pem_file Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) misc.mkdir(os.path.dirname(self._pki_path)) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/misc.py", line 48, in mkdir Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) os.makedirs(path) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) File "/usr/lib64/python2.7/os.py", line 157, in makedirs Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) mkdir(name, mode) Jan 30 12:41:37 sat6cap pulp: pulp.server.controllers.repository:ERROR: (13234-42560) OSError: [Errno 36] File name too long: '/var/lib/pulp/importers/Default_Organization-SANDBOX-RHEL_SAP_HANA_67EUS-Red_Hat_Enterprise_Linux_Scalable_File_System__for_RHEL_Server__-_Extended_Update_Support-Red_Hat_Enterprise_Linux_Scalable_File_System_for_RHEL_6_Server_-_Extended_Update_Support_RPMs_x86_64_6Server-yum_importer' Actual results: Capsule synchronization dies and errors out, also hangs the synchronization job Expected results: Capsule synchronization should occur regardless of the length of the name of the content view Additional info: Both the Satellite and Capsule servers are using XFS filesystems