ccing mailing list
Wed, Sep 26, 2018 at 01:30:02PM CEST, sandeepkishan108(a)gmail.com wrote:
>Thanks for the response.
>
>I am trying to test the ping test between two slave machines... I see that
>test stopped at below state. It looks like waiting for something. ?
>
>*Logs from controller side -*
>Loading config file '/etc/lnst-ctl.conf'
>Loading config file '/home/sandeep/.lnst/lnst-ctl.conf'
>2018-09-26 15:25:12 (localhost) - INFO:
>
>--------------------------------------------------------------------------------------------------------
> Trying recipe file "recipe.xml" match 1
> Logs for this recipe will be stored in
>'/home/sandeep/.lnst/logs/2018-09-26_15:25:12/01_recipe_match_1'
>
>--------------------------------------------------------------------------------------------------------
>2018-09-26 15:25:12 (localhost) - INFO: No previous
>configuration found.
>2018-09-26 15:25:12 (localhost) - INFO: Checking machine
>pool availability.
>2018-09-26 15:25:12 (localhost) - INFO: Processing pool
>'default', directory '/home/sandeep/.lnst/pool'
>2018-09-26 15:25:12 (localhost) - DEBUG: Querying machine
>'slave1': 10.0.0.6:9999
>2018-09-26 15:25:12 (localhost) - DEBUG: Querying machine
>'slave2': 10.0.0.18:9999
>2018-09-26 15:25:12 (localhost) - INFO: slave1 [UP]
>2018-09-26 15:25:12 (localhost) - INFO: slave2 [UP]
>2018-09-26 15:25:12 (localhost) - INFO: Finished loading
>pools.
>2018-09-26 15:25:12 (localhost) - DEBUG: Executing: "cd
>"/usr/share/lnst/test_tools" && tar cf "/tmp/tmpdSTJqR"
"multicast""
>2018-09-26 15:25:12 (localhost) - DEBUG: Executing: "cd
>"/usr/share/lnst/test_tools" && tar cf "/tmp/tmpV0fb4B"
"tcp_conn""
>2018-09-26 15:25:12 (localhost) - INFO: Matching machines,
>without virtuals.
>2018-09-26 15:25:12 (localhost) - INFO: Trying match with
>pool: default
>2018-09-26 15:25:12 (localhost) - INFO: Pool match
>description:
>2018-09-26 15:25:12 (localhost) - INFO: host
>"testmachine1" uses "slave1"
>2018-09-26 15:25:12 (localhost) - INFO: interface
>"testifc1" matched to "1"
>2018-09-26 15:25:12 (localhost) - INFO: host
>"testmachine2" uses "slave2"
>2018-09-26 15:25:12 (localhost) - INFO: interface
>"testifc2" matched to "1"
>2018-09-26 15:25:12 (localhost) - INFO: Connecting to RPC
>on machine testmachine1 (10.0.0.6)
>2018-09-26 15:25:12 (localhost) - WARNING:
>===================================
>2018-09-26 15:25:12 (localhost) - WARNING: 10.0.0.6:9999
>2018-09-26 15:25:12 (localhost) - WARNING: NO SECURE CHANNEL
>SETUP IS IN PLACE
>2018-09-26 15:25:12 (localhost) - WARNING: ALL COMMUNICATION
>IS IN PLAINTEXT
>2018-09-26 15:25:12 (localhost) - WARNING:
>===================================
>2018-09-26 15:25:13 (testmachine1) - INFO: Performing machine
>cleanup.
>2018-09-26 15:25:13 (testmachine1) - DEBUG: Cleaning up
>leftover processes.
>2018-09-26 15:25:13 (testmachine1) - INFO: Restoring system
>configuration
>2018-09-26 15:25:13 (testmachine1) - INFO: Recieved a
>controller connection.
>2018-09-26 15:25:13 (testmachine1) - DEBUG: Executing: "ethtool
>-i sit0"
>2018-09-26 15:25:13 (testmachine1) - DEBUG: Executing: "ethtool
>-i ip6tnl0"
>2018-09-26 15:25:13 (testmachine1) - DEBUG: Executing: "ethtool
>-i ip6gre0"
>2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "uname
>-r"
>2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "cat
>/etc/redhat-release"
>2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "ethtool
>-i sit0"
>2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "ethtool
>-i ip6tnl0"
>2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "ethtool
>-i ip6gre0"
>*2018-09-26 15:25:14 (testmachine1) - DEBUG: Executing: "ip
>link set eth0 down" ===>Test stopped after executing this command*
>
>*Logs from slave side -*
>Loading config file '/etc/lnst-slave.conf'
>2018-09-26 09:55:08 (localhost) - INFO: Started
>2018-09-26 09:55:08 (localhost) - INFO: Using RPC port 9999.
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i eth0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i sit0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i ip6tnl0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i ip6gre0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i enx0023563c4966"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i can0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i can1"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i enp3s0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i eth0.200"
>2018-09-26 09:55:08 (localhost) - DEBUG: Executing: "ethtool
>-i docker0"
>2018-09-26 09:55:08 (localhost) - DEBUG: Test cache index
>loaded
>2018-09-26 09:55:08 (localhost) - INFO: Waiting for
>connection.
>2018-09-26 09:55:12 (localhost) - INFO: Recieved connection
>from 10.0.0.1
>2018-09-26 09:55:12 (localhost) - INFO: Waiting for
>connection.
>2018-09-26 09:55:13 (localhost) - INFO: Recieved connection
>from 10.0.0.1
>2018-09-26 09:55:13 (localhost) - WARNING:
>===================================
>2018-09-26 09:55:13 (localhost) - WARNING: NO SECURE CHANNEL
>SETUP IS IN PLACE
>2018-09-26 09:55:13 (localhost) - WARNING: ALL COMMUNICATION
>IS IN PLAINTEXT
>2018-09-26 09:55:13 (localhost) - WARNING:
>===================================
>2018-09-26 09:55:13 (localhost) - INFO: Performing machine
>cleanup.
>2018-09-26 09:55:13 (localhost) - DEBUG: Cleaning up
>leftover processes.
>2018-09-26 09:55:13 (localhost) - INFO: Restoring system
>configuration
>2018-09-26 09:55:13 (localhost) - INFO: Recieved a
>controller connection.
>2018-09-26 09:55:13 (localhost) - DEBUG: Executing: "ethtool
>-i sit0"
>2018-09-26 09:55:13 (localhost) - DEBUG: Executing: "ethtool
>-i ip6tnl0"
>2018-09-26 09:55:13 (localhost) - DEBUG: Executing: "ethtool
>-i ip6gre0"
>2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "uname
>-r"
>2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "cat
>/etc/redhat-release"
>2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "ethtool
>-i sit0"
>2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "ethtool
>-i ip6tnl0"
>2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "ethtool
>-i ip6gre0"
>*2018-09-26 09:55:14 (localhost) - DEBUG: Executing: "ip
>link set eth0 down"*
>
>
>On Sun, Sep 23, 2018, 3:11 PM Jiri Pirko <jiri(a)resnulli.us> wrote:
>
>> Sun, Sep 23, 2018 at 06:26:33AM CEST, sandeepkishan108(a)gmail.com wrote:
>> >Hi jiri,
>> >
>> >Thanks for responding...
>> >
>> >Facing below errors when I am trying with lnst.
>>
>> Please make sure that all dependencies are up to date.
>>
>>
>> >
>> >On slave I see below errors -
>> >ubuntu@ubuntu:~/lnst$ sudo lnst-slave -d
>> >Loading config file '/etc/lnst-slave.conf'
>> >2018-09-23 04:10:38 (localhost) - INFO: Started
>> >2018-09-23 04:10:38 (localhost) - INFO: Using RPC port
>> 9999.
>> >*2018-09-23 04:10:38 (localhost) - ERROR: Generic netlink
>> >protocol devlink not found*
>> >*2018-09-23 04:10:38 (localhost) - ERROR: Please check if
>> >the protocol module is loaded*
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Executing:
>> "ethtool
>> >-i dummy0"
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Executing:
>> "ethtool
>> >-i eth0"
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Executing:
>> "ethtool
>> >-i sit0"
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Executing:
>> "ethtool
>> >-i ip6tnl0"
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Executing:
>> "ethtool
>> >-i ip6gre0"
>> >*2018-09-23 04:10:38 (localhost) - ERROR: Generic netlink
>> >protocol devlink not found*
>> >*2018-09-23 04:10:38 (localhost) - ERROR: Please check if
>> >the protocol module is loaded*
>> >2018-09-23 04:10:38 (localhost) - DEBUG: Test cache index
>> >loaded
>> >2018-09-23 04:10:38 (localhost) - INFO: Waiting for
>> >connection.
>> >2018-09-23 04:11:43 (localhost) - INFO: Recieved
>> connection
>> >from 10.19.65.141
>> >2018-09-23 04:11:43 (localhost) - INFO: Waiting for
>> >connection.
>> >
>> >LNST controller see below errors when i tried to check ping recipe -
>> >sandeep@sandeep:~$ sudo lnst-ctl -d run
>> >code/lnst/recipes/examples/quick_guides/ping_check.xml
>> >Loading config file '/etc/lnst-ctl.conf'
>> >Loading config file '/home/sandeep/.lnst/lnst-ctl.conf'
>> >2018-09-23 09:41:43 (localhost) - INFO:
>> >
>>
>>
>------------------------------------------------------------------------------------------------------------
>> > Trying recipe file
>> >"code/lnst/recipes/examples/quick_guides/ping_check.xml" match 1
>> > Logs for this recipe will be stored in
>> >'/home/sandeep/.lnst/logs/2018-09-23_09:41:43/01_ping_check_match_1'
>> >
>>
>>
>------------------------------------------------------------------------------------------------------------
>> >2018-09-23 09:41:43 (localhost) - INFO: No previous
>> >configuration found.
>> >2018-09-23 09:41:43 (localhost) - INFO: Checking machine
>> >pool availability.
>> >2018-09-23 09:41:43 (localhost) - INFO: Processing pool
>> >'default', directory '/home/sandeep/.lnst/pool'
>> >2018-09-23 09:41:43 (localhost) - DEBUG: Querying machine
>> >'slave1': 10.19.66.31:9999
>> >2018-09-23 09:41:43 (localhost) - DEBUG: Querying machine
>> >'slave2': 10.19.66.91:9999
>> >2018-09-23 09:41:43 (localhost) - INFO: slave1 [UP]
>> >2018-09-23 09:41:43 (localhost) - INFO: slave2 [UP]
>> >2018-09-23 09:41:43 (localhost) - INFO: Finished loading
>> >pools.
>> >2018-09-23 09:41:43 (localhost) - DEBUG: Executing: "cd
>> >"/usr/share/lnst/test_tools" && tar cf
"/tmp/tmpxP0Czk" "multicast""
>> >2018-09-23 09:41:44 (localhost) - DEBUG: Executing: "cd
>> >"/usr/share/lnst/test_tools" && tar cf
"/tmp/tmp78XAWh" "tcp_conn""
>> >2018-09-23 09:41:44 (localhost) - INFO: Matching machines,
>> >without virtuals.
>> >2018-09-23 09:41:44 (localhost) - INFO: Trying match with
>> >pool: default
>> >2018-09-23 09:41:44 (localhost) - INFO: Pool match
>> >description:
>> >2018-09-23 09:41:44 (localhost) - INFO: host
>> >"testmachine1" uses "slave1"
>> >2018-09-23 09:41:44 (localhost) - INFO: interface
>> >"testifc1" matched to "1"
>> >2018-09-23 09:41:44 (localhost) - INFO: host
>> >"testmachine2" uses "slave2"
>> >2018-09-23 09:41:44 (localhost) - INFO: interface
>> >"testifc2" matched to "1"
>> >2018-09-23 09:41:44 (localhost) - INFO: Connecting to RPC
>> >on machine testmachine1 (10.19.66.31)
>> >*2018-09-23 09:41:44 (localhost) - WARNING:
>> >===================================*
>> >*2018-09-23 09:41:44 (localhost) - WARNING: 10.19.66.31:9999
>> ><http://10.19.66.31:9999/>*
>> >*2018-09-23 09:41:44 (localhost) - WARNING: NO SECURE CHANNEL
>> >SETUP IS IN PLACE*
>> >*2018-09-23 09:41:44 (localhost) - WARNING: ALL
>> COMMUNICATION
>> >IS IN PLAINTEXT*
>> >*2018-09-23 09:41:44 (localhost) - WARNING:
>> >===================================*
>> >2018-09-23 09:41:44 (testmachine1) - INFO: Performing machine
>> >cleanup.
>> >2018-09-23 09:41:44 (testmachine1) - DEBUG: Cleaning up
>> >leftover processes.
>> >2018-09-23 09:41:44 (testmachine1) - INFO: Restoring system
>> >configuration
>> >2018-09-23 09:41:44 (testmachine1) - INFO: Recieved a
>> >controller connection.
>> >2018-09-23 09:41:44 (testmachine1) - DEBUG:
>> > Traceback (most recent call last):
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Slave/NetTestSlave.py", line
>> >1432, in _process_msg
>> > result = method(*msg["args"])
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Slave/NetTestSlave.py", line
>> >82, in hello
>> > self._if_manager.rescan_devices()
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Slave/InterfaceManager.py",
>> >line 117, in rescan_devices
>> >
self._devices[dev['index']].update_netlink(dev['netlink_msg'])
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Slave/InterfaceManager.py",
>> >line 416, in update_netlink
>> > if nl_msg.get_nested("IFLA_LINKINFO",
"IFLA_INFO_KIND") ==
>> "vxlan":
>> >* AttributeError: 'ifinfmsg' object has no attribute
'get_nested'*
>> >
>> >2018-09-23 09:41:44 (localhost) - ERROR: Exception raised
>> >during configuration.
>> >2018-09-23 09:41:44 (localhost) - DEBUG:
>> > Traceback (most recent call last):
>> > File "/usr/local/bin/lnst-ctl", line 182, in
get_recipe_result
>> > res = exec_action(action, nettestctl)
>> > File "/usr/local/bin/lnst-ctl", line 137, in exec_action
>> > return nettestctl.run_recipe()
>> > File
>>
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/NetTestController.py",
>> >line 648, in run_recipe
>> > self._prepare_network()
>> > File
>>
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/NetTestController.py",
>> >line 198, in _prepare_network
>> > self._prepare_machine(m_id, resource_sync)
>> > File
>>
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/NetTestController.py",
>> >line 266, in _prepare_machine
>> > machine.init_connection(recipe_name)
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/Machine.py", line
>> >286, in init_connection
>> > hello, slave_desc = self._rpc_call("hello", recipe_name)
>> > File
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/Machine.py", line
>> >250, in _rpc_call
>> > result = self._msg_dispatcher.wait_for_result(self._id)
>> > File
>>
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/NetTestController.py",
>> >line 910, in wait_for_result
>> > self._process_message(msg)
>> > File
>>
>>
>"/usr/local/lib/python2.7/dist-packages/lnst/Controller/NetTestController.py",
>> >line 936, in _process_message
>> > raise CommandException(msg)
>> > CommandException: CommandException: Slave testmachine1:
'ifinfmsg'
>> >object has no attribute 'get_nested'
>> >
>> >2018-09-23 09:41:44 (localhost) - ERROR: CommandException:
>> >Slave testmachine1: 'ifinfmsg' object has no attribute
'get_nested'
>> >2018-09-23 09:41:44 (localhost) - INFO:
>> >==================================================== SUMMARY
>> >====================================================
>> >2018-09-23 09:41:44 (localhost) - INFO:
>> >code/lnst/recipes/examples/quick_guides/ping_check.xml match: 1
>> > FAIL
>> >2018-09-23 09:41:44 (localhost) - INFO: Pool match
>> >description:
>> >2018-09-23 09:41:44 (localhost) - INFO: host
>> >"testmachine1" uses "slave1"
>> >2018-09-23 09:41:44 (localhost) - INFO: interface
>> >"testifc1" matched to "1"
>> >2018-09-23 09:41:44 (localhost) - INFO: host
>> >"testmachine2" uses "slave2"
>> >2018-09-23 09:41:44 (localhost) - INFO: interface
>> >"testifc2" matched to "1"
>> >2018-09-23 09:41:44 (localhost) - INFO: error
>> message:
>> >CommandException: Slave testmachine1: 'ifinfmsg' object has no
attribute
>> >'get_nested'
>> >2018-09-23 09:41:44 (localhost) - INFO:
>>
>>
>=================================================================================================================
>> >2018-09-23 09:41:44 (localhost) - INFO: Total test time: 0
>> >days, 0 hours, 0 minutes, 0 seconds
>> >2018-09-23 09:41:44 (localhost) - INFO: Logs are stored in
>> >'/home/sandeep/.lnst/logs/2018-09-23_09:41:43'
>> >
>> >
>> >sandeep@sandeep:~$ cat
>> >code/lnst/recipes/examples/quick_guides/ping_check.xml
>> ><!--
>> >This is a recipe from a quick guide that is available on LNST wiki page:
>> >
>> >
https://fedorahosted.org/lnst/wiki/QuickGuides/QuickGuidePingCheck
>> >-->
>> ><lnstrecipe>
>> > <network>
>> > <host id="testmachine1">
>> > <interfaces>
>> > <eth id="testifc1" label="tnet">
>> > <addresses>
>> > <address value="10.19.66.91/24"/>
>> > </addresses>
>> > </eth>
>> > </interfaces>
>> > </host>
>> >
>> > <host id="testmachine2">
>> > <interfaces>
>> > <eth id="testifc2" label="tnet">
>> > <addresses>
>> > <address value="10.19.66.31/24"/>
>> > </addresses>
>> > </eth>
>> > </interfaces>
>> > </host>
>> > </network>
>> >
>> > <task>
>> > <run host="testmachine1"
module="IcmpPing">
>> > <options>
>> > <option name="addr"
value="{ip(testmachine2,testifc2)}"/>
>> > <option name="count" value="3"/>
>> > </options>
>> > </run>
>> > </task>
>> ></lnstrecipe>
>> >
>> >Please help me to understand the issue here.
>> >
>> >Thanks for your help in advance.
>> >
>> >On Sun, Sep 23, 2018, 12:06 AM Jiri Pirko <jiri(a)resnulli.us> wrote:
>> >
>> >> Sat, Sep 22, 2018 at 06:35:45PM CEST, sandeepkishan108(a)gmail.com wrote:
>> >> >Hi,
>> >> >I came across lnst for testing Linux network stack. Its nice work.
>> >> >
>> >> >Is it possible to use this in Ubuntu ?
>> >>
>> >> Yes.
>> >>
>> >> >
>> >> >Also can we run the c applications as part this framework ?
>> >>
>> >> Yes.
>> >>
>> >>
>> >> >
>> >> >Thanks,
>> >> >Sandeep.
>> >>
>>