OSTF test_snapshot test failed due to can't create snapshot for instance

Bug #1511854 reported by Maksym Strukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Sergey Nikitin

Bug Description

Scenario:
1. Create cluster
2. Add 1 node with controller and ceph OSD roles
3. Add 2 node with compute and ceph OSD roles
4. Deploy the cluster
5. Check ceph status
6. Run OSTF

Actual:
Failed 1 OSTF tests; should fail 0 tests. Names of failed tests:
  - Launch instance, create snapshot, launch instance from snapshot (failure) Failed to get to expected status. In error state. Please refer to OpenStack logs for more details.

Seems that snapshot not created:

nova-compute.log from node2:

2015-10-30T00:57:14.421144+00:00 info: Creating image
2015-10-30T00:57:14.478040+00:00 emerg: 2015-10-30 00:57:14.477553 7f0ae1348740 -1 librbd::ImageCtx: error finding header: (2) No such file or directory
2015-10-30T00:57:14.479710+00:00 debug: rbd image 64e33cef-e43c-4cc0-ab51-e9808ad786f7_disk does not exist
2015-10-30T00:57:14.538248+00:00 emerg: 2015-10-30 00:57:14.537549 7f0ae1348740 -1 librbd::ImageCtx: error finding header: (2) No such file or directory
2015-10-30T00:57:14.539624+00:00 debug: rbd image 64e33cef-e43c-4cc0-ab51-e9808ad786f7_disk does not exist
2015-10-30T00:57:14.545408+00:00 debug: Lock "25636220b1eed64685980b9deb6d84ed113a329c" acquired by "nova.virt.libvirt.imagebackend.fetch_func_sync" :: waited 0.000s
2015-10-30T00:57:15.329530+00:00 debug: Image locations are: [{'url': u'rbd://77273e60-beb3-4c12-bf2e-675a27735201/images/3aff3c52-b749-44c0-88c4-922cc0dece80/snap', 'metadata': {}}]
2015-10-30T00:57:15.359848+00:00 debug: Lock "25636220b1eed64685980b9deb6d84ed113a329c" released by "nova.virt.libvirt.imagebackend.fetch_func_sync" :: held 0.814s
2015-10-30T00:57:15.365264+00:00 err: Instance failed to spawn
2015-10-30T00:57:15.366345+00:00 info: Terminating instance

Env: 8.0-92

Revision history for this message
Maksym Strukov (unbelll) wrote :
Changed in fuel:
importance: Undecided → High
assignee: nobody → Roman Podolyaka (roman-podolyaka)
Dmitry Klenov (dklenov)
tags: added: area-mos
Changed in fuel:
milestone: none → 8.0
status: New → Confirmed
Changed in fuel:
assignee: Roman Podolyaka (roman-podolyaka) → MOS Nova (mos-nova)
Revision history for this message
Sergey Nikitin (snikitin) wrote :

reproduced on 8.0 build 107

Changed in fuel:
assignee: MOS Nova (mos-nova) → Sergey Nikitin (snikitin)
Revision history for this message
Sergey Nikitin (snikitin) wrote :

Here is upstream bug: https://bugs.launchpad.net/nova/+bug/1508230

here is fix for liberty: https://review.openstack.org/#/c/237801/1
but it's waiting for patch in master https://review.openstack.org/#/c/237799/3

Patch for Liberty fixes the problem. verified on 8.0 build 107.

We will wait upstream patch merge. After that syncing with stable/liberty will fix the problem.

Igor Marnat (imarnat)
tags: added: swarm-blocker
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Originally failed to merge due to https://bugs.launchpad.net/fuel/+bug/1516761 , now it's upstream issue - https://bugs.launchpad.net/nova/+bug/1516805 . Not sure if MOS CI issue will be reproduced again.

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

Waiting for https://review.openstack.org/#/c/246013/ to be merged upstream first to unblock sync from stable/liberty

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Sergey Nikitin (snikitin) wrote :

all patches were merged. will wait new ISO for verification.

Revision history for this message
Sergey Nikitin (snikitin) wrote :
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Sergey Nikitin (snikitin) wrote :

Checked on ISO #180. test "Launch instance, create snapshot, launch instance from snapshot " passed

Vladimir (vushakov)
tags: added: on-verification
Revision history for this message
Vladimir (vushakov) wrote :

Verified on:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "427"
  build_id: "427"
  fuel-nailgun_sha: "9ebbaa0473effafa5adee40270da96acf9c7d58a"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "df16d41cd7a9445cf82ad9fd8f0d53824711fcd8"
  fuel-nailgun-agent_sha: "92ebd5ade6fab60897761bfa084aefc320bff246"
  astute_sha: "c7ca63a49216744e0bfdfff5cb527556aad2e2a5"
  fuel-library_sha: "fae42170a54b98d8e8c8db99b0fbb312633c693c"
  fuel-ostf_sha: "214e794835acc7aa0c1c5de936e93696a90bb57a"
  fuel-mirror_sha: "b62f3cce5321fd570c6589bc2684eab994c3f3f2"
  fuelmenu_sha: "85de57080a18fda18e5325f06eaf654b1b931592"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "9f0ba4577915ce1e77f5dc9c639a5ef66ca45896"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "e8e36cff332644576d7853c80b8a53d5b955420a"

tags: removed: on-verification
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.