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@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@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@test-srv:~# zcat -d CentOS-7-x86_64-GenericCloud.raw > CentOS-7-x86_64-GenericCloud.a
And check again root@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@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 ?