Comment 0 for bug 1369524

Revision history for this message
Ilya Shakhat (shakhat) wrote : Volumes hanging in Error Deleting state

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "5.1"
  api: "1.0"
  build_number: "506"
  build_id: "2014-09-10_00-01-12"
  astute_sha: "b622d9b36dbdd1e03b282b9ee5b7435ba649e711"
  fuellib_sha: "e3f947cc4142210499a282bc5f183c333552fa23"
  ostf_sha: "1de6ed1c0b72f6687ffb4bebc2c939b135a88e34"
  nailgun_sha: "82091e0d61f252619a0842d0f8debb6b602a61fe"
  fuelmain_sha: "ca1b4839a70a10041f8eaf8b9ac995c8b0d4521a"

After long-running Rally job several volumes stay in Error_Deleting state. Cinder log contain the following pattern:
Failed to create iscsi target for vol
ume id:volume-656b2524-93cb-4a29-a4d8-98765451a7a3: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-656b2524-93cb-4a29-a4d8-98765451a7a3
Exit code: 22
Stdout: 'Command:\n\ttgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 2 --lun 1 -b /dev/cinder/volume-656b2524-93cb-4a29-a4d8-98765451a7a3 \nexited with code: 22.\n'
Stderr: 'tgtadm: this logical unit number already exists\n'
(see the whole log attached)

Rally scenario:
{
    "NovaServers.boot_server_from_volume_and_delete": [
        {
            "args": {
                "flavor": {
                    "name": "m1.nano"
                },
                "image": {
                    "name": "TestVM"
                },
                "volume_size": 10
            },
            "runner": {
                "type": "constant",
                "times": 100,
                "concurrency": 2
            },
            "context": {
                "users": {
                    "tenants": 3,
                    "users_per_tenant": 2
                }
            }
        }
    ]
}