User cannot see an image within its own project, created with 'nova image-create' command.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Environment:
Ubuntu Server 11.04
OpenStack Diablo release (single server deployment)
Glance as an image storage
Nova config:
--libvirt_type=kvm
--image_
--sql_connectio
--ec2_url=http://
--s3_host=
--cc_host=
--glance_
--rabbit_
--network_
--dhcpbridge_
--dhcpbridge=
--fixed_
--network_size=8
--routing_
--iscsi_
--FAKE_
--logdir=
--lock_
--state_
--verbose
--allow_
--use_deprecate
Steps to reproduce:
1. create Nova user:
sudo nova-manage user create --name=test
sudo nova-manage project create --project=
sudo nova-manage role add --user=test --role=netadmin
sudo nova-manage role add --user=test --role=netadmin --project=
sudo nova-manage project zipfile --project=
2. start an instance with 'test' user credentials: nova boot test-vm --image ... --flavor ...
3. make a new image: nova image-create <test-vm-id> mysnap
4. check that the new image is available: nova image-list
Problem: user cannot see its own snapshot with nova image-list, and cannot start it with 'nova boot'.
Workaround:
File '/usr/share/
@staticmethod
def _is_image_
"""Check image availability.
if context.project_id and ('project_id' in properties):
return str(properties[
Changed in nova: | |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Snapshot is visible by 'glance show' command, here is an example:
Id: 5
Public: No
Name: snap1
Status: active
Size: 25165824
Disk format: raw
Container format: ovf
Minimum Ram Required (MB): 0
Minimum Disk Required (GB): 0
Property 'kernel_id': 1
Property 'image_location': snapshot
Property 'image_state': available
Property 'ramdisk_id': 2
Property 'owner_id': valeriy-project