Using both octavia::db::sync and octavia::db::sync_persistence fail because of dplicate declarations

Bug #2052389 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-octavia
Fix Released
Critical
Takashi Kajinami

Bug Description

During my attempt to enable jobboard settings[1], I noticed we can't use both octavia::db::sync and octavia::db::sync_persistence in a single manifest, because of the following error.

2024-02-04 17:09:41 +0000 Puppet (err): Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[octavia-db-sync] is already declared at (file: /etc/puppetlabs/code/modules/octavia/manifests/db/sync.pp, line: 23); cannot redeclare (file: /etc/puppetlabs/code/modules/octavia/manifests/db/sync_persistence.pp, line: 23) (file: /etc/puppetlabs/code/modules/octavia/manifests/db/sync_persistence.pp, line: 23, column: 3) on node np0036645479

[1] https://review.opendev.org/c/openstack/puppet-openstack-integration/+/907672

Changed in puppet-octavia:
assignee: nobody → Takashi Kajinami (kajinamit)
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-octavia (master)
Changed in puppet-octavia:
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-octavia (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-octavia/+/907685
Committed: https://opendev.org/openstack/puppet-octavia/commit/c1b822df5e87884f0907af5dc3c19df727c5e854
Submitter: "Zuul (22348)"
Branch: master

commit c1b822df5e87884f0907af5dc3c19df727c5e854
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 5 02:19:15 2024 +0900

    Use different resource name for persistence db setup

    ... to avoid conflict with core db setup.

    Closes-Bug: #2052389
    Change-Id: Ib192c9d09f5134404dc055e31a156a4c3a748ff3

Changed in puppet-octavia:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-octavia (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/puppet-octavia/+/907922

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-octavia (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/puppet-octavia/+/914592

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-octavia (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/puppet-octavia/+/914592
Committed: https://opendev.org/openstack/puppet-octavia/commit/6eb032c8f8931457e02b4af90e3645a3613041b9
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 6eb032c8f8931457e02b4af90e3645a3613041b9
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 5 02:19:15 2024 +0900

    Use different resource name for persistence db setup

    ... to avoid conflict with core db setup.

    Closes-Bug: #2052389
    Change-Id: Ib192c9d09f5134404dc055e31a156a4c3a748ff3
    (cherry picked from commit c1b822df5e87884f0907af5dc3c19df727c5e854)
    (cherry picked from commit d5114f03ed2d518edd00a77c2456c908f4308945)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-octavia (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/puppet-octavia/+/907922
Committed: https://opendev.org/openstack/puppet-octavia/commit/d5114f03ed2d518edd00a77c2456c908f4308945
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit d5114f03ed2d518edd00a77c2456c908f4308945
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 5 02:19:15 2024 +0900

    Use different resource name for persistence db setup

    ... to avoid conflict with core db setup.

    Closes-Bug: #2052389
    Change-Id: Ib192c9d09f5134404dc055e31a156a4c3a748ff3
    (cherry picked from commit c1b822df5e87884f0907af5dc3c19df727c5e854)

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

This issue was fixed in the openstack/puppet-octavia 24.0.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.