<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Thanks for help!</span></div><div> <br><span></span></div><div><span>I have another question. Is there a tutorial for making ubuntu images  with swap partition? In diablo starter guide it says not to make a swap but i want to make one and i don't know how.</span></div><div> </div><div>Andrei-Cosmin Ion<br>telefon: 0727 768 281<br>email: andrei_tall@yahoo.com<br>Munceste ca si cum n-ai muri niciodata, dar ingrijeste-te de sufletul tau ca si cum ai muri maine!<br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Eoghan Glynn <eglynn@redhat.com><br> <b><span style="font-weight:
 bold;">To:</span></b> andrei cosmin <andrei_tall@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> openstack@lists.launchpad.net <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 30, 2012 1:38 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Openstack] Glance problem<br> </font> </div> <br><br>Hi Andrei,<br><br>The underlying issue is starvation of the storage space used to store<br>image content(as opposed to the image metadata, which takes up very<br>little space).<br><br>The reason the killed image isn't showing up in the output of glance index<br>is that non-viable images are sanitized from the list.<br><br>If you want to be rid of this image, you can easily find the offending image<br>ID from the glance registry log, e.g.:<br><br>  $ grep killed /var/log/glance/registry.log<br>  ...<br>  012-04-30 11:26:48 9198     INFO [sqlalchemy.engine.base.Engine]
 ('2012-04-30 10:26:48.806445', u'killed', u'e75a8d52-0cc5-481d-b765-3a056d80ad28')<br><br>Then you can just delete the metadata directly from the glance registry DB.<br><br>For example if using the default sqlite DB, use:<br><br>  $ sudo sqlite3 glance.sqlite "DELETE from images where id = 'e75a8d52-0cc5-481d-b765-3a056d80ad28'"<br><br>If on the other hand you're using mysql or postgres, just issue the DELETE query<br>via the appropriate DB client.<br><br>Cheers,<br>Eoghan<br><br><br>> Hi , please help me with this. I try to add a image to glance and i<br>> receive the following message:<br>> <br>> <br>> <br>> glance add -A 651abbc762f84e8e9b25baeec35c54bd name=$name<br>> is_public=true container_format=bare disk_format=raw <<br>> $imageUploading image 'server'<br>> ================================================[ 99%] 19.7M/s, ETA<br>> 0h 0m 0sFailed to add image. Got error:<br>> The request returned a 413
 Request Entity Too Large. This generally<br>> means that rate limiting or a quota threshold was breached.<br>> <br>> The response body:<br>> 413 Request Entity Too Large<br>> <br>> The body of your request was too large for this server.<br>> <br>> Image storage media is full: There is not enough disk space on the<br>> image storage media.<br>> Note: Your image metadata may still be in the registry, but the<br>> image's status will likely be 'killed'.<br>> =================================================[100%] 19.7M/s, ETA<br>> 0h 0m 0s<br>> <br>> <br>> The problem is that i don't know how to delete this metadata (which i<br>> believe is ocupying my glance). When i try to see my images i see<br>> only this ones.<br>> <br>> <br>> <br>> ctrl@ubuntu:~/devstack$ glance index -A<br>> 651abbc762f84e8e9b25baeec35c54bd<br>> ID Name Disk Format Container Format Size<br>>
 ------------------------------------ ------------------------------<br>> -------------------- -------------------- --------------<br>> ffd57095-0bb5-4678-b6ea-2460140d3084 cirros-0.3.0-x86_64-uec-ramdis<br>> ari ari 2254249<br>> 48806fc7-2f95-4c83-b7d6-091d59731187 cirros-0.3.0-x86_64-uec-kernel<br>> aki aki 4731440<br>> 465d5101-9cdd-4a2c-b55d-534c33949491 cirros-0.3.0-x86_64-uec ami ami<br>> 25165824<br>> ctrl@ubuntu:~/devstack$ glance details -A<br>> 651abbc762f84e8e9b25baeec35c54bd<br>> <br>> Can anybody help?<br>> <br>> <br>> <br>> Andrei-Cosmin Ion<br>> telefon: 0727 768 281<br>> email: <a ymailto="mailto:andrei_tall@yahoo.com" href="mailto:andrei_tall@yahoo.com">andrei_tall@yahoo.com</a><br>> Munceste ca si cum n-ai muri niciodata, dar ingrijeste-te de sufletul<br>> tau ca si cum ai muri maine!<br>> _______________________________________________<br>> Mailing list: <a
 href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>> Post to     : <a ymailto="mailto:openstack@lists.launchpad.net" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>> Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>> <br><br><br> </div> </div>  </div></body></html>