[openstack-dev] [Openstack-dev][Tacker] Not able to run user_data commands on my instance
srics.r at gmail.com
Tue May 23 00:36:02 UTC 2017
Just to rule out any underlying metadata service issue, can you verify if a
simple heat stack with user_data  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..
On Mon, May 22, 2017 at 5:08 AM, Vishnu Pajjuri <vishnu.socialac at gmail.com>
> I'm have installed openstack with tacker by devstack.
> I'm able to run OpenWRT vnf and able to configure the firewall service
> with openwrt management driver.
> And also able to run shell commands in cirros image which is also using
> openwrt management driver.
> Now I have created one ubuntu image, and able to launch through tacker.
> In this instance i want run some shell commands through tacker's user_data
> But no commands are executing.
> Is it possible to run commands on custom images unlike cirros/openwrt?
> If yes kindly share the procedure to create proper ubuntu image.
> Below is tosca configd file
> tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
> description: Demo with user-data
> template_name: sample-vnfd-userdata
> type: tosca.nodes.nfv.VDU.Tacker
> num_cpus: 1
> mem_size: 1024 MB
> disk_size: 1 GB
> image: ubuntu-image
> config: |
> param0: key1
> param1: key2
> mgmt_driver: openwrt
> config_drive: true
> user_data_format: RAW
> user_data: |
> echo "my hostname is `hostname`" > /tmp/hostname
> date > /tmp/date
> ifconfig > /tmp/ifconfig
> df -h > /tmp/diskinfo
> type: tosca.nodes.nfv.CP.Tacker
> management: true
> order: 0
> anti_spoofing_protection: false
> - virtualLink:
> node: VL1
> - virtualBinding:
> node: VDU1
> type: tosca.nodes.nfv.VL
> network_name: net_mgmt
> vendor: ACME
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev