Wednesday, 2018-03-07

*** masaito has joined #tacker00:36
*** Li_Jiale has joined #tacker01:46
*** Li has joined #tacker02:05
*** Li is now known as Guest6670002:06
*** Li_Jiale has quit IRC02:07
*** gongysh has joined #tacker02:50
*** dangtrinhnt_ has joined #tacker03:21
*** dangtrinhnt_ has quit IRC03:58
*** links has joined #tacker03:59
*** YanXingAn has joined #tacker04:16
*** YanXingAn has quit IRC04:18
*** links has quit IRC04:25
*** links has joined #tacker04:27
*** Guest66700 has left #tacker04:31
*** Li_Jiale has joined #tacker04:32
*** YanXingAn has joined #tacker04:39
*** YanXingAn has quit IRC04:43
*** YanXingAn has joined #tacker04:49
*** YanXingAn has quit IRC04:53
*** gongysh has quit IRC04:57
*** gongysh has joined #tacker04:59
*** YanXingAn has joined #tacker05:13
*** YanXingAn has quit IRC05:16
*** janki has joined #tacker05:55
*** gongysh has quit IRC06:04
*** gongysh has joined #tacker06:05
*** trinaths has joined #tacker06:06
*** links has quit IRC06:41
*** Li_Jiale has quit IRC06:46
*** links has joined #tacker06:51
*** egonzalez has joined #tacker07:03
openstackgerritCong Phuoc Hoang proposed openstack/tacker master: Add reusing feature when creating VNFFG.  https://review.openstack.org/54020907:25
openstackgerritCong Phuoc Hoang proposed openstack/tacker master: Add reusing feature when creating VNFFG.  https://review.openstack.org/54020907:56
*** gongysh has quit IRC09:32
*** gongysh has joined #tacker09:34
*** trinaths has quit IRC10:49
*** gongysh has quit IRC11:10
*** janki has quit IRC11:15
*** gongysh has joined #tacker11:17
*** gongysh has quit IRC11:21
*** janki has joined #tacker12:13
openstackgerritNguyen Hai proposed openstack/tacker master: Check mgmt_driver in TOSCA template supported by VNFM  https://review.openstack.org/54612113:09
*** dangtrinhnt has quit IRC14:24
*** links has quit IRC14:37
*** masaito has quit IRC14:56
gebhello14:58
gebI am trying to understand https://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py would somebody be available for a few questions ? Main one : i don't understand how the code can add rules etc as it *seems* to only launch: cmd = "uci import %s; /etc/init.d/%s restart" % (service, package)15:00
phuocgeb, hi15:00
phuochttps://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L6815:02
phuocas you can see, Tacker call RemoteCommandExecutor which use ssh protocol to access the VM15:03
phuocthen execute commands on openwrt VM15:03
gebright, but, it seems to only launch 'cmd = "uci import %s; /etc/init.d/%s restart" % (service, package)' and no special command to add the rules etc15:04
gebor maybe i don't understand the code :)15:04
phuocyou mean that adds new rules, and still keep the old rules15:05
*** bobh has joined #tacker15:06
gebNo. Sorry if i am not clear. As i understand the code,15:07
gebhttps://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L70 execute the command15:07
gebhttps://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L63 define the command executed15:07
gebhowever, the only commands which will be launched will be "uci import %s; /etc/init.d/%s restart"15:08
phuocgeb, that's right :-)15:08
phuocAhh15:09
phuocI think I get your point15:09
gebthis command will only add services, and not configure then, right ?15:09
phuocgeb, when you look at the line 7015:11
phuocthere is input_data = config15:11
phuochttps://github.com/openstack/tacker/blob/a0675317375e217d30635f6d661d3f164256270f/tacker/common/cmd_executer.py#L8015:11
phuocthe input_data will be executed by execute_command function15:13
gebyep, right, but how those input_data, won't end to be valid linux/openwrt commands ? https://github.com/openstack/tacker/blob/master/samples/tosca-templates/vnfd/tosca-config-openwrt-firewall.yaml15:15
phuochmm, you mean these config can be wrong15:17
phuocand there are some problems?15:17
gebWell, i don't find the code that transform those "abstract" configuration values to proper openwrt/linux commands15:19
gebif https://github.com/openstack/tacker/blob/a0675317375e217d30635f6d661d3f164256270f/tacker/common/cmd_executer.py#L80 simply try to execute them as they are wrote in https://github.com/openstack/tacker/blob/master/samples/tosca-templates/vnfd/tosca-config-openwrt-firewall.yaml i don't understand how it will end in anything else than bash complaining about "command not found" :)15:22
phuocahh, you meet the error command not found :-)15:23
gebWell, i was trying to read the code before launching it ... Will try the inverse and maybe will it answer my questions :)15:26
gebThanks a lot anyway, for the time you took to answer my questions :)15:27
phuochttps://github.com/openstack/tacker/blob/master/doc/source/install/deploy_openwrt.rst15:27
phuocyou can try that15:27
phuocsome guys updated the doc recently15:27
phuocgeb, you're welcome15:28
gebBTW, I am working in a research project to investigate about SDN/NFV, and choose to use tacker as a testbed. I had to adapt a bit the install procedure & kolla quickstart (for example to deploy in all in one). I took notes as a script which should be almost functionnal https://pastebin.com/RERqxx09. I would be happy to contribute it if there is any interest15:50
haint_geb, we also research on NFV. Thank you for your contribution.15:56
phuocgeb, nice to meet you15:58
geb:)15:58
phuocbut that seems '/usr/local/share/' is missing :-)15:59
gebit should be here after pip install kolla-ansible16:01
gebhttps://docs.openstack.org/kolla-ansible/latest/user/quickstart.html16:02
*** egonzalez has quit IRC16:03
phuocoops, that directory /usr/local/share/kolla-ansible/etc_examples16:03
phuocI can not see etc_examples in kolla-ansible16:04
gebon ubuntu ? https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html indicate a different path for centos16:08
gebBut i don't not wrote the script to be run as it, mostly as notes, to have a simplier install procedure than https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html & https://docs.openstack.org/tacker/latest/install/kolla.html (for example to use all-in-one, desactivate haproxy, and maybe after some other stuffs like neutron configuration, some vnf creation etc) ... I may end validating it, or using it as a base of a written documentation, as16:09
gebof now its only notes, in a shell script form :)16:09
phuocgeb, I will try your script, thanks ^^16:18
gebphuoc, let me know how it works :). You may have to remove the second "install" mention in line 85 (pip install python-openstackclient python-glanceclient python-neutronclient install python-tackerclient networking-sfc). Just saw it after uploading16:22
*** janki has quit IRC17:18
*** bobh has quit IRC18:51
*** bobh has joined #tacker19:04
*** bobh has quit IRC20:01
*** openstackstatus has quit IRC22:13
*** openstack has joined #tacker22:17
*** ChanServ sets mode: +o openstack22:17
*** bobh has joined #tacker22:31
*** openstackstatus has quit IRC22:42
*** openstack has joined #tacker22:46
*** ChanServ sets mode: +o openstack22:46

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!