Reproduced on my system as well. File appears to be empty before this section runs.
dib-run-parts Thu May 15 18:08:49 UTC 2014 Running /opt/stack/os-config-refresh/post-configure.d/15-apache2 + echo adam adam + ls -lh /etc/ssl/certs/ssl-cert-snakeoil.pem -rw-r--r-- 1 root root 0 May 15 18:08 /etc/ssl/certs/ssl-cert-snakeoil.pem + cat /etc/ssl/certs/ssl-cert-snakeoil.pem + who heat-admin pts/21 2014-05-15 17:36 (192.168.122.1) heat-admin pts/22 2014-05-15 17:51 (192.168.122.1)
So it fails to verify.. and regenerates.
Reproduced on my system as well. File appears to be empty before this section runs.
dib-run-parts Thu May 15 18:08:49 UTC 2014 Running /opt/stack/ os-config- refresh/ post-configure. d/15-apache2 certs/ssl- cert-snakeoil. pem certs/ssl- cert-snakeoil. pem certs/ssl- cert-snakeoil. pem
+ echo adam
adam
+ ls -lh /etc/ssl/
-rw-r--r-- 1 root root 0 May 15 18:08 /etc/ssl/
+ cat /etc/ssl/
+ who
heat-admin pts/21 2014-05-15 17:36 (192.168.122.1)
heat-admin pts/22 2014-05-15 17:51 (192.168.122.1)
So it fails to verify.. and regenerates.