[nailgun]Clone environment doesn't clone environment 'ip_ranges' settings properly

Bug #1483773 reported by Sergey Murashov
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Ilya Kharin
Mitaka
Won't Fix
Medium
Ilya Kharin
Newton
Invalid
Medium
Ilya Kharin

Bug Description

Reproduced on fuel-7.0-upgrade-144-2015-08-06_21-24-26.tar.lrz
Steps to reproduce
1) Create environment via Fuel 6.1
2) Upgrade master node
3) Send API call to clone environment

Actual result:
======================================================================
FAIL: clone_env.CloneEnvTests.test_env_clone_to_deployable_release_id
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/clone_env.py", line 144, in test_env_clone_to_deployable_release_id
    network["ip_ranges"])
  File "/home/ubuntu/env/local/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/ubuntu/env/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: [[u'10.20.2.2', u'10.20.2.254']] != [[u'10.20.2.1', u'10.20.2.254']]

Changed in fuel:
assignee: nobody → Fuel Octane Dev Team (fuel-octane)
Changed in fuel:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 8.0
Ilya Kharin (akscram)
Changed in fuel:
assignee: Fuel Octane Dev Team (fuel-octane) → Ilya Kharin (akscram)
Revision history for this message
Ilya Kharin (akscram) wrote :

Due to the fact that the ip_ranges parameter can not be changed for network groups with the CIDR notation and also the notation parameter can not be changed too (before the patch [1]) the upgrade procedure cannot set specific IP ranges. The network manager responsible for setting proper IP ranges and it has some known problems in it [2]. We have that clusters which were created in environments earlier then 7.0 (and were upgraded to 7.0) have different IP ranges of network groups for the clusters which were created in 7.0 with the same parameters.

Frankly speaking you can not break an upgrade by setting wider ranges during upgrade of clusters than it were before.

[1] https://review.openstack.org/#/c/209892/ [on review]
[2] https://bugs.launchpad.net/fuel/+bug/1480846 [7.0 → 8.0]
[3] https://bugs.launchpad.net/fuel/+bug/1480228 [fixed]

Dmitry Pyzhov (dpyzhov)
tags: added: module-octane
Dmitry Pyzhov (dpyzhov)
tags: added: area-octane
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
removed: area-octane
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

We passed SCF in 8.0. Moving the bug to 9.0.

Changed in fuel:
milestone: 8.0 → 9.0
Dmitry Pyzhov (dpyzhov)
tags: added: team-upgrades
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

expected result

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Revision history for this message
Dmitry Klenov (dklenov) wrote :

Moved to invalid per conversation with Ilya Kharin.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.