<div dir="ltr">Hi Vishnu,<div><br></div><div>Just to rule out any underlying metadata service issue, can you verify if a simple heat stack with user_data [1] works fine first? Also, the actual TOSCA -> HOT translated template will be available in tacker.log. Try creating a heat stack using that HOT template and make sure the intended user_data cmds gets executed..</div><div><br></div><div>HTH,</div><div>Sridhar</div><div><br></div><div>[1] <a href="https://docs.openstack.org/developer/heat/template_guide/software_deployment.html#user-data-boot-scripts-and-cloud-init">https://docs.openstack.org/developer/heat/template_guide/software_deployment.html#user-data-boot-scripts-and-cloud-init</a></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 22, 2017 at 5:08 AM, Vishnu Pajjuri <span dir="ltr"><<a href="mailto:vishnu.socialac@gmail.com" target="_blank">vishnu.socialac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> Hi,</div><div><br></div><div>   I'm have installed openstack with tacker by devstack. </div><div><br></div><div>I'm able to run OpenWRT vnf and able to configure the firewall service with openwrt management driver.</div><div><br></div><div>And also able to run shell commands in cirros image which is also using openwrt management driver.</div><div><br></div><div><br></div><div>Now I have created one ubuntu image, and able to launch through tacker.</div><div><br></div><div>In this instance i want run some shell commands through tacker's user_data feature.</div><div><br></div><div>But no commands are executing.</div><div><br></div><div>Is it possible to run commands on custom images unlike cirros/openwrt?</div><div><br></div><div>If yes kindly share the procedure to create proper ubuntu image.</div><div><br></div><div><br></div><div><br></div><div>Below is tosca configd file</div><div><br></div><div><br></div><div>    tosca_definitions_version: tosca_simple_profile_for_nfv_<wbr>1_0_0</div><div><br></div><div>    description: Demo with user-data</div><div><br></div><div>    metadata:</div><div>      template_name: sample-vnfd-userdata</div><div><br></div><div>    topology_template:</div><div>      node_templates:</div><div>        VDU1:</div><div>          type: tosca.nodes.nfv.VDU.Tacker</div><div>          capabilities:</div><div>            nfv_compute:</div><div>              properties:</div><div>                num_cpus: 1</div><div>                mem_size: 1024 MB</div><div>                disk_size: 1 GB</div><div>          properties:</div><div>            image: ubuntu-image</div><div>            config: |</div><div>              param0: key1</div><div>              param1: key2</div><div>            mgmt_driver: openwrt</div><div>            config_drive: true</div><div>            user_data_format: RAW</div><div>            user_data: |</div><div>              #!/bin/sh</div><div>              echo "my hostname is `hostname`" > /tmp/hostname</div><div>              date > /tmp/date</div><div>              ifconfig > /tmp/ifconfig</div><div>              df -h > /tmp/diskinfo</div><div>        CP1:</div><div>          type: tosca.nodes.nfv.CP.Tacker</div><div>          properties:</div><div>            management: true</div><div>            order: 0</div><div>            anti_spoofing_protection: false</div><div>          requirements:</div><div>            - virtualLink:</div><div>                node: VL1</div><div>            - virtualBinding:</div><div>                node: VDU1</div><div><br></div><div>         VL1:</div><div>          type: tosca.nodes.nfv.VL</div><div>          properties:</div><div>            network_name: net_mgmt</div><div>            vendor: ACME</div><div><br></div><div>Regards,</div><div>-Vishnu</div></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br></div>