255 character length too short for content view names
Description of problem:
Pulp id naming convention creates names longer than 255 characters not allowing for content views to publish/promote
Refer to discussion on bugzilla for more information from a pulp perspective. Is there anything that can be done from katello to improve the user experience in this case?
Steps to Reproduce:
1.Create content view
2.Use a name of 254 characters
3.Try to publish
Content view fails with following error in the logs:
Validation failed: Pulp is too long (maximum is 255 characters)
Content view to publish/promote
The pulp id consists of the Organization name, lifecycle environment, product, repository name, and content view version. The content view can be less than 254 characters for this to work, but the concatenation of all these can produce names longer than 255 characters in length.
Fixes #17949 - adjust generation of pulp_id
This changes how we generate a pulp_id. Now
for all library instances, we generate a random uuid
and then for each clone we construct a combination of
org id, env label, cv label, and the library instance's uuid.
This also seperates the pulp_id and the docker repository name in pulp
allowing for these to be different