Bug #522

"oneimage list" as admin does not show all images

Added by Ted Hesselroth over 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:03/09/2011
Priority:NormalDue date:
Assignee:Daniel Molina% Done:

0%

Category:-
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

After uploading an image with the econe interface, the new images are not shown when running "oneimage list" using the admin login. The command gives

$ oneimage list
ID USER NAME TYPE REGTIME PUB PER STAT #VMS
4 OS Jan 01, 1970 00:00 No No init

If the user OID is specified, the images are shown

$ oneimage list 14
ID USER NAME TYPE REGTIME PUB PER STAT #VMS
10 tdh ec2-8bc5c430-2bec-01 OS Mar 08, 2011 19:59 Yes No used 1
11 tdh ec2-c8963470-2bec-01 OS Mar 08, 2011 20:01 No No rdy 0
12 tdh ec2-3f1874a0-2c97-01 OS Mar 09, 2011 16:21 No No rdy 0
etc

Note that making one of the images public did not help.

The users are

$ oneuser list
ID USER PASSWORD
0 oneadmin 16e7f367de3f2464840c22fd6e6e03395df9becc
16 timm /DC=gov/DC=fnal/O=Fermilab/OU=People/CN=StevenC.Ti
14 tdh /DC=org/DC=doegrids/OU=People/CN=TedHesselroth8985
5 uvta8LjAzmDHwm7 jrXrItD2Kjs4FJ4Dkb3HlvfFFazP9t7iKSxi90aJ
6 sXqe3cjkkw2AoMP LxMGCDK7YWceIqjBrqJBKzZZbDCuED7gYJKpalmX
7 Ubifnca7SSxdyDn 7OFqwyphtGhcFnhTohQ6Xc8jFjanrirpWXDgjSlB
17 timm1 /DC=org/DC=doegrids/OU=People/CN=StevenTimm74183
15 chadwick /DC=gov/DC=fnal/O=Fermilab/OU=People/CN=KeithChadw
20 lowe 59fb3937509152f6a0b7ee8b14c7cf7628e41770
21 tdh2 /DC=gov/DC=fnal/O=Fermilab/OU=People/CN=TedHesselr

Here are the first several rows of the images table

mysql> select * from image_pool;
---------+------------------------------------------+------+--------+------------+------------+-----------------------------------------------------------------+-------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | oid | uid | name | type | public | persistent | regtime | source | state | running_vms | template |
---------+------------------------------------------+------+--------+------------+------------+-----------------------------------------------------------------+-------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | 4 | 1 | Steve test OS | 0 | 1 | 0 | 1290631580 | /var/lib/one/imagerepo/7bf1f760a574f34a88213010ed76ef632ccffbea | 1 | 0 | <TEMPLATE><DESCRIPTION><![CDATA[Steve test OS image]]></DESCRIPTION><DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><NAME><![CDATA[Steve test OS]]></NAME><PATH><![CDATA[/cloud/images/OpenNebula/images/current-image.img]]></PATH></TEMPLATE> | | 7 | 1 | Experiment results | 2 | 0 | 1 | 1290639023 | /var/lib/one/imagerepo/c440fa087fda2ddfecee250da48659db675da0e5 | 1 | 0 | <TEMPLATE><DESCRIPTION><![CDATA[Storage for my Thesis experiments.]]></DESCRIPTION><DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><FSTYPE><![CDATA[ext3]]></FSTYPE><NAME><![CDATA[Experiment results]]></NAME><SIZE><![CDATA2048]></SIZE><TYPE><![CDATA[DATABLOCK]]></TYPE></TEMPLATE> | | 10 | 14 | ec2-8bc5c430-2bec-012e-57f7-0015c5f3c65f | 0 | 1 | 0 | 1299614388 | /var/lib/one//images/2efe521c1f718648996d794993290b81acef08fd | 2 | 1 | <TEMPLATE><DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><NAME><![CDATA[ec2-8bc5c430-2bec-012e-57f7-0015c5f3c65f]]></NAME><PATH><![CDATA[/tmp/RackMultipart.10527.0]]></PATH><TYPE><![CDATA[OS]]></TYPE></TEMPLATE> | | 11 | 14 | ec2-c8963470-2bec-012e-57f8-0015c5f3c65f | 0 | 0 | 0 | 1299614490 | /var/lib/one//images/b70b21b72070d3e2f37912f18150781a0e93edd0 | 1 | 0 | <TEMPLATE><DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><NAME><![CDATA[ec2-c8963470-2bec-012e-57f8-0015c5f3c65f]]></NAME><PATH><![CDATA[/tmp/RackMultipart.11984.0]]></PATH><TYPE><![CDATA[OS]]></TYPE></TEMPLATE> | | 12 | 14 | ec2-3f1874a0-2c97-012e-57f9-0015c5f3c65f | 0 | 0 | 0 | 1299687703 | /var/lib/one//images/b4626759f84baa6acb83420ee79888cf228eb61d | 1 | 0 | <TEMPLATE><DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><NAME><![CDATA[ec2-3f1874a0-2c97-012e-57f9-0015c5f3c65f]]></NAME><PATH><![CDATA[/tmp/RackMultipart.6658.0]]></PATH><TYPE><![CDATA[OS]]></TYPE></TEMPLATE>

Associated revisions

Revision e26e3abc
Added by Ruben S. Montero about 10 years ago

feature #522: User can be authenticated using user/group info methods with uid/gid = -1

History

#1 Updated by Ruben S. Montero over 10 years ago

  • Category set to 11
  • Assignee set to Daniel Molina
  • Target version set to Release 3.0

#2 Updated by Vivien Bernet-Rollande about 10 years ago

I think this is not actually a bug. You should specify "oneimage list all" to list all images for all users.

#3 Updated by Ruben S. Montero almost 10 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Yes, this seems to work in the last development version. In OpenNebula 3.0 'all' attribute is need for list to show all the resources (vms, templates, networks...) as pointed out by Vivien.

Also available in: Atom PDF