{"action":"created","issue":{"url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/23","labels_url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/23/comments","events_url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/23/events","html_url":"https://github.com/CELAR/SlipStreamConnector-Fco/issues/23","id":108118845,"number":23,"title":"when starting an image, connector should distinguish between starting VM for build or for run","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},"labels":[{"url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"madhuri-flexiant","id":12494512,"avatar_url":"https://avatars.githubusercontent.com/u/12494512?v=3","gravatar_id":"","url":"https://api.github.com/users/madhuri-flexiant","html_url":"https://github.com/madhuri-flexiant","followers_url":"https://api.github.com/users/madhuri-flexiant/followers","following_url":"https://api.github.com/users/madhuri-flexiant/following{/other_user}","gists_url":"https://api.github.com/users/madhuri-flexiant/gists{/gist_id}","starred_url":"https://api.github.com/users/madhuri-flexiant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhuri-flexiant/subscriptions","organizations_url":"https://api.github.com/users/madhuri-flexiant/orgs","repos_url":"https://api.github.com/users/madhuri-flexiant/repos","events_url":"https://api.github.com/users/madhuri-flexiant/events{/privacy}","received_events_url":"https://api.github.com/users/madhuri-flexiant/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-24T12:14:22Z","updated_at":"2015-09-29T11:18:07Z","closed_at":null,"body":"This might have been miscommunication where I failed to deliver the message that this distinction should be made.\r\n\r\nThe basic difference is that for building an image we don't need to contextualise it, and what is most important run a the slipstream bootstrap script on it.\r\n\r\nThe working implementations as examples are here:\r\n\r\n- https://github.com/slipstream/SlipStreamConnectors/blob/master/stratuslab/python/tar/slipstream_stratuslab/StratusLabClientCloud.py#L229  Check the fork in the logic relying on `self.is_build_image()` (defined on the parent).\r\n\r\n- https://github.com/slipstream/SlipStreamConnectors/blob/master/openstack/python/tar/slipstream_openstack/OpenStackClientCloud.py#L140  For this connector it's simpler and more expressive -- we don't need contextualization script at all in case of building image `contextualization_script == ''`\r\n\r\nPlease let me know if you need any help with this.  Lets communicate via the ticket.\r\n"},"comment":{"url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/comments/144029833","html_url":"https://github.com/CELAR/SlipStreamConnector-Fco/issues/23#issuecomment-144029833","issue_url":"https://api.github.com/repos/CELAR/SlipStreamConnector-Fco/issues/23","id":144029833,"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-09-29T11:18:07Z","updated_at":"2015-09-29T11:18:07Z","body":"Yes.\r\n\r\nThe script for running SlipStream bootstrap process should be empty.  This script is returned by `self._get_bootstrap_script(node_instance)` as you can see in the second example.\r\nThis is the place where you must fix it\r\nhttps://github.com/CELAR/SlipStreamConnector-Fco/blob/master/python/tar/flexiant/FlexiantClientCloud.py#L167\r\nUse something similar to the second example."}}