*** masaito has joined #tacker | 00:36 | |
*** Li_Jiale has joined #tacker | 01:46 | |
*** Li has joined #tacker | 02:05 | |
*** Li is now known as Guest66700 | 02:06 | |
*** Li_Jiale has quit IRC | 02:07 | |
*** gongysh has joined #tacker | 02:50 | |
*** dangtrinhnt_ has joined #tacker | 03:21 | |
*** dangtrinhnt_ has quit IRC | 03:58 | |
*** links has joined #tacker | 03:59 | |
*** YanXingAn has joined #tacker | 04:16 | |
*** YanXingAn has quit IRC | 04:18 | |
*** links has quit IRC | 04:25 | |
*** links has joined #tacker | 04:27 | |
*** Guest66700 has left #tacker | 04:31 | |
*** Li_Jiale has joined #tacker | 04:32 | |
*** YanXingAn has joined #tacker | 04:39 | |
*** YanXingAn has quit IRC | 04:43 | |
*** YanXingAn has joined #tacker | 04:49 | |
*** YanXingAn has quit IRC | 04:53 | |
*** gongysh has quit IRC | 04:57 | |
*** gongysh has joined #tacker | 04:59 | |
*** YanXingAn has joined #tacker | 05:13 | |
*** YanXingAn has quit IRC | 05:16 | |
*** janki has joined #tacker | 05:55 | |
*** gongysh has quit IRC | 06:04 | |
*** gongysh has joined #tacker | 06:05 | |
*** trinaths has joined #tacker | 06:06 | |
*** links has quit IRC | 06:41 | |
*** Li_Jiale has quit IRC | 06:46 | |
*** links has joined #tacker | 06:51 | |
*** egonzalez has joined #tacker | 07:03 | |
openstackgerrit | Cong Phuoc Hoang proposed openstack/tacker master: Add reusing feature when creating VNFFG. https://review.openstack.org/540209 | 07:25 |
---|---|---|
openstackgerrit | Cong Phuoc Hoang proposed openstack/tacker master: Add reusing feature when creating VNFFG. https://review.openstack.org/540209 | 07:56 |
*** gongysh has quit IRC | 09:32 | |
*** gongysh has joined #tacker | 09:34 | |
*** trinaths has quit IRC | 10:49 | |
*** gongysh has quit IRC | 11:10 | |
*** janki has quit IRC | 11:15 | |
*** gongysh has joined #tacker | 11:17 | |
*** gongysh has quit IRC | 11:21 | |
*** janki has joined #tacker | 12:13 | |
openstackgerrit | Nguyen Hai proposed openstack/tacker master: Check mgmt_driver in TOSCA template supported by VNFM https://review.openstack.org/546121 | 13:09 |
*** dangtrinhnt has quit IRC | 14:24 | |
*** links has quit IRC | 14:37 | |
*** masaito has quit IRC | 14:56 | |
geb | hello | 14:58 |
geb | I 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 |
phuoc | geb, hi | 15:00 |
phuoc | https://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L68 | 15:02 |
phuoc | as you can see, Tacker call RemoteCommandExecutor which use ssh protocol to access the VM | 15:03 |
phuoc | then execute commands on openwrt VM | 15:03 |
geb | right, 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 etc | 15:04 |
geb | or maybe i don't understand the code :) | 15:04 |
phuoc | you mean that adds new rules, and still keep the old rules | 15:05 |
*** bobh has joined #tacker | 15:06 | |
geb | No. Sorry if i am not clear. As i understand the code, | 15:07 |
geb | https://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L70 execute the command | 15:07 |
geb | https://github.com/openstack/tacker/blob/master/tacker/vnfm/mgmt_drivers/openwrt/openwrt.py#L63 define the command executed | 15:07 |
geb | however, the only commands which will be launched will be "uci import %s; /etc/init.d/%s restart" | 15:08 |
phuoc | geb, that's right :-) | 15:08 |
phuoc | Ahh | 15:09 |
phuoc | I think I get your point | 15:09 |
geb | this command will only add services, and not configure then, right ? | 15:09 |
phuoc | geb, when you look at the line 70 | 15:11 |
phuoc | there is input_data = config | 15:11 |
phuoc | https://github.com/openstack/tacker/blob/a0675317375e217d30635f6d661d3f164256270f/tacker/common/cmd_executer.py#L80 | 15:11 |
phuoc | the input_data will be executed by execute_command function | 15:13 |
geb | yep, 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.yaml | 15:15 |
phuoc | hmm, you mean these config can be wrong | 15:17 |
phuoc | and there are some problems? | 15:17 |
geb | Well, i don't find the code that transform those "abstract" configuration values to proper openwrt/linux commands | 15:19 |
geb | if 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 |
phuoc | ahh, you meet the error command not found :-) | 15:23 |
geb | Well, i was trying to read the code before launching it ... Will try the inverse and maybe will it answer my questions :) | 15:26 |
geb | Thanks a lot anyway, for the time you took to answer my questions :) | 15:27 |
phuoc | https://github.com/openstack/tacker/blob/master/doc/source/install/deploy_openwrt.rst | 15:27 |
phuoc | you can try that | 15:27 |
phuoc | some guys updated the doc recently | 15:27 |
phuoc | geb, you're welcome | 15:28 |
geb | BTW, 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 interest | 15:50 |
haint_ | geb, we also research on NFV. Thank you for your contribution. | 15:56 |
phuoc | geb, nice to meet you | 15:58 |
geb | :) | 15:58 |
phuoc | but that seems '/usr/local/share/' is missing :-) | 15:59 |
geb | it should be here after pip install kolla-ansible | 16:01 |
geb | https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html | 16:02 |
*** egonzalez has quit IRC | 16:03 | |
phuoc | oops, that directory /usr/local/share/kolla-ansible/etc_examples | 16:03 |
phuoc | I can not see etc_examples in kolla-ansible | 16:04 |
geb | on ubuntu ? https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html indicate a different path for centos | 16:08 |
geb | But 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, as | 16:09 |
geb | of now its only notes, in a shell script form :) | 16:09 |
phuoc | geb, I will try your script, thanks ^^ | 16:18 |
geb | phuoc, 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 uploading | 16:22 |
*** janki has quit IRC | 17:18 | |
*** bobh has quit IRC | 18:51 | |
*** bobh has joined #tacker | 19:04 | |
*** bobh has quit IRC | 20:01 | |
*** openstackstatus has quit IRC | 22:13 | |
*** openstack has joined #tacker | 22:17 | |
*** ChanServ sets mode: +o openstack | 22:17 | |
*** bobh has joined #tacker | 22:31 | |
*** openstackstatus has quit IRC | 22:42 | |
*** openstack has joined #tacker | 22:46 | |
*** ChanServ sets mode: +o openstack | 22:46 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!