Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1417752 - Satellite Capsule syncs error out when there are more than a certain amount of characters in the content view name
Summary: Satellite Capsule syncs error out when there are more than a certain amount o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.7
Hardware: All
OS: Linux
unspecified
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-30 21:40 UTC by Sam Yangsao
Modified: 2021-11-16 14:08 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:08:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3215281 0 None None None 2018-02-06 07:29:46 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:08:40 UTC

Description Sam Yangsao 2017-01-30 21:40:38 UTC
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

Comment 4 Bryan Kearney 2018-09-04 18:01:57 UTC
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.

Comment 5 hhemmerling 2021-04-29 10:32:44 UTC
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.

Comment 6 Mike McCune 2021-05-04 16:54:24 UTC
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.

Comment 7 Lai 2021-06-14 20:11:29 UTC
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

Comment 10 errata-xmlrpc 2021-11-16 14:08:26 UTC
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


Note You need to log in before you can comment on or make changes to this bug.