Ask Your Question

Revision history [back]

I'm not positive but I believe the error may line in the 2 separate exec statements.....

exec #1 sources the env finisheds and closes exec #2 runs your openstack create command missing env variables....

try something like this:

$exec = shell_exec(source keystonerc_admin; "openstack stack create --template /home/admin/HEAT-TEMPLATES/test.hot TestStack 2>&1");