Unable to run GCORE command inside contrai container

Solution In Progress - Updated -

Issue

  • When we run the gcore command we get the following error:
(analytics-collector)[root@overcloud-contrailcontroller-0 /]$ gcore 1
ptrace: Operation not permitted.
You can't do that without a process to debug.
The program is not being run.
gcore: failed to create core.1
  • We have added the capability to the container with following steps :
    1) Edited the /var/lib/tripleo-config/hashed-docker-container-startup-config-step_5.json and added capability to collector section
    "cap_add": [
      "SYS_PTRACE"
    ],

2) Ran paunch:

sudo paunch --debug apply --managed-by paunch --config-id tripleo_step5 --file /var/lib/tripleo-config/hashed-docker-container-startup-config-step_5.json
  • Can you provide me the correct steps to follow to add the SYS_PTRACE capability to a container in RHSOP 13 environment ?

Environment

  • Red Hat OpenStack Platform 13.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In