Aliaksei Sheshka
2016-Mar-21 14:34 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
Hello! Is anyone aware why CentOS-7-x86_64-GenericCloud.raw has such unusual format ? root at test-srv:~# wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw --2016-03-21 13:16:31-- http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw Resolving cloud.centos.org (cloud.centos.org)... 162.252.80.138 Connecting to cloud.centos.org (cloud.centos.org)|162.252.80.138|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 374668382 (357M) [application/x-gzip] Saving to: 'CentOS-7-x86_64-GenericCloud.raw' CentOS-7-x86_64-GenericCloud.raw 100%[=========================================================================>] 357.31M 12.9MB/s in 30s 2016-03-21 13:17:03 (11.9 MB/s) - 'CentOS-7-x86_64-GenericCloud.raw' saved [374668382/374668382] Download reports [application/x-gzip] for raw file And indeed root at test-srv:~# file CentOS-7-x86_64-GenericCloud.raw CentOS-7-x86_64-GenericCloud.raw: gzip compressed data, last modified: Sat Feb 27 02:14:37 2016, from Unix Ok, lets uncompress: root at test-srv:~# zcat -d CentOS-7-x86_64-GenericCloud.raw > CentOS-7-x86_64-GenericCloud.a And check again root at test-srv:~# file CentOS-7-x86_64-GenericCloud.a CentOS-7-x86_64-GenericCloud.a: POSIX tar archive (GNU) Ok. it's a tar archive. root at test-srv:~# tar -xf CentOS-7-x86_64-GenericCloud.a -v CentOS-7-x86_64-GenericCloud-1602.raw Now it's CentOS-7-x86_64-GenericCloud-1602.raw file which is indeed raw What is the point to pack single raw file into the tar.gz and to name it raw ? Or it's just a mistake ? Thanks!
Karanbir Singh
2016-Mar-21 14:51 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
On 21/03/16 14:34, Aliaksei Sheshka wrote:> What is the point to pack single raw file into the tar.gz and to name it raw ? > Or it's just a mistake ? > >Johnny is looking at the cdn side of thigs, but effectively we will not have a .raw - we will have a .raw.tar.gz file ( which will itself only have a .raw file compressed inside it ) -- Karanbir Singh +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh GnuPG Key : http://www.karan.org/publickey.asc
Johnny Hughes
2016-Mar-21 22:29 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
On 03/21/2016 09:51 AM, Karanbir Singh wrote:> On 21/03/16 14:34, Aliaksei Sheshka wrote: >> What is the point to pack single raw file into the tar.gz and to name it raw ? >> Or it's just a mistake ? >> >> > > Johnny is looking at the cdn side of thigs, but effectively we will not > have a .raw - we will have a .raw.tar.gz file ( which will itself only > have a .raw file compressed inside it ) > >It looks as if using 'Multiple Views' in the apache setup means that you can effectively download a file even leaving off the extension .. in your case, it left off the tar.gz but allowed you to download that file anyway. We are looking at changing the apache configuration to prevent this type of thing in the future. As an example: http://mirror.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1511 that pulls down the .torrent file even though there is no .torrent The bottom line is, please download the .raw.tar.gz file and not the .raw file and we are working on the configs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20160321/94182639/attachment-0001.sig>
Martinx - ジェームズ
2016-Mar-22 01:06 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
On 21 March 2016 at 11:51, Karanbir Singh <mail-lists at karan.org> wrote:> On 21/03/16 14:34, Aliaksei Sheshka wrote: > > What is the point to pack single raw file into the tar.gz and to name it > raw ? > > Or it's just a mistake ? > > > > > > Johnny is looking at the cdn side of thigs, but effectively we will not > have a .raw - we will have a .raw.tar.gz file ( which will itself only > have a .raw file compressed inside it ) > > > -- > Karanbir Singh > +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh > GnuPG Key : http://www.karan.org/publickey.asc > >Why not a compressed qcow2? Like: CentOS-7-x86_64-GenericCloud.qcow2c This way, we can add it as-is to OpenStack Glance, that it will be downloaded by demand, when required and, OpenStack Nova will automatically uncompress the image for runtime. Cheers! Thiago
Fabian Arrotin
2016-Mar-22 12:35 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
On 21/03/16 15:34, Aliaksei Sheshka wrote:> Hello! > > Is anyone aware why CentOS-7-x86_64-GenericCloud.raw has such unusual format ? > > root at test-srv:~# wget > http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw > --2016-03-21 13:16:31-- > http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw > Resolving cloud.centos.org (cloud.centos.org)... 162.252.80.138 > Connecting to cloud.centos.org > (cloud.centos.org)|162.252.80.138|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 374668382 (357M) [application/x-gzip] > Saving to: 'CentOS-7-x86_64-GenericCloud.raw' > CentOS-7-x86_64-GenericCloud.raw > 100%[=========================================================================>] > 357.31M 12.9MB/s in 30s > 2016-03-21 13:17:03 (11.9 MB/s) - 'CentOS-7-x86_64-GenericCloud.raw' > saved [374668382/374668382] > > Download reports [application/x-gzip] for raw file > > And indeed > root at test-srv:~# file CentOS-7-x86_64-GenericCloud.raw > CentOS-7-x86_64-GenericCloud.raw: gzip compressed data, last modified: > Sat Feb 27 02:14:37 2016, from Unix > > Ok, lets uncompress: > root at test-srv:~# zcat -d CentOS-7-x86_64-GenericCloud.raw > > CentOS-7-x86_64-GenericCloud.a > > And check again > root at test-srv:~# file CentOS-7-x86_64-GenericCloud.a > CentOS-7-x86_64-GenericCloud.a: POSIX tar archive (GNU) > > Ok. it's a tar archive. > > root at test-srv:~# tar -xf CentOS-7-x86_64-GenericCloud.a -v > CentOS-7-x86_64-GenericCloud-1602.raw > > Now it's CentOS-7-x86_64-GenericCloud-1602.raw file which is indeed raw > > What is the point to pack single raw file into the tar.gz and to name it raw ? > Or it's just a mistake ? > > Thanks!So I found yesterday that the MultiViews option was active in the template used by cfgmgmt for those vhosts, and was the root cause of that behaviour. I confirm that such .raw image wasn't even present on those cloud.centos.org, but httpd served the .raw.tar.gz instead. Fix for this was pushed earlier today so you'll now have a 404 if you try to download that .raw file again. That brings though another question : why trying specifically to download a .raw file that isn't listed on that page ? -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20160322/0b3abaf2/attachment-0001.sig>
Aliaksei Sheshka
2016-Mar-22 13:15 UTC
[CentOS] CentOS-7-x86_64-GenericCloud.raw very unusual format
What you mean is not listed ? Click 1) https://www.centos.org/download/ there click 2) More download choices it goes to 3) https://wiki.centos.org/Download there you see 4) Cloud / Containers , http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw raw files are very useful, they are very convenient to tweak by simply mounting using losetup. And there is no good reason to put 1 file inside tar.gz, just compressed raw.gz would be fine. On Tue, Mar 22, 2016 at 8:35 AM, Fabian Arrotin <arrfab at centos.org> wrote:> On 21/03/16 15:34, Aliaksei Sheshka wrote: >> Hello! >> >> Is anyone aware why CentOS-7-x86_64-GenericCloud.raw has such unusual format ? >> >> root at test-srv:~# wget >> http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw >> --2016-03-21 13:16:31-- >> http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw >> Resolving cloud.centos.org (cloud.centos.org)... 162.252.80.138 >> Connecting to cloud.centos.org >> (cloud.centos.org)|162.252.80.138|:80... connected. >> HTTP request sent, awaiting response... 200 OK >> Length: 374668382 (357M) [application/x-gzip] >> Saving to: 'CentOS-7-x86_64-GenericCloud.raw' >> CentOS-7-x86_64-GenericCloud.raw >> 100%[=========================================================================>] >> 357.31M 12.9MB/s in 30s >> 2016-03-21 13:17:03 (11.9 MB/s) - 'CentOS-7-x86_64-GenericCloud.raw' >> saved [374668382/374668382] >> >> Download reports [application/x-gzip] for raw file >> >> And indeed >> root at test-srv:~# file CentOS-7-x86_64-GenericCloud.raw >> CentOS-7-x86_64-GenericCloud.raw: gzip compressed data, last modified: >> Sat Feb 27 02:14:37 2016, from Unix >> >> Ok, lets uncompress: >> root at test-srv:~# zcat -d CentOS-7-x86_64-GenericCloud.raw > >> CentOS-7-x86_64-GenericCloud.a >> >> And check again >> root at test-srv:~# file CentOS-7-x86_64-GenericCloud.a >> CentOS-7-x86_64-GenericCloud.a: POSIX tar archive (GNU) >> >> Ok. it's a tar archive. >> >> root at test-srv:~# tar -xf CentOS-7-x86_64-GenericCloud.a -v >> CentOS-7-x86_64-GenericCloud-1602.raw >> >> Now it's CentOS-7-x86_64-GenericCloud-1602.raw file which is indeed raw >> >> What is the point to pack single raw file into the tar.gz and to name it raw ? >> Or it's just a mistake ? >> >> Thanks! > > So I found yesterday that the MultiViews option was active in the > template used by cfgmgmt for those vhosts, and was the root cause of > that behaviour. > I confirm that such .raw image wasn't even present on those > cloud.centos.org, but httpd served the .raw.tar.gz instead. > Fix for this was pushed earlier today so you'll now have a 404 if you > try to download that .raw file again. > That brings though another question : why trying specifically to > download a .raw file that isn't listed on that page ? > > > -- > Fabian Arrotin > The CentOS Project | http://www.centos.org > gpg key: 56BEC54E | twitter: @arrfab > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
Reasonably Related Threads
- CentOS-7-x86_64-GenericCloud.raw very unusual format
- CentOS-7-x86_64-GenericCloud.raw very unusual format
- CentOS-7-x86_64-GenericCloud.raw very unusual format
- CentOS-7-x86_64-GenericCloud.raw very unusual format
- CentOS-7-x86_64-GenericCloud.raw very unusual format