I am trying to create a custom packer plugin that can resolve the latest version of an image in openstack and then call the Openstack builder using that as the source image. I am also learning golang while I do this.
My plan is to create a custom builder which will handle the lookup and then call the existing Openstack Builder using the resolved image name and pass the other parameters through.
So far I have created the plugin and it's building and trying to call the openstack.Builder functionality, however the plugin just hangs.
james output will be in this color.
2017/12/28 14:39:45 james: 2017/12/28 14:39:45 Serving a plugin connection...
2017/12/28 14:39:45 ui: james output will be in this color.
2017/12/28 14:39:45 ui:
2017/12/28 14:39:45 Build debug mode: false
2017/12/28 14:39:45 Force build: false
2017/12/28 14:39:45 On error:
2017/12/28 14:39:45 Preparing build: james
2017/12/28 14:39:45 Waiting on builds to complete...
2017/12/28 14:39:45 Starting build run: james
2017/12/28 14:39:45 Running builder: james
2017/12/28 14:39:45 [INFO] (telemetry) Starting builder james
2017/12/28 14:39:45 ui: ==> james: in say
==> james: in say
2017/12/28 14:39:45 james: 2017/12/28 14:39:45 Plugin minimum port: 10000
2017/12/28 14:39:45 james: 2017/12/28 14:39:45 Plugin maximum port: 25000
2017/12/28 14:39:45 james: 2017/12/28 14:39:45 Plugin address: unix /tmp/packer-plugin904167325
2017/12/28 14:39:45 james: 2017/12/28 14:39:45 Waiting for connection...