Thanks, that is very helpful.

FAUCET picks an unused port to make sure that all configuration is cleared (and then reconfigures the switch again), to make sure it can be restored dynamically.

Lagopus has only 4 ports configured so there is no unused port available. I changed the test to configure a new VLAN on an existing port instead. The fix is in master, please try it.



On Fri, May 11, 2018 at 10:09 PM Hirokazu Takahashi <takahashi.hirokazu@lab.ntt.co.jp> wrote:
Thank you for your cooperation.

The attached are the hw_switch_config.yaml and test logs.

[hw_switch_config.yaml]
The port1 to port4 are the linux interface names of the VM which Faucet
running.
I renamed them from default interface names.

[ofchannel.txt]
By searching "port=5", the FlowMods can be found.

[faucet.log]
It says
> May 11 09:48:45 faucet INFO     configuration /var/tmp/faucet-tests-6Cfkgp/FaucetTaggedIPv4RouteTest-test_tagged/faucet.yaml changed, analyzing differences
> May 11 09:48:45 faucet INFO     Reconfiguring existing datapath DPID 260367051208429 (0xeccd6d9936ed)
> May 11 09:48:45 faucet.valve INFO     DPID 260367051208429 (0xeccd6d9936ed) VLAN 200 config changed
> May 11 09:48:45 faucet.valve INFO     DPID 260367051208429 (0xeccd6d9936ed) port 5 added
> May 11 09:48:45 faucet.valve INFO     DPID 260367051208429 (0xeccd6d9936ed) deleted ports: {1, 2, 3, 4}

Thank you,
Hiro

On 2018/05/11 18:51, Josh Bailey wrote:
> This sounds very strange. I would check the hardware config file that
> you have the right ports mapped.
>
>
>
> On Fri, May 11, 2018, 21:28 Hirokazu Takahashi
> <takahashi.hirokazu@lab.ntt.co.jp
> <mailto:takahashi.hirokazu@lab.ntt.co.jp>> wrote:
>
>     Hello,
>
>     I retried the FaucetTaggedIPv4RouteTest.
>     The OFPError's code is OFPBAC_BAD_OUT_PORT.
>     I checked the ofchannel.txt and Lagopus logs.
>     The error is because Faucet sends FlowMods which include output action
>     with port=5, but Lagopus only handles port 1 to 4.
>
>     Are the FlowMods correct?
>
>     Thank you,
>     Hiro
>
>     On 2018/05/11 17:25, Hirokazu Takahashi wrote:
>      > Hello Josh,
>      >
>      > Thank you for the information.
>      > I'll retry the tests and check it.
>      >
>      > Thank you,
>      > Hiro
>      >
>      > On 2018/05/11 17:17, Josh Bailey wrote:
>      >> Hello Hiro,
>      >>
>      >> You can ignore the python error, it's benign here.
>      >>
>      >> FAUCET is getting OFErrors in response to its flows - a good first
>      >> step is for you to parse those errors to figure out why. There
>     should
>      >> be 0 OFErrors (you can run with OVS to compare). This means that
>     some
>      >> flows are not getting installed and they will absolutely cause the
>      >> tests to fail.
>      >>
>      >>
>      >>
>      >>
>      >>
>      >>
>      >>
>      >>
>      >> On Fri, May 11, 2018 at 8:02 PM Hirokazu Takahashi
>      >> <takahashi.hirokazu@lab.ntt.co.jp
>     <mailto:takahashi.hirokazu@lab.ntt.co.jp>
>      >> <mailto:takahashi.hirokazu@lab.ntt.co.jp
>     <mailto:takahashi.hirokazu@lab.ntt.co.jp>>> wrote:
>      >>
>      >>     Hello,
>      >>
>      >>     I'm Hirokazu Takahashi a member of Lagopus developers.
>      >>     I'm now testing Faucet and Lagopus with Marc Bruyere.
>      >>
>      >>     The attached is the console log of the faucet/tests.
>      >>     I can see several failures, so I'll check them.
>      >>
>      >>     At the end of the log, it seems that the test was quit by a
>     python
>      >>     error.
>      >>     If you know the reason of this error, please let me know.
>      >>
>      >>     I'm running both of the faucet/tests and Lagopus on virtual
>     machines.
>      >>     I'm using the master branch of Faucet.
>      >>     For Lagopus, I'm using the branch below on my forked repository.
>      >>     The branch has a couple of fixes to run the faucet/tests with
>      >> Lagopus.
>      >>
>      >> https://github.com/hirokazutakahashi/lagopus/tree/shownet
>      >>
>      >>     Thank you,
>      >>     Hirokazu Takahashi
>      >>     _______________________________________________
>      >>     Faucet-dev mailing list
>      >> http://faucet.nz/
>      >> Faucet-dev@list.waikato.ac.nz
>     <mailto:Faucet-dev@list.waikato.ac.nz>
>     <mailto:Faucet-dev@list.waikato.ac.nz
>     <mailto:Faucet-dev@list.waikato.ac.nz>>
>      >> https://list.waikato.ac.nz/mailman/listinfo/faucet-dev
>      >
>      > _______________________________________________
>      > Faucet-dev mailing list
>      > http://faucet.nz/
>      > Faucet-dev@list.waikato.ac.nz <mailto:Faucet-dev@list.waikato.ac.nz>
>      > https://list.waikato.ac.nz/mailman/listinfo/faucet-dev
>
>     _______________________________________________
>     Faucet-dev mailing list
>     http://faucet.nz/
>     Faucet-dev@list.waikato.ac.nz <mailto:Faucet-dev@list.waikato.ac.nz>
>     https://list.waikato.ac.nz/mailman/listinfo/faucet-dev