Develop a script which applies 9.x updates to masternode

Bug #1605602 reported by Andrey Maximov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Dmitry Burmistrov
Mitaka
Fix Released
Critical
Ivan Berezovskiy

Bug Description

we need to develop a script which applies updates for master node from update repository. Let's call it "update-master-node.sh"
This script should handle the following cases
1) database schema update with automatic creation of database backup.
2) changes in configuration files.
3) restart of all affected services.

I think (2) and (3) should be achieved by rerunning puppet after packages update.

Implementation suggestion:
We have set of puppet manifest which are applied during boostrap (https://github.com/openstack/fuel-library/blob/master/deployment/puppet/fuel/examples/deploy.sh)
we can add a separate update.pp which will install updates.

Andrey Maximov (maximov)
Changed in fuel:
importance: Undecided → High
assignee: nobody → Oleksiy Molchanov (omolchanov)
milestone: none → 9.1
description: updated
Andrey Maximov (maximov)
description: updated
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: New → Confirmed
tags: added: area-library
tags: added: team-bugfix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/346119

Dmitry Pyzhov (dpyzhov)
tags: added: 9.1-proposed
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.1 → 10.0
Dmitry Pyzhov (dpyzhov)
tags: added: tech-debt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
assignee: Oleksiy Molchanov (omolchanov) → Ivan Berezovskiy (iberezovskiy)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/346119
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=d9a449f94d3320e7036979edc396d12631ab3e67
Submitter: Jenkins
Branch: stable/mitaka

commit d9a449f94d3320e7036979edc396d12631ab3e67
Author: Oleksiy Molchanov <email address hidden>
Date: Fri Jul 22 19:34:50 2016 +0300

    Add update-master-node script

    This is initial script for updating fuel 9.x. In future
    it will use latest parameter for fuel packages in puppet.
    It runs fuel/examples/deploy.sh as for boostrap admin node
    process (puppet tasks run), then restart all important
    master node services. Logging for this script is also added.

    Change-Id: Ic4ef722b861d260c3679dca9c74f6cc62052c376
    Closes-Bug: 1605602

Revision history for this message
Aleksandra Fedorova (bookwar) wrote :

Reopen.

This patch breaks builds of fuel-library rpm packages, see result of mitaka-fuel-pkg-build-centos7 test job.

Revision history for this message
Aleksandra Fedorova (bookwar) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (master)

Change abandoned by Ivan Berezovskiy (<email address hidden>) on branch: master
Review: https://review.openstack.org/359813

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/359808
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=934a8a5471d80ff9ccba222e717d35d4a806238b
Submitter: Jenkins
Branch: stable/mitaka

commit 934a8a5471d80ff9ccba222e717d35d4a806238b
Author: iberezovskiy <email address hidden>
Date: Wed Aug 24 14:31:19 2016 +0300

    Fix fuel-library package build

    Closes-Bug: #1605602

    Change-Id: I74e2ca95f31983d36ac8f17f3f5ee6c9f92c1ef0

Changed in fuel:
assignee: Ivan Berezovskiy (iberezovskiy) → Dmitry Burmistrov (dmburmistrov)
Changed in fuel:
assignee: Dmitry Burmistrov (dmburmistrov) → Maksim Malchuk (mmalchuk)
Changed in fuel:
assignee: Maksim Malchuk (mmalchuk) → Ivan Berezovskiy (iberezovskiy)
Changed in fuel:
assignee: Ivan Berezovskiy (iberezovskiy) → Dmitry Burmistrov (dmburmistrov)
Changed in fuel:
assignee: Dmitry Burmistrov (dmburmistrov) → Georgy Kibardin (gkibardin)
Changed in fuel:
assignee: Georgy Kibardin (gkibardin) → Dmitry Burmistrov (dmburmistrov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/358682
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=66229fdf424971cf20f95e34d4873f92da38387b
Submitter: Jenkins
Branch: master

commit 66229fdf424971cf20f95e34d4873f92da38387b
Author: Oleksiy Molchanov <email address hidden>
Date: Fri Jul 22 19:34:50 2016 +0300

    Add update-master-node script

    This script updates master node in fuel 9.x releases.
    It upgrades system packages, runs fuel/examples/deploy.sh
    as for boostrap admin node process (puppet tasks run),
    then restarts all important master node services.
    Logging for this script is also added.

    Closes-bug: #1605602

    Related-bug: #1616472
    Related-bug: #1616393

    Change-Id: Ic4ef722b861d260c3679dca9c74f6cc62052c376

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 10.0.0rc1

This issue was fixed in the openstack/fuel-library 10.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 10.0.0

This issue was fixed in the openstack/fuel-library 10.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.