[Image-Based] Provisioning of simple Ubuntu cluster failed with fuel-agent [-] LVAlreadyExistsError

Bug #1412464 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexander Gordeev
6.0.x
Fix Committed
High
Alexander Gordeev

Bug Description

{

    "build_id": "2015-01-18_22-54-45",
    "ostf_sha": "92ad9f8e4c509c82e07ceb093b5d579205c76014",
    "build_number": "68",
    "auth_required": true,
    "api": "1.0",
    "nailgun_sha": "21a8b7f0eac58ff8139f436392fceec293cfd619",
    "production": "docker",
    "fuelmain_sha": "",
    "astute_sha": "82125b0eef4e5a758fd4afa8917812e09a1f7dac",
    "feature_groups":

[

    "experimental",
    "mirantis"

],
"release": "6.1",
"release_versions":
{

    "2014.2-6.1":

{

    "VERSION":

{

    "build_id": "2015-01-18_22-54-45",
    "ostf_sha": "92ad9f8e4c509c82e07ceb093b5d579205c76014",
    "build_number": "68",
    "api": "1.0",
    "nailgun_sha": "21a8b7f0eac58ff8139f436392fceec293cfd619",
    "production": "docker",
    "fuelmain_sha": "",
    "astute_sha": "82125b0eef4e5a758fd4afa8917812e09a1f7dac",
    "feature_groups":

                [
                    "mirantis"
                ],
                "release": "6.1",
                "fuellib_sha": "5edc8396cbed1d44a097d9997700656f6268709f"
            }
        }
    },
    "fuellib_sha": "5edc8396cbed1d44a097d9997700656f6268709f"

}

Steps:
1. Create next cluster - Ubuntu, simple, Flat nova-network, image-based provisioning, 1 controller, 1 compute, 1 zabbix-server
2. Start cluster deployment

Actual - provisioning of nodes failed with (fuel-agent.log):
2015-01-19 13:50:02.107 6781 ERROR fuel_agent.errors [-]
2015-01-19 13:50:02.107 6781 CRITICAL fuel-agent [-] LVAlreadyExistsError
2015-01-19 13:50:02.107 6781 TRACE fuel-agent Traceback (most recent call last):
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/bin/provision", line 10, in <module>
2015-01-19 13:50:02.107 6781 TRACE fuel-agent sys.exit(provision())
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/lib/python2.6/site-packages/fuel_agent/cmd/agent.py", line 37, in provision
2015-01-19 13:50:02.107 6781 TRACE fuel-agent main(['do_provisioning'])
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/lib/python2.6/site-packages/fuel_agent/cmd/agent.py", line 67, in main
2015-01-19 13:50:02.107 6781 TRACE fuel-agent getattr(mgr, action)()
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 284, in do_provisioning
2015-01-19 13:50:02.107 6781 TRACE fuel-agent self.do_partitioning()
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 124, in do_partitioning
2015-01-19 13:50:02.107 6781 TRACE fuel-agent lu.lvcreate(lv.vgname, lv.name, lv.size)
2015-01-19 13:50:02.107 6781 TRACE fuel-agent File "/usr/lib/python2.6/site-packages/fuel_agent/utils/lvm_utils.py", line 214, in lvcreate
2015-01-19 13:50:02.107 6781 TRACE fuel-agent 'Error while creating lv: lv %s already exists' % lvname)
2015-01-19 13:50:02.107 6781 TRACE fuel-agent LVAlreadyExistsError
2015-01-19 13:50:02.107 6781 TRACE fuel-agent

Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
summary: - [Image-Based] Provisioning of simple Ubuntu cluster failed with
- ntpd[1432]: authreadkeys: file /etc/ntp/keys: No such file or directory
+ [Image-Based] Provisioning of simple Ubuntu cluster failed with fuel-
+ agent [-] LVAlreadyExistsError
Changed in fuel:
importance: Medium → High
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
status: In Progress → Confirmed
milestone: 6.1 → 6.0.1
status: Confirmed → Triaged
milestone: 6.0.1 → 6.1
status: Triaged → Confirmed
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/6.0)

Fix proposed to branch: stable/6.0
Review: https://review.openstack.org/148306

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

Reviewed: https://review.openstack.org/148298
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=94211e14b70c55659b372b574a1c5692a6cd857f
Submitter: Jenkins
Branch: master

commit 94211e14b70c55659b372b574a1c5692a6cd857f
Author: Alexander Gordeev <email address hidden>
Date: Mon Jan 19 18:30:23 2015 +0300

    Fix lvm volume creation in fuel-agent

    lvm_utils.lvcreate totally ignores volume group from which volume was
    being allocated when checking for volume existance. If another volume
    from another volume group has the same name it will fail to create
    volume throwing "volume already exists" error.

    Change-Id: Ib2e10f558f7de976b72ea75e2cae4ff0c3ed98d3
    Closes-Bug: #1412464

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

Reviewed: https://review.openstack.org/148306
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=197ca1cbce5c4372871f7568b18d6a1b7d3313bf
Submitter: Jenkins
Branch: stable/6.0

commit 197ca1cbce5c4372871f7568b18d6a1b7d3313bf
Author: Alexander Gordeev <email address hidden>
Date: Mon Jan 19 18:30:23 2015 +0300

    Fix lvm volume creation in fuel-agent

    lvm_utils.lvcreate totally ignores volume group from which volume was
    being allocated when checking for volume existance. If another volume
    from another volume group has the same name it will fail to create
    volume throwing "volume already exists" error.

    Change-Id: Ib2e10f558f7de976b72ea75e2cae4ff0c3ed98d3
    Closes-Bug: #1412464

tags: added: image-based
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #105

"build_id": "2015-02-07_22-55-01", "ostf_sha": "6c046b69d29021524906109f18092363505ee222", "build_number": "105", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-07_22-55-01", "ostf_sha": "6c046b69d29021524906109f18092363505ee222", "build_number": "105", "api": "1.0", "nailgun_sha": "6d1769b21819f8fb4195f1bd9c44c038721ae3d4", "production": "docker", "python-fuelclient_sha": "521c2491f7f04f31d8c85db68499cd193d4904e3", "astute_sha": "7e6e6f9188bd69c603853b10d4a55149363323cc", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "769af7fe30225cd15638ea2e6dffaa286bc06da1"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "6d1769b21819f8fb4195f1bd9c44c038721ae3d4", "production": "docker", "python-fuelclient_sha": "521c2491f7f04f31d8c85db68499cd193d4904e3", "astute_sha": "7e6e6f9188bd69c603853b10d4a55149363323cc", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "769af7fe30225cd15638ea2e6dffaa286bc06da1"

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.