Containerize crond

Bug #1701254 reported by Oliver Walsh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Dan Prince

Bug Description

A number of openstack puppet modules create crontabs, usually for housekeeping tasks. We need to handle these jobs in a containerized environment.

Tags: containers
Oliver Walsh (owalsh)
Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Oliver Walsh (owalsh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/478915
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=eb7c04a9fcfae68032d3e457325532699a2148f1
Submitter: Jenkins
Branch: master

commit eb7c04a9fcfae68032d3e457325532699a2148f1
Author: Oliver Walsh <email address hidden>
Date: Thu Jun 29 13:34:25 2017 +0100

    Include cron in container images

    As this is required by a number of services, include it in the base container.

    Change-Id: Ie16fb4539481a3c192cff8220a97daa4c70467fc
    Partial-Bug: 1701254

Revision history for this message
Emilien Macchi (emilienm) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in tripleo:
status: In Progress → Triaged
assignee: Oliver Walsh (owalsh) → nobody
Changed in tripleo:
assignee: nobody → Oliver Walsh (owalsh)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/478919
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ea4188cb4a3ce8d5febe9121374e15646b8c0cb4
Submitter: Jenkins
Branch: master

commit ea4188cb4a3ce8d5febe9121374e15646b8c0cb4
Author: Oliver Walsh <email address hidden>
Date: Thu Jun 29 13:59:26 2017 +0100

    Add support for running crontabs in containers

    This change enables the puppet cron resource in docker-puppet.py and adds user
    crontabs to the paths copied from the config containers.

    Only the nova crontab is configured for now. Other services will require
    similar changes to run their crontabs.

    Partial-Bug: 1701254

    Change-Id: I2d1d0f0d77908a132472cf4bc475f8bd526af504
    Depends-On: Ie16fb4539481a3c192cff8220a97daa4c70467fc

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

Related fix proposed to branch: master
Review: https://review.openstack.org/485858

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/485863

Changed in tripleo:
assignee: Oliver Walsh (owalsh) → Dan Prince (dan-prince)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/485865
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3f310259b931d43aa7f411db1f84c88a5d730739
Submitter: Jenkins
Branch: master

commit 3f310259b931d43aa7f411db1f84c88a5d730739
Author: Dan Prince <email address hidden>
Date: Thu Jul 20 20:03:18 2017 -0400

    Add heat api container to run cron purge_deleted

    The purge-deleted cron job is created by puppet in
    /var/spool/cron/heat. This creates a cron container
    to run that in an environment where it has access to the
    heat.conf and heat-manage binaries.

    Change-Id: Ib9fe8e4f6dbd41021df7cf152fd18569c189d2e2
    Partial-bug: #1701254

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/485873
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=cd857451b8be27a868ab15f70379a33b7becf07b
Submitter: Jenkins
Branch: master

commit cd857451b8be27a868ab15f70379a33b7becf07b
Author: Dan Prince <email address hidden>
Date: Thu Jul 20 20:12:18 2017 -0400

    Add cinder cron container to run db purge

    The cinder db purge cron job is created by puppet in
    /var/spool/cron/cinder. This creates a cron container to run
    that in an environment where it has access to cinder.conf
    and the cinder-manage binaries.

    Change-Id: I02ae32a6dcd8569e2e2390063d4d935d05545a78
    Partial-bug: #1701254

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/485858
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ee34cd6778646eb5930490ed1e0cf5a1aff56882
Submitter: Jenkins
Branch: master

commit ee34cd6778646eb5930490ed1e0cf5a1aff56882
Author: Dan Prince <email address hidden>
Date: Thu Jul 20 19:45:15 2017 -0400

    nova_api_cron docker fix: add /var/spool/cron/nova

    This patch reworks the nova_api_cron container so that it contains
    the /var/spool/cron cron for the nova user and also so that it
    contains the correct nova.conf file.

    This should allow kolla-start to copy the correct config files
    into place and then start the cron service to run the nova
    tasks periodically.

    Change-Id: Ib6b2ca5af5419130fb9c83f83d6f4bf97410e870
    Related-bug: #1701254

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

Reviewed: https://review.openstack.org/485863
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=c18b56e7902ff6ac685429375ca1deae1dbcb47e
Submitter: Jenkins
Branch: master

commit c18b56e7902ff6ac685429375ca1deae1dbcb47e
Author: Dan Prince <email address hidden>
Date: Thu Jul 20 19:55:04 2017 -0400

    Add keystone cron container to run token_flush

    The token-flush cron job is created in /var/spool/cron/keystone
    by puppet. This patch creates a cron container to run that
    in an environment where it has access to keystone.conf
    and the keystone-manage binaries.

    Change-Id: Ie305ee9990657c66938250d1d6e19fef94675997
    Partial-bug: 1701254

Changed in tripleo:
milestone: pike-3 → pike-rc1
Changed in tripleo:
milestone: pike-rc1 → queens-1
Dan Prince (dan-prince)
Changed in tripleo:
milestone: queens-1 → pike-rc1
Changed in tripleo:
importance: Medium → High
Changed in tripleo:
milestone: pike-rc1 → pike-rc2
Changed in tripleo:
milestone: pike-rc2 → queens-1
Dan Prince (dan-prince)
Changed in tripleo:
status: In Progress → Fix Released
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.