cinder create volume from image doesn't work with source build

Bug #1536514 reported by Qiu Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Qiu Yu

Bug Description

$ cinder create --image-id e0a6c51e-9252-4262-92ab-173cfac03f49 --name vol-from-image13 1
$ cinder list
+--------------------------------------+-----------+------------------+------------------+------+-------------+----------+-------------+-------------+
| ID | Status | Migration Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+------------------+------------------+------+-------------+----------+-------------+-------------+
| 1f606db0-1211-49c5-8021-6e221946fcee | creating | - | vol-from-image03 | 1 | - | false | False | |
+--------------------------------------+-----------+------------------+------------------+------+-------------+----------+-------------+-------------+

it stucks in creating forever, because cinder docker source build lack of rootwrap sudoer settings

kolla-storage01:/$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
cinder 1 0.9 1.1 186784 71920 pts/10 Ss+ Jan18 13:40 /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/cinder-volume --config-file /etc/cinder/cinder.conf
cinder 16 1.9 1.6 1512416 102916 pts/10 Sl+ Jan18 27:51 /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/cinder-volume --config-file /etc/cinder/cinder.conf
root 17531 0.0 0.0 49220 3220 pts/10 S+ 02:46 0:00 sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/conversion/tmphNaf5T
cinder 20250 0.0 0.0 18164 3352 pts/3 Ss 06:01 0:00 bash
cinder 20402 0.0 0.0 15572 2144 pts/3 R+ 06:11 0:00 ps aux

Qiu Yu (unicell)
Changed in kolla:
assignee: nobody → Qiu Yu (unicell)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

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

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

Reviewed: https://review.openstack.org/270661
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f92151465b84164933e7660d9a9e91da9226bd5a
Submitter: Jenkins
Branch: master

commit f92151465b84164933e7660d9a9e91da9226bd5a
Author: Qiu Yu <email address hidden>
Date: Thu Jan 21 01:20:02 2016 -0700

    Fix cinder create volume from image with kolla source build

    After recent drop root changes, all cinder rootwrap calls will fail in source
    build because lack of sudoer setting. This change adds sudoer file to enable
    rootwrap. It also add missing package dependencies needed for volume from image
    in source build type.

    Change-Id: I63a2405fb962ac687cdd88c81e1cdc02b3da638d
    Closes-Bug: #1536514

Changed in kolla:
status: In Progress → 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.