Bug 1081022
Summary: | Non-admin user can not attach cinder volume to their instance (LIO) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] RDO | Reporter: | James Slagle <jslagle> | ||||
Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Dafna Ron <dron> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | unspecified | CC: | afazekas, apevec, eharney, jslagle, yeylon, yrabl | ||||
Target Milestone: | RC | Keywords: | TestBlocker | ||||
Target Release: | Icehouse | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-cinder-2014.1-0.9.rc3.fc21 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-03-30 23:09:37 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
James Slagle
2014-03-26 13:45:13 UTC
IIUC this is a regression from I-2 packages. Created attachment 883232 [details]
the cinder logs
So does Eric have the ball again? One problem here is that the following code results in the initial error not being logged: try: conn_info = self.driver.initialize_connection(volume, connector) except Exception as err: self.driver.remove_export(context, volume) err_msg = (_('Unable to fetch connection information from ' 'backend: %(err)s') % {'err': err}) LOG.error(err_msg) raise exception.VolumeBackendAPIException(data=err_msg) Cinder should really call LOG.error(err_msg) before attempting to remove_export, which is what's failing here. Unfortunately this means I don't know what actually caused the failure on your systems. If I create one, can one of you try a scratch build to reproduce this which should produce a more useful log? https://bugs.launchpad.net/cinder/+bug/1305197 is tracking the remove_export() failure shown in the Description but the reason for the original initialize_connection() failure is unclear. Strangely, I have tried to reproduce this today and am not having any luck. Though the original system has been reinstalled, I've still got the same set of openstack packages (haven't even applied your test build yet). So, I'm not sure what's different. Will keep an eye out and see if it ever reproduces again. Simple script for reproducing the issue: --------------------------------------- source /root/keystonerc_admin RES=resource-$RANDOM IMAGE_NAME=cirros-0.3.2-x86_64-uec FLAVOR=1 keystone tenant-create --name $RES keystone user-create --name $RES --tenant $RES --pass verybadpass CRED_ARGS="--os-username $RES --os-tenant-name $RES --os-password verybadpass " nova $CRED_ARGS boot $RES --poll --image $IMAGE_NAME --flavor $FLAVOR VOL_ID=`cinder $CRED_ARGS create 1 --display-name $RES | awk '/ id / {print $4}'` while ! cinder $CRED_ARGS list | grep available; do echo "Wating for volume" done nova $CRED_ARGS volume-attach $RES $VOL_ID /dev/vdc cinder $CRED_ARGS list sleep 1 cinder $CRED_ARGS list sleep 1 cinder $CRED_ARGS list sleep 1 cinder $CRED_ARGS list ------------ output (RHEL7/ 'default' packstack config): ------------ # nova $CRED_ARGS volume-attach $RES $VOL_ID /dev/vdc +----------+--------------------------------------+ | Property | Value | +----------+--------------------------------------+ | device | /dev/vdc | | id | 6ecf8032-8af8-4f64-b88d-434b7c02cd76 | | serverId | c5bed64c-defc-4727-94ad-d24ac9f8b366 | | volumeId | 6ecf8032-8af8-4f64-b88d-434b7c02cd76 | +----------+--------------------------------------+ # cinder $CRED_ARGS list +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ | 6ecf8032-8af8-4f64-b88d-434b7c02cd76 | available | resource-27171 | 1 | None | false | | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ The volume not in the 'in-use' status. You can see the stack traces in the upstream bug report. https://bugs.launchpad.net/cinder/+bug/1300148 |