Db purge cron jobs should be enabled after database is initialized

Bug #1955829 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-aodh
Fix Released
Low
Takashi Kajinami
puppet-cinder
Fix Released
Low
Takashi Kajinami
puppet-glance
Fix Released
Low
Takashi Kajinami
puppet-heat
Fix Released
Low
Takashi Kajinami
puppet-keystone
Fix Released
Low
Takashi Kajinami
puppet-manila
Fix Released
Low
Takashi Kajinami

Bug Description

Currently db purge cron jobs are enabled after the relevant packages are installed.
However at that timing database is not yet initialized and the cron command can't succeed.

We should ensure dbsync is completed and database is initialized before enabling the cron jobs.

Changed in puppet-cinder:
importance: Undecided → Low
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in puppet-cinder:
status: New → In Progress
Changed in puppet-glance:
importance: Undecided → Low
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in puppet-heat:
importance: Undecided → Low
Changed in puppet-keystone:
importance: Undecided → Low
Changed in puppet-manila:
importance: Undecided → Low
Changed in puppet-heat:
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in puppet-keystone:
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in puppet-manila:
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in puppet-glance:
status: New → In Progress
Changed in puppet-heat:
status: New → In Progress
Changed in puppet-keystone:
status: New → In Progress
Changed in puppet-manila:
status: New → In Progress
Changed in puppet-aodh:
importance: Undecided → Low
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-aodh (master)
Changed in puppet-aodh:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-cinder (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-cinder/+/823010
Committed: https://opendev.org/openstack/puppet-cinder/commit/71349de023d0cfea29a12fb0788ef74d1feaf3f9
Submitter: "Zuul (22348)"
Branch: master

commit 71349de023d0cfea29a12fb0788ef74d1feaf3f9
Author: Takashi Kajinami <email address hidden>
Date: Mon Dec 27 22:22:22 2021 +0900

    Enable DB purge cron job after database is initialized

    The DB purge operation expects the target database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug: #1955829
    Change-Id: I389d966623894c23fe596bec9e4942f3beee8303

Changed in puppet-cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-manila (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-manila/+/823012
Committed: https://opendev.org/openstack/puppet-manila/commit/9be4e0e90518cf8a6d1bb05cb167ada357281cff
Submitter: "Zuul (22348)"
Branch: master

commit 9be4e0e90518cf8a6d1bb05cb167ada357281cff
Author: Takashi Kajinami <email address hidden>
Date: Mon Dec 27 22:25:29 2021 +0900

    Enable DB purge cron job after database is initialized

    The DB purge operation expects the target database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug #1955829
    Change-Id: Ib3ed541ee0b3a513efe961ba6142a0cbb09ee61a

Changed in puppet-manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-aodh (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-aodh/+/823034
Committed: https://opendev.org/openstack/puppet-aodh/commit/0f02d2408ad75e2aa78b85af883e5f3550e9f55c
Submitter: "Zuul (22348)"
Branch: master

commit 0f02d2408ad75e2aa78b85af883e5f3550e9f55c
Author: Takashi Kajinami <email address hidden>
Date: Tue Dec 28 13:05:34 2021 +0900

    Enable aodh-expirer cron job after database is initialized

    The aodh-expirer command expects the target database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug #1955829
    Change-Id: Ieff011ca2bd415d25df227fb7287c0878ec72220

Changed in puppet-aodh:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-keystone/+/823014
Committed: https://opendev.org/openstack/puppet-keystone/commit/258bd8c5e91ca3bc570c7be943b5f39959fbf75f
Submitter: "Zuul (22348)"
Branch: master

commit 258bd8c5e91ca3bc570c7be943b5f39959fbf75f
Author: Takashi Kajinami <email address hidden>
Date: Mon Dec 27 22:27:14 2021 +0900

    Enable trust flush cron job after database is initialized

    The trust flush operation expects the keystone database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug #1955829
    Change-Id: I71380611c0075bd0d5a1dcedca621066559e1e9d

Changed in puppet-keystone:
status: In Progress → Fix Released
Changed in puppet-heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-heat (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-heat/+/823011
Committed: https://opendev.org/openstack/puppet-heat/commit/67139207a9e8d3752280c3dcc78c264a3ff1eaa7
Submitter: "Zuul (22348)"
Branch: master

commit 67139207a9e8d3752280c3dcc78c264a3ff1eaa7
Author: Takashi Kajinami <email address hidden>
Date: Mon Dec 27 22:24:14 2021 +0900

    Enable DB purge cron job after database is initialized

    The DB purge operation expects the target database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug: #1955829
    Change-Id: I742ea262bde8b9412627a475c53b27d25e132787

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-glance/+/823013
Committed: https://opendev.org/openstack/puppet-glance/commit/a3a8c94430950dfd02aa677c7f6975d5ea9f8c5f
Submitter: "Zuul (22348)"
Branch: master

commit a3a8c94430950dfd02aa677c7f6975d5ea9f8c5f
Author: Takashi Kajinami <email address hidden>
Date: Mon Dec 27 22:26:22 2021 +0900

    Enable DB purge cron job after database is initialized

    The DB purge operation expects the target database is already
    initialized. This change ensures db sync is completed before cron job
    is enabled.

    Closes-Bug: #1955829
    Change-Id: Ibe5bac7978012c5bb3a6528047b0787b9636bce3

Changed in puppet-glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-cinder 20.1.0

This issue was fixed in the openstack/puppet-cinder 20.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-glance 20.1.0

This issue was fixed in the openstack/puppet-glance 20.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-heat 20.1.0

This issue was fixed in the openstack/puppet-heat 20.1.0 release.

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.