vzctl create: tell "Creating container" at the right time
If there is no local tarball it is downloaded first, then extracted.
Download script vps-download is quite talkative, while tarball extract
script vps-create is not. So we end up with something like this:
---------
Creating container private area (fedora-15-x86_64)
--2012-01-29 22:25:33-- http://mirror.yandex.ru/mirrors/download.openvz.org/template/precreated//fedora-15-x86_64.tar.gz
Resolving mirror.yandex.ru... 213.180.204.183, 2a02:6b8:0:201::1
Connecting to mirror.yandex.ru|213.180.204.183|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 214026158 (204M) [application/octet-stream]
Saving to: `/vz/template/cache/fedora-15-x86_64.tar.gz'
100%[======================================>] 214,026,158 6.55M/s in 32s
2012-01-29 22:26:05 (6.44 MB/s) - `/vz/template/cache/fedora-15-x86_64.tar.gz' saved [214026158/214026158]
Checking template signature...
gpg: Signature made Fri Jan 13 16:18:42 2012 MSK using DSA key ID A7A1D4B6
gpg: Good signature from "OpenVZ Project <security@openvz.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: DEAB A031 F0A1 8848 9D71 01D2 92A6 0DA6 A7A1 D4B6
Signature check passed.
***>>> PROBLEM: here it stays silent for a few seconds <<<***
Performing postcreate actions
CT configuration saved to /etc/vz/conf/144.conf
Container private area was created
====
To fix this horrific silence, let's print "Creating container private area"
message right before executing vps-create script.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed