/api/versions does not contain information about 5.0.2 release

Bug #1365087 reported by Dmitry Pyzhov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Vladimir Kozhukalov

Bug Description

User can install 5.0 master node, upgrade to 5.1, install 5.0.2 openstack environment. However there is no way to get information about sha commits of puppet manifests in 5.0.2 release.

Solution is:
0) Jenkins: Build version-yaml artifact with other upgrade artifacts
1) Build system: copy version.yaml from DEPS_DIR to upgrade/release-versions/[openstack-version]-[fuel-version].yaml
2) Upgrade script: copy upgrade/config/*/version yaml somewhere in /etc
3) Nailgun: handle files from step (2) in /api/version
4) Kickstart should copy version.yaml to /etc/fuel/release_versions/[openstack-version]-[fuel-version].yaml

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Or we can create directory upgrade/releases/[openstack-version]-[fuel-version]/ and put openstack.yaml and version.yaml there.

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Build system should also provide upgrade/config/5.1/version.yaml.

Revision history for this message
Evgeniy L (rustyrobot) wrote :

Files in tar ball should be located in

release_versions/

Upgrade script will copy this files in

/etc/fuel/release_versions/

Nailgun should dynamically load yaml files from the directory (new versions should appear there without nailgun restart).

When user makes get request /api/version

User will see the next yaml
http://paste.openstack.org/show/105701/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Vladimir Kozhukalov (kozhukalov)
status: Triaged → In Progress
Nikolay Markov (nmarkov)
Changed in fuel:
assignee: Vladimir Kozhukalov (kozhukalov) → Nikolay Markov (nmarkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

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

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

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

Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Vladimir Kozhukalov (kozhukalov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/119036
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=12d6aed1c7c44d881630d99d1a0c6f6210461542
Submitter: Jenkins
Branch: master

commit 12d6aed1c7c44d881630d99d1a0c6f6210461542
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Sep 4 15:22:52 2014 +0400

    Added version.yaml into upgrade tarball

    Change-Id: I0639db715bdd2635e1395c723205b21a2a7e2b6d
    Closes-Bug: 1365087

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
description: updated
description: updated
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/119058
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=dc50ec9a75488ce65eba6b5762aa8f312ad36e79
Submitter: Jenkins
Branch: master

commit dc50ec9a75488ce65eba6b5762aa8f312ad36e79
Author: Evgeniy L <email address hidden>
Date: Thu Sep 4 17:12:58 2014 +0400

    Upgrades, copy release versions during openstack upgrade

    Openstack releases have different release
    cycle and their own versions, files with
    versions will be delivered in tar ball
    and then user will be able to see the
    list of versions which his system consists
    of via nailgun api.

    Change-Id: Ibb65dffa4142746427ef41a259d1671973691a96
    Related-bug: #1365087

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

Reviewed: https://review.openstack.org/119083
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=7774f09f3ac79df5d78c39fce2e75ddb480281e6
Submitter: Jenkins
Branch: master

commit 7774f09f3ac79df5d78c39fce2e75ddb480281e6
Author: Evgeniy L <email address hidden>
Date: Thu Sep 4 18:56:24 2014 +0400

    Upgrades, add pre upgrade hook, copy release version files

    For 5.0.x version we didn't have separate versions
    for openstack releases, now we have openstack patching
    and it's required for us to know what our system
    is consists of. In order to do it, we need to copy
    version.yaml files to `/etc/fuel/release_versions/`.

    Change-Id: I37b5917eec519ed83531c77d30351811267bc9c2
    Related-bug: #1365087

Changed in fuel:
assignee: Vladimir Kozhukalov (kozhukalov) → Nikolay Markov (nmarkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
assignee: Nikolay Markov (nmarkov) → Vladimir Kozhukalov (kozhukalov)
Evgeniy L (rustyrobot)
tags: added: patching upgrade
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/119049
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=406a9b4cf890a1fe3d19e68a6ade277a90923a09
Submitter: Jenkins
Branch: master

commit 406a9b4cf890a1fe3d19e68a6ade277a90923a09
Author: Nikolay Markov <email address hidden>
Date: Thu Sep 4 16:35:46 2014 +0400

    Release version YAML's in /api/version

    Closes-Bug: #1365087

    Change-Id: I636be95a2f796dec768d7af67b403f2466d14499

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

Reviewed: https://review.openstack.org/119342
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=7ab6da7488fa1644e722c29376b252c33883b97f
Submitter: Jenkins
Branch: master

commit 7ab6da7488fa1644e722c29376b252c33883b97f
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Sep 5 14:33:31 2014 +0400

    Copied version.yaml into fuel/release_versions

    We copy version.yaml into fuel/release_versions
    with the name <openstack_version>-<fuel_version>.yaml

    Change-Id: I725e92a57075fe94b1822843b24c4a00c9cf9364
    Closes-Bug: 1365087

Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

verified on fuel-5.1-upgrade-11-2014-09-17_21-40-34.tar.lrz

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.