Tempest test test_resize_server_revert_deleted_flavor is failed

Bug #1576729 reported by Sofiia Andriichenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Released
High
MOS Nova
8.0.x
Invalid
High
Rodion Tikunov
9.x
Fix Released
High
MOS Nova

Bug Description

Detailed bug description:
Configuration:
    ISO: http://paste.openstack.org/show/495771/
  Settings:
  Compute - QEMU.
  Network - Neutron with VLAN segmentation.
  Storage Backends - Ceph RBD for volumes (Cinder), Ceph RBD for ephemeral volumes (Nova), Ceph RBD for images (Glance), Ceph RadosGW for objects (Swift API)
  Additional services - Install Ironic

  In tab Settings->Compute check Nova quotas
  In tab Settings->OpenStack Services check enable Install Ceilometer and Aodh
  In tab Networks->Other check enable Neutron DVR

  Nodes: controller, compute, ironic, ceph-osd, Telemetry - MongoDB

Steps to reproduce:
    1. Deploy ISO in configuration see (Detailed bug description)
    2. Navigate to controller node
    3. Install git (use apt-get install git)
    4. Clone script to deploy rally + tempest
       # git clone https://github.com/obutenko/mos-rally-verify.git
    5. Navigate to the https://github.com/obutenko/mos-rally-verify
    6. Execute necessary steps to deploy tempest
    7. Tun test in debug mode
        #rally --debug verify start --regex tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_resize_server_revert_deleted_flavor

Expected results:
Test is passed

Actual result:
Test is Failed
(see comments)

Reproducibility:
See attachment

Workaround:
---

Impact:
---

Description of the environment:
See (Detailed bug description)

Additional information:
Error Message

test failed

Stacktrace

Traceback (most recent call last):
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/api/compute/admin/test_migrations.py", line 100, in test_resize_server_revert_deleted_flavor
    self.servers_client.revert_resize_server(server['id'])
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/services/compute/servers_client.py", line 260, in revert_resize_server
    return self.action(server_id, 'revertResize', **kwargs)
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/services/compute/servers_client.py", line 159, in action
    post_body)
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/common/rest_client.py", line 259, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/services/compute/base_compute_client.py", line 53, in request
    method, url, extra_headers, headers, body)
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/common/rest_client.py", line 641, in request
    resp, resp_body)
  File "/home/rally/.rally/tempest/for-deployment-6cf6f710-6362-4d3a-a8f6-86b8bd5dd1dd/tempest/lib/common/rest_client.py", line 699, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest.lib.exceptions.BadRequest: Bad request
Details: {u'message': u'Flavor used by the instance could not be found.', u'code': 400}

Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :
Changed in mos:
assignee: nobody → MOS Nova (mos-nova)
importance: Undecided → High
status: New → Confirmed
milestone: none → 9.0
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Will be fixed in https://review.fuel-infra.org/#/c/20123/

This is a new Tempest test case added specifically for https://bugs.launchpad.net/nova/+bug/1570748 which was fixed recently and has not been backported to our downstream branch yet.

Already fixed in Newton and, thus, 10.0 won't be affected.

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Reproduced on customer environment with MOS 8.0, baremetal lab with 10+ hardware servers, Ceph+RadosGW backend, HA.

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

^ fix merged to 9.0/mitaka - https://review.fuel-infra.org/#/c/20123/

Revision history for this message
Oleksiy Butenko (obutenko) wrote :

Passed on ci

Alex Ermolov (aermolov)
tags: added: non-release
Revision history for this message
Rodion Tikunov (rtikunov) wrote :

Patch for this bug for 8.0 will be available in MU-2.

Tests passed successfully:
#rally --debug verify start --regex tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_resize_server_revert_deleted_flavor
...
{0} tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_resize_server_revert_deleted_flavor [95.320437s] ... ok

======
Totals
======
Ran: 1 tests in 162.0000 sec.
 - Passed: 1
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 95.3204 sec.

Revision history for this message
Anna Babich (ababich) wrote :

It passes on devstack with Newton:

root@ubuntu:~# rally --debug verify start --regex tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_resize_server_revert_deleted_flavor
{0} tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_resize_server_revert_deleted_flavor [79.378250s] ... ok

======
Totals
======
Ran: 1 tests in 88.0000 sec.
 - Passed: 1
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 79.3782 sec.

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.