Project

Profile

Help

Task #5787

closed

Have workers auto-set their own names to not require users to set them

Added by bmbouter almost 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 62
Quarter:

Description

Problem

Managing worker names is not really important to users, but they have to think about it

Solution

1) Remove the -n reserved-resource-worker-%i@%%h from https://github.com/pulp/ansible-pulp/blob/master/roles/pulp-workers/templates/pulpcore-worker%40.service.j2#L18 and the documentation.

2) Have the worker set it's own name here and if it's not named as "resource-manager" then make the worker name "pulpcore-worker-UUID" where UUID is a uuid4().

Also available in: Atom PDF