[upgrade] Network template is applied for old cluster, not new

Bug #1618408 reported by Vladimir Khlyunev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vladimir Khlyunev

Bug Description

7.0MU5
8.0MU2+latest proposed packages
nailgun package version fuel-nailgun-8.0.0-1.mos8270.noarch
snapshot is not available due to backslash escaping issue

Steps to reproduce:
1 - Deploy 7.0 fuel + HA + ceph cluster using network template
2 - Upgrade master node to 8.0 + latest MU (ensure that nailgun package version is 8270 or above)
3 - Download network template from cluster (fuel --env 1 network-template --download)
4 - Modify network template according to doc (switch default nic mapping to enp0s* names and create additional sections per each host in old cluster with eth* names)
5 - octane upgrade-env --template {file} {ENV_ID}
6 - Download network template from seed cluster (fuel --env 2 network-template --download)

Expected:
Modified template was uploaded to the new cluster

Actual:
Modified template was uploaded to the original cluster

Root cause:
https://github.com/openstack/fuel-octane/blob/master/octane/commands/upgrade_env.py#L44 old env was used here, should be new

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/362780

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

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

Changed in fuel:
assignee: nobody → Vladimir Khlyunev (vkhlyunev)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (master)

Reviewed: https://review.openstack.org/362796
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=5989919ed2f11fcd3aa2a5342a8f2487c28eb855
Submitter: Jenkins
Branch: master

commit 5989919ed2f11fcd3aa2a5342a8f2487c28eb855
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Aug 30 13:58:24 2016 +0300

    Upload net template to seed env while cloning

    Right now there is a typo in network template uploading code
    which leads to uploading of template to existing cluster but expected
    behavior is uploading to new cluster.

    Change-Id: I2c52921e367216bcdf39682a43a2b0940e4cb8c3
    Closes-bug:1618408

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

Reviewed: https://review.openstack.org/362780
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=fade569a63d7735b4b2164649c25e90bef9c17a8
Submitter: Jenkins
Branch: stable/8.0

commit fade569a63d7735b4b2164649c25e90bef9c17a8
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Aug 30 13:58:24 2016 +0300

    Upload net template to seed env while cloning

    Right now there is a typo in network template uploading code
    which leads to uploading of template to existing cluster but expected
    behavior is uploading to new cluster.

    Change-Id: I2c52921e367216bcdf39682a43a2b0940e4cb8c3
    Closes-bug:1618408

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (stable/mitaka)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (stable/mitaka)
Download full text (4.1 KiB)

Reviewed: https://review.openstack.org/365042
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=378a8d70a57f5ad91a74c844e170cc5a62e02441
Submitter: Jenkins
Branch: stable/mitaka

commit c95b137224601631ea6cc87e78a9f2a9fae5e937
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 17:34:50 2016 +0300

    Return removed CEPH_UPSTART_VERSION constant

    Change-Id: I89ca8bfb76fd5af1bd44017104e8f1fa73240db9
    Related-Bug: #1619311

commit a54ab589635b9b1a5368c455078570e3d0cce2f2
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 00:51:22 2016 +0300

    Unit tests and fixes for nova_migrate_flavor_data

    Some unit test cases were wrote alongside with some fixes

    Change-Id: Ie4d23a4238beb6c9d42637bb16fc1a55c10993a4
    Related-Bug: #1619311

commit 243a2ce5b6e8b473011c280ed1b691e3af7efc5b
Author: Ilya Kharin <email address hidden>
Date: Thu Sep 1 17:53:57 2016 +0300

    Perform flavor data migrations only for 7.0 envs

    The next command performs data migrations for flavors:

      nova-manage db migrate_flavor_data

    This migration have to be executed only on environments with the Kilo
    version.

    Change-Id: Ic65c4b1bc96ca69e8b74dd1a969953ac4283578d
    Closes-Bug: #1619311

commit 10409edb220584c921ae857032da22b0b3f1c615
Author: Ilya Kharin <email address hidden>
Date: Tue Aug 30 18:15:42 2016 +0300

    Do not upgrade libvirt packages to 8.0

    Libvirt packages have not to be upgraded to the version that is shipped
    by the 8.0 release.

    Change-Id: I4ebd9722cdfd02476ba743c2a713baf5efed704b
    Partial-Bug: #1618517

commit f717784237e14d3deaa687e563a0a11068f2a3bc
Author: Sergey Abramov <email address hidden>
Date: Tue Aug 30 14:27:56 2016 +0300

    Add validation on upgrade node in isolation

    required for fix problem with update first
    controller without isolation

    Change-Id: Ie3a07eb12ad306b6bdfc7f91d5ec922e19d48017

commit 5989919ed2f11fcd3aa2a5342a8f2487c28eb855
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Aug 30 13:58:24 2016 +0300

    Upload net template to seed env while cloning

    Right now there is a typo in network template uploading code
    which leads to uploading of template to existing cluster but expected
    behavior is uploading to new cluster.

    Change-Id: I2c52921e367216bcdf39682a43a2b0940e4cb8c3
    Closes-bug:1618408

commit 1c5952ec88ddaf57d41f67eb4424f7fbbd4229df
Author: Sergey Ryabin <email address hidden>
Date: Tue Aug 30 14:08:37 2016 +0300

    Fix for mysql usage with non-root access

    Change-Id: Ieae0f86bacadf074200e3b0e2e0c4c21d6778bc2
    Closes-Bug: #1606504

commit 7aadd4265ec3401e7d883f5b01a1870ea5b750ca
Author: Pavel Chechetin <email address hidden>
Date: Tue Aug 30 14:27:48 2016 +0300

    Resolve all current Puppet lint warnings

    Change-Id: I8d1e486fdb25a8d7cf52fdec7b36f7acfa38cbab

commit f9f18276ddf6738f2fab64c3c609d68e30889706
Author: Pavel Chechetin <email address hidden>
Date: Tue Aug 30 14:21:16 2016 +0300

    Start testing Puppet related code by CI

    Change-Id: I12aa288f4613b69d332e448c3a50f0c36de139ea

commit...

Read more...

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-octane ocata-eol

This issue was fixed in the openstack/fuel-octane ocata-eol 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.