Ubuntu, HA: Cobbler on controllers has failed

Bug #1306625 reported by Anastasia Palkina
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dima Shulyak

Bug Description

"build_id": "2014-04-10_16-27-34",
"mirantis": "yes",
"build_number": "94",
"nailgun_sha": "d1794c66fbcff02d11e4e42c3d388cfec37d1eb0",
"production": "prod",
"ostf_sha": "17f2fe6e56452f8e2f01a385be4c4b87bf3698a8",
"fuelmain_sha": "fb993e1a8cbfab92101fdffcc2f6be1c04b71d99",
"astute_sha": "6ddf5d5a60ca67fec4b25bcf5fcda822e46d87e6",
"release": "5.0",
"fuellib_sha": "0e4c251a1ab4aed317aeb79d6859dfcfe1314463"

1. Create new environment (Ubuntu, HA mode)
2. Choose both cephs
3. Add 3 controllers, compute, cinder and 3 ceph
4. Start deployment
5. On controllers error: Failed to retrieve the preconfiguration file
6. Login to cobbler
7. Click 'View kickstart' for one of controllers -> Internal server error

ks_spaces for on of controllers:
[
    {
        "name": "sda",
        "extra": [
            "disk/by-id/scsi-SATA_VBOX_HARDDISK_VBfee9d521-2c3b68c2",
            "disk/by-id/ata-VBOX_HARDDISK_VBfee9d521-2c3b68c2"
        ],
        "free_space": 64971,
        "volumes": [
            {
                "type": "boot",
                "size": 300
            },
            {
                "mount": "/boot",
                "size": 200,
                "type": "raid",
                "file_system": "ext2",
                "name": "Boot"
            },
            {
                "type": "lvm_meta_pool",
                "size": 0
            },
            {
                "size": 65035,
                "type": "pv",
                "lvm_meta_size": 64,
                "vg": "os"
            }
        ],
        "type": "disk",
        "id": "sda",
        "size": 65535
    },
    {
        "name": "sdb",
        "extra": [
            "disk/by-id/scsi-SATA_VBOX_HARDDISK_VB3354f31b-ec02ed64",
            "disk/by-id/ata-VBOX_HARDDISK_VB3354f31b-ec02ed64"
        ],
        "free_space": 64971,
        "volumes": [
            {
                "type": "boot",
                "size": 300
            },
            {
                "mount": "/boot",
                "size": 200,
                "type": "raid",
                "file_system": "ext2",
                "name": "Boot"
            },
            {
                "type": "lvm_meta_pool",
                "size": 0
            },
            {
                "size": 65035,
                "type": "pv",
                "lvm_meta_size": 64,
                "vg": "os"
            }
        ],
        "type": "disk",
        "id": "sdb",
        "size": 65535
    },
    {
        "name": "sdc",
        "extra": [
            "disk/by-id/scsi-SATA_VBOX_HARDDISK_VB873ef08f-85824197",
            "disk/by-id/ata-VBOX_HARDDISK_VB873ef08f-85824197"
        ],
        "free_space": 64971,
        "volumes": [
            {
                "type": "boot",
                "size": 300
            },
            {
                "mount": "/boot",
                "size": 200,
                "type": "raid",
                "file_system": "ext2",
                "name": "Boot"
            },
            {
                "type": "lvm_meta_pool",
                "size": 0
            },
            {
                "size": 65035,
                "type": "pv",
                "lvm_meta_size": 64,
                "vg": "os"
            }
        ],
        "type": "disk",
        "id": "disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0",
        "size": 65535
    },
    {
        "_allocate_size": "all",
        "label": "Base System",
        "min_size": 19374,
        "volumes": [
            {
                "mount": "/",
                "size": 190899,
                "type": "lv",
                "name": "root",
                "file_system": "ext4"
            },
            {
                "mount": "swap",
                "size": 4014,
                "type": "lv",
                "name": "swap",
                "file_system": "swap"
            }
        ]

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Looks like local env issue, cannot reproduce on kvm with ceph | without ceph. on #94

Changed in fuel:
importance: Critical → High
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Reproduced on ISO #101 on VBox
"build_id": "2014-04-14_01-00-26",
"mirantis": "yes",
"build_number": "101",
"nailgun_sha": "61410bcf3201cd737e68ece8ab15313acc746476",
"production": "dev",
"ostf_sha": "118c955085ea7829f3a34decd38d63554b74451c",
"fuelmain_sha": "ddc94c52c267f0276cbd8485d6e704aea05b23a5",
"astute_sha": "401bc474b1d8cebb8ba70b3b6154107e08fd725d",
"release": "5.0",
"fuellib_sha": "101f3645ead182bc47024ff7568b04554de06bba"

Revision history for this message
Anastasia Palkina (apalkina) wrote :

# OS volume group must be located on one disk
# File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 205, in render_cheetah
# data_out = t.respond()
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1397470298_28_28267.py", line 232, in respond
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1397470298_28_28267.py", line 74, in __errorCatcher2
#
# File "<string>", line 1, in <module>
#
# File "/usr/lib/python2.6/site-packages/cobbler/template_api.py", line 170, in SNIPPET
# result = BuiltinTemplate.SNIPPET(self, file)
#
# File "DynamicallyCompiledCheetahTemplate.py", line 85, in SNIPPET
#
# File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 1601, in _handleCheetahInclude
# self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1397470298_31_89401.py", line 108, in respond
#
# File "/usr/lib/python2.6/site-packages/cobbler/pmanager.py", line 516, in __init__
# self.validate()
#
# File "/usr/lib/python2.6/site-packages/cobbler/pmanager.py", line 537, in validate
# raise Exception("OS volume group must be located on one disk")
#

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Dima Shulyak (dshulyak)
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Related fix proposed to fuel-main (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/87870

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Related fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/87870
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=aacc453ac8ada71246220dc56701d642bf520aa3
Submitter: Jenkins
Branch: master

commit aacc453ac8ada71246220dc56701d642bf520aa3
Author: Anastasiia Naboikina <email address hidden>
Date: Wed Apr 16 11:25:36 2014 +0300

    Remove steps for unallocated space check

    Removed invocation of method that checks that
    there is no unallocated space on controller node
    when Ceph for Glance is used.

    Closes-Bug: #1297364

    Change-Id: Id843fdb148316494a9edd3b359f1583eae777b2e
    Related-Bug: #1306625

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/87284
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=26589df69433a640f827ffc13061c2c809b29d66
Submitter: Jenkins
Branch: master

commit 26589df69433a640f827ffc13061c2c809b29d66
Author: Dima Shulyak <email address hidden>
Date: Mon Apr 14 17:48:44 2014 +0300

    Fix os vg allocation on ubuntu

    Ubuntu cant allocate more than one disk for os vg

    In order not to introduce a lot of low quality fixes to volume manager,
    revert os allocation on controller nodes to min size

    This patch reopens: https://bugs.launchpad.net/fuel/+bug/1295717

    Change-Id: I81ac8150d07fcf11c745159c42c6c2fa57d64b33
    Closes-Bug: #1306625

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Fixed in build 108.
[root@fuel ~]# cat /etc/nailgun/version.yaml
VERSION:
  mirantis: "yes"
  production: "dev"
  release: "5.0"
  build_number: "108"
  build_id: "2014-04-17_01-00-26"
  fuellib_sha: "c7effa187725513de6447113afb3bda7e9684e3a"
  nailgun_sha: "26589df69433a640f827ffc13061c2c809b29d66"
  astute_sha: "0cb0b26773bd269000a14748e8ba49419462ecaf"
  ostf_sha: "1ac04769cc8034438ccf1176860b25d0f5601c4a"
  fuelmain_sha: "def06677fe382967c93c8cbfbd7d98de35531b98"

Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

verified on {"build_id": "2014-05-08_01-10-31", "mirantis": "yes", "build_number": "188", "ostf_sha": "fe718434f88f2ab167779770828a195f06eb29f8", "nailgun_sha": "82b9d42a7a5e9aa1caf6b2779c45ca045cad0ad2", "production": "docker", "api": "1.0", "fuelmain_sha": "97d7f6d5461db3afc27f58160cf9f6985230d255", "astute_sha": "9c83d3ecec69df03cd94620e2df92249ba4ec786", "release": "5.0", "fuellib_sha": "fd31d9a8f85136347b60377df00df6728eda14ca"}

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.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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