cinder, ovn and manila bundles should not run with --user=root

Bug #1781534 reported by Michele Baldessari
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
In Progress
High
Kamil Sambor

Bug Description

This is unnecessary and not best practice. The reason this is the case is that other services (rabbit/galera/etc) drop to a non-root user by themselves, so this was overlooked.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/582456

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Michele Baldessari (michele) wrote : Re: cinder and manila bundles should not run with --user=root
summary: - cinder and manila bundles should not run with --user=root
+ cinder, ovn and manila bundles should not run with --user=root
Revision history for this message
Michele Baldessari (michele) wrote :
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/582500
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=bebc5848da710ce6cfbbd495da47f4d70c3c86b1
Submitter: Zuul
Branch: master

commit bebc5848da710ce6cfbbd495da47f4d70c3c86b1
Author: Numan Siddique <email address hidden>
Date: Fri Jul 13 15:57:34 2018 +0530

    Remove setting root user for ovn dbs pacemaker bundle

    This patch removes the option "--user=root" from the docker options.
    Right now the kolla image - ovn-northd which is used for ovn dbs pacemaker
    bundle doesn't set the user 'openvswitch'. So even after this patch
    is merged, the ovn bundle will be started as root user.

    This patch is 1st step towards running ovn dbs pacemaker as a non root user.

    It requires changes in
     - in ovn-northd kolla image and
     - in the ovn-dbs.yaml pacemaker service file in T-H-T to give the proper
       permissions to the log and data folders
    to run the ovn pacemaker bundle as a non root user which will be handled
    in follow up patches.

    Related-bug: #1781534
    Change-Id: I32f37522b012967f12c459cdf4cf14c43c079231

Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

Seems that some services are still missing. Is this still planned work?

Changed in tripleo:
milestone: stein-3 → stein-rc1
Changed in tripleo:
milestone: stein-rc1 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Kamil Sambor (ksambor)
Changed in tripleo:
assignee: Michele Baldessari (michele) → Kamil Sambor (ksambor)
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-tripleo (stable/queens)

Related fix proposed to branch: stable/queens
Review: https://review.opendev.org/710438

wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Michele Baldessari (<email address hidden>) on branch: master
Review: https://review.opendev.org/582456

wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-tripleo (stable/queens)

Change abandoned by Flavio Fernandes (<email address hidden>) on branch: stable/queens
Review: https://review.opendev.org/710438
Reason: .

Changed in tripleo:
milestone: victoria-1 → victoria-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.