[library] database task is not idempotent

Bug #1524747 reported by Roman Sokolkov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Sergii Golovatiuk

Bug Description

"database" task should be refactored in favor idempotency.

Environment:
- MOS 7.0, MOS 8.0
- Any environment

How to reproduce:
puppet apply --noop /etc/puppet/modules/osnailyfacter/modular/database/database.pp

Expected result:
grep out_of_sync /var/lib/puppet/state/last_run_summary.yaml
    out_of_sync: 0

Actual result:
root@node-14:~# grep out_of_sync /var/lib/puppet/state/last_run_summary.yaml
    out_of_sync: 9

Details:
Puppet output - http://paste.openstack.org/show/481463/

Part of this bug should be fixed by: https://bugs.launchpad.net/fuel/+bug/1524731

Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
milestone: none → 8.0
status: New → Confirmed
tags: added: area-library
tags: added: team-bugfix
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 8.0 → 9.0
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Michael Polenchuk (mpolenchuk)
Revision history for this message
Michael Polenchuk (mpolenchuk) wrote :

Will be resolved by "Switch to upstream mysql and galera modules" (https://review.openstack.org/267232)

Changed in fuel:
assignee: Michael Polenchuk (mpolenchuk) → Fuel Library Team (fuel-library)
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Julia Varlamova (jvarlamova)
Changed in fuel:
assignee: Julia Varlamova (jvarlamova) → nobody
Changed in fuel:
assignee: nobody → Alex Schultz (alex-schultz)
status: Confirmed → In Progress
Changed in fuel:
assignee: Alex Schultz (alex-schultz) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/267232
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=041aa989a0a701622f06782197413288bdffb19e
Submitter: Jenkins
Branch: master

commit 041aa989a0a701622f06782197413288bdffb19e
Author: Alex Schultz <email address hidden>
Date: Wed Jan 13 16:46:39 2016 -0700

    Switch to upstream mysql and galera modules

    This change switches out our mysql and galera modules for the
    puppetlabs-mysql and michaeltchapman-galera.

    This change includes the following updates:
     - mysql module removed
     - galera module removed
     - mysql hacks were removed from openstacklib module
       https://review.fuel-infra.org/#/c/16445/
     - galera::client moved to openstack::galera::client
     - db modulars updated to use openstack::galera::client
     - database task updated to use galera module
     - create cluster::mysql to do pacemaker configuration for mysql
     - remove osnailyfacter::mysql_user
     - additional database noop tests
     - additional unit tests

    Change-Id: Idd0957c677b87a2d8794e993417ef9e2f0ddf4a6
    Implements-Blueprint: mysql-galera-librarian
    Closes-Bug: #1524747

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Sergey Novikov (snovikov) wrote :

Verified on 9.0 MOS iso #366

there is only one resource change "File[/root/.my.cnf]", but as I know, it's expected change

Changed in fuel:
status: Fix Committed → 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.