{"action":"created","issue":{"url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/545","labels_url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/545/comments","events_url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/545/events","html_url":"https://github.com/slipstream/SlipStreamServer/issues/545","id":118543311,"number":545,"title":"defined recipes are not transferred to node","user":{"login":"loomis","id":490506,"avatar_url":"https://avatars.githubusercontent.com/u/490506?v=3","gravatar_id":"","url":"https://api.github.com/users/loomis","html_url":"https://github.com/loomis","followers_url":"https://api.github.com/users/loomis/followers","following_url":"https://api.github.com/users/loomis/following{/other_user}","gists_url":"https://api.github.com/users/loomis/gists{/gist_id}","starred_url":"https://api.github.com/users/loomis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomis/subscriptions","organizations_url":"https://api.github.com/users/loomis/orgs","repos_url":"https://api.github.com/users/loomis/repos","events_url":"https://api.github.com/users/loomis/events{/privacy}","received_events_url":"https://api.github.com/users/loomis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slipstream/SlipStreamServer/labels/S04%20Proposed%20for%20Sprint","name":"S04 Proposed for Sprint","color":"eba98a"},{"url":"https://api.github.com/repos/slipstream/SlipStreamServer/labels/T5%20Bug","name":"T5 Bug","color":"fc2929"},{"url":"https://api.github.com/repos/slipstream/SlipStreamServer/labels/%E2%98%85%E2%98%85%E2%98%85","name":"★★★","color":"FBCA04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T06:42:48Z","updated_at":"2015-11-24T11:11:02Z","closed_at":null,"body":"For an application component what has the pre-install, install, and post-install recipes defined, the recipes appear in the run XML representation but are not transferred to the node and are consequently **not** run on the machine.\r\n\r\nThe `/tmp` are on the deployed machine looks like:\r\n```\r\n# ls -l \r\ntotal 12\r\n-rw-rw-rw- 1 root root 1127 Nov 24 06:18 machine_report_2015-11-24T061801Z.tgz\r\n-rw-r--r-- 1 root root  130 Nov 24 06:17 slipstream.setenv\r\n-rwxr-xr-x 1 root root  395 Nov 24 06:17 tmpJoCAtl\r\n# cat tmpJoCAtl \r\n#!/bin/bash -xe\r\n\r\n# get the value from slipstream\r\ntitle=\"`ss-get title`\"\r\n\r\n# replace the title in the welcome page\r\nsed -i \"s/__TITLE__/${title}/g\" /var/www/html/index.html\r\n\r\n# provide a link to the webserver through slipstream\r\nhostname=`ss-get hostname`\r\nlink=http://${hostname}/\r\nss-set ss:url.service ${link}\r\n\r\n# provide status information through web UI\r\nss-display \"Webserver ready on ${hostname}!\"# \r\n```\r\nshowing that the deployment recipe is there but not the others.\r\n\r\nThe scripts are actually defined in the XML representation of the run [run.txt](https://github.com/slipstream/SlipStreamServer/files/42421/run.txt).\r\n"},"comment":{"url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/comments/159232506","html_url":"https://github.com/slipstream/SlipStreamServer/issues/545#issuecomment-159232506","issue_url":"https://api.github.com/repos/slipstream/SlipStreamServer/issues/545","id":159232506,"user":{"login":"konstan","id":353767,"avatar_url":"https://avatars.githubusercontent.com/u/353767?v=3","gravatar_id":"","url":"https://api.github.com/users/konstan","html_url":"https://github.com/konstan","followers_url":"https://api.github.com/users/konstan/followers","following_url":"https://api.github.com/users/konstan/following{/other_user}","gists_url":"https://api.github.com/users/konstan/gists{/gist_id}","starred_url":"https://api.github.com/users/konstan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstan/subscriptions","organizations_url":"https://api.github.com/users/konstan/orgs","repos_url":"https://api.github.com/users/konstan/repos","events_url":"https://api.github.com/users/konstan/events{/privacy}","received_events_url":"https://api.github.com/users/konstan/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T11:11:02Z","updated_at":"2015-11-24T11:11:02Z","body":"https://nuv.la/module/loomis/ubuntu-12.04-script-problem/2367 is the native image with cloud image IDs defined on it.  This simple run (image run) contains the following\r\n\r\n```\r\n      <entry>\r\n         <string>machine:run-build-recipes</string>\r\n         <parameter name=\"machine:run-build-recipes\" description=\"Define if the SlipStream executor should run build recipes.\" category=\"General\" mandatory=\"false\" type=\"String\" readonly=\"false\" order_=\"0\" order=\"0\">\r\n            <value><![CDATA[false]]></value>\r\n         </parameter>\r\n      </entry>\r\n```\r\n\r\nIt looks as if the server-side assumes that if cloud image IDs are present on the image module there is no need to run `prerecipe` and `recipe` scripts (`run-build-recipes`).\r\n\r\nhttps://github.com/slipstream/SlipStreamServer/blob/master/jar-persistence/src/main/java/com/sixsq/slipstream/persistence/ImageModule.java#L146"}}