Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent improvements #14415

Merged
merged 5 commits into from
May 28, 2024
Merged

Agent improvements #14415

merged 5 commits into from
May 28, 2024

Conversation

mjmac
Copy link
Contributor

@mjmac mjmac commented May 22, 2024

Backport PR that contains the following patches which will land on master and release/2.6:

  • DAOS-15849 control: Add client uid map to agent config
    Allow daos_agent to optionally handle unresolvable client
    uids via custom mapping. In deployments where the agent
    may not have access to the same user namespace as client
    applications (e.g. in containerized deployments), the
    client_user_map can provide a fallback mechanism for
    resolving the client uids to known usernames for the
    purpose of applying ACL permissions tests.

      Example agent config:
    
      credential_config:
        client_user_map:
          default:
            user: nobody
            group: nobody
          1000:
            user: joe
            group: blow
    
  • DAOS-15874 control: Add optional credential cache to agent
    On heavily-loaded client nodes where many processes are being
    launched by the same user or users, the admin may optionally
    enable the credential cache in the agent in order to lower
    agent overhead caused by generating identical credentials
    for each process owned by a user. The agent-generated
    credential is presented by the client process during pool/container
    connection and is used to evaluate ACL permissions for
    that connection.

      Example config:
      credential_config:
        cache_lifetime: 1m
    

Copy link

github-actions bot commented May 22, 2024

Bug-tracker data:
Errors are component not formatted correctly,Ticket number prefix incorrect,PR title is malformatted. See https://daosio.atlassian.net/wiki/spaces/DC/pages/11133911069/Commit+Comments,Unable to load ticket data
https://daosio.atlassian.net/browse/Agent

@mjmac mjmac changed the title dev/mjmac/DAOS 15849 Agent improvements May 22, 2024
Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No errors found by checkpatch.

@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14415/1/execution/node/1262/log

kjacque and others added 3 commits May 22, 2024 13:17
A change further up in the stack revealed that "ERROR" wasn't
accepted as a log mask string at the engine level.

Signed-off-by: Kris Jacque <[email protected]>
Allow daos_agent to optionally handle unresolvable client
uids via custom mapping. In deployments where the agent
may not have access to the same user namespace as client
applications (e.g. in containerized deployments), the
client_user_map can provide a fallback mechanism for
resolving the client uids to known usernames for the
purpose of applying ACL permissions tests.

Example agent config:

credential_config:
  client_user_map:
    default:
      user: nobody
      group: nobody
    1000:
      user: joe
      group: blow

Features: control
Required-githooks: true
Change-Id: I72905ccc5ddee27fc2101aa4358a14e352c86253
Signed-off-by: Michael MacDonald <[email protected]>
On heavily-loaded client nodes where many processes are being
launched by the same user or users, the admin may optionally
enable the credential cache in the agent in order to lower
agent overhead caused by generating identical credentials
for each process owned by a user. The agent-generated
credential is presented by the client process during pool/container
connection and is used to evaluate ACL permissions for
that connection.

Example config:
credential_config:
  cache_lifetime: 1m

Features: control
Required-githooks: true
Change-Id: I6ae2a8be1dd97ef14e0ccef0283d65bc1fabc4ed
Signed-off-by: Michael MacDonald <[email protected]>
@mjmac mjmac force-pushed the dev/mjmac/DAOS-15849 branch from e61bbd7 to 944c359 Compare May 22, 2024 13:18
Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No errors found by checkpatch.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No errors found by checkpatch.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No errors found by checkpatch.

@jolivier23 jolivier23 merged commit 922ffe3 into google/2.4 May 28, 2024
32 of 35 checks passed
@jolivier23 jolivier23 deleted the dev/mjmac/DAOS-15849 branch May 28, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants