osd_devices facter fails for nbd

Bug #1510851 reported by Oleksiy Molchanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Kyrylo Galanov
6.1.x
Fix Released
Medium
Sergii Rizvan
7.0.x
Fix Released
Medium
Sergii Rizvan

Bug Description

Steps to reproduce:

truncate -s 10G /tmp/1
losetup -f /tmp/1
parted /dev/loop0 mklabel gpt
sgdisk -n 1:0:9G -t 1:4FBD7E29-9D25-41B8-AFD0-062C0CEFF05D -p /dev/loop0
nbd-server 127.0.0.1@4242 /tmp/1 -c
nbd-client 127.0.0.1 4242 /dev/nbd1

Result:
[vagrant@10.0.0.4:22] out: Notice: /Stage[main]/Main/Notify[osd_devices: /dev/nbd11]/message: defined 'message' as 'osd_devices: /dev/nbd11'

Should be:
[vagrant@10.0.0.4:22] out: Notice: /Stage[main]/Main/Notify[osd_devices: /dev/nbd1p1]/message: defined 'message' as 'osd_devices: /dev/nbd1p1'

Changed in fuel:
assignee: nobody → Kyrylo Galanov (kgalanov)
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

It works okay if you configure it in such way

dd if=/dev/zero of=test.img bs=1M count=1000
losetup -f test.img
mkdir /mnt/storage
chown nbd /mnt/storage/
ln -s /dev/loop1 /mnt/storage/loop1
nbd-server 127.0.0.1@4242 /mnt/storage/loop1 -c
nbd-client 127.0.0.1 4242 /dev/nbd0

Dmitry Pyzhov (dpyzhov)
tags: added: area-library
Changed in fuel:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/244069
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=10efc0f9a1166085a51d75f7fdb67b9e97ab7812
Submitter: Jenkins
Branch: master

commit 10efc0f9a1166085a51d75f7fdb67b9e97ab7812
Author: Kyrylo Galanov <email address hidden>
Date: Wed Nov 11 14:24:23 2015 +0200

    Fix mock nbd block devices

    NBD client creates a number of empty devices like /dev/nbd0..15
    To fix the issue, before processing a partition script checks if
    that partition was present in lsblk output.

    Change-Id: I118c36a78e4661f82d4c11209ca98dca0fb2716a
    Closes-Bug: #1510851

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

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/247557

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/247569

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/6.1)

Reviewed: https://review.openstack.org/247557
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=f089330cd62f1db686e3b2cdf523523cf716efe7
Submitter: Jenkins
Branch: stable/6.1

commit f089330cd62f1db686e3b2cdf523523cf716efe7
Author: Kyrylo Galanov <email address hidden>
Date: Wed Nov 11 14:24:23 2015 +0200

    Fix mock nbd block devices

    NBD client creates a number of empty devices like /dev/nbd0..15
    To fix the issue, before processing a partition script checks if
    that partition was present in lsblk output.

    Change-Id: I118c36a78e4661f82d4c11209ca98dca0fb2716a
    Closes-Bug: #1510851
    (cherry-picked from commit 10efc0f9a1166085a51d75f7fdb67b9e97ab7812)

Sergii Rizvan (srizvan)
tags: added: on-verification
Revision history for this message
Sergii Rizvan (srizvan) wrote :

Verified on 6.1
Fuel master Centos6:
Packages:
  - fuel-docker-images 6.1.0-5
  - fuel-library6.1 6.1.0-6777.1

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/7.0)

Reviewed: https://review.openstack.org/247569
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=0157fd1fd9b8fe1771676ba5dba9f1b5d9d3297a
Submitter: Jenkins
Branch: stable/7.0

commit 0157fd1fd9b8fe1771676ba5dba9f1b5d9d3297a
Author: Kyrylo Galanov <email address hidden>
Date: Wed Nov 11 14:24:23 2015 +0200

    Fix mock nbd block devices

    NBD client creates a number of empty devices like /dev/nbd0..15
    To fix the issue, before processing a partition script checks if
    that partition was present in lsblk output.

    Change-Id: I118c36a78e4661f82d4c11209ca98dca0fb2716a
    Closes-Bug: #1510851
    (cherry-picked from commit 10efc0f9a1166085a51d75f7fdb67b9e97ab7812)

Revision history for this message
Sergii Rizvan (srizvan) wrote :

Verified on 7.0
Fuel master Centos6:
Package:
  - fuel-library7.0
Version:
 - 7.0.0-7255.2.gita0c126d

tags: added: rn7.0-mu2
tags: added: on-verification
Revision history for this message
Andrey Lavrentyev (alavrentyev) wrote :

Verified on ISO #570

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

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.