New Question

Revision history [back]

click to hide/show revision 1
initial version

Hyper-v Open vSwitch agent not working

I used to follow the article Open vSwitch 2.5 on Hyper-V (OpenStack) but seems not working the openvswitch as I could not get it in the neutron from the controller node (via neutron agent-list command) on Windows Server 2016 Datacenter but working can see the Hyper-v compute node (via nova service-list command).

By the way software that I use, OpenStack Newton 1.1 (in the controller node). In Hyper-v server - HyperVNovaCompute_Newton 14.0.1 and openvswitch hyperv 2.5.1 certified (or even tried openvswitch hyperv 2.6.1 certified).

I am stuck in the part of the article that mentioned "Note: creating a service manually for the OVS agent won’t be necessary anymore starting with the next Nova Hyper-V MSI installer version. Here is the content of the neutron_ovs_agent.conf file:" as it mentioned not necessary anymore but seems not created a file, even tried to copy the same configurations as per stated and this is my configuration(C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\neutronovsagent.conf)

[DEFAULT]
verbose=true
debug=false
control_exchange=neutron
policy_file=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\policy.json
rpc_backend=neutron.openstack.common.rpc.impl_kombu
rabbit_host=10.20.30.203
rabbit_port=5672
rabbit_userid=guest
rabbit_password=guest
logdir=C:\OpenStack\Log\
logfile=neutron-ovs-agent.log
[agent]
tunnel_types = vxlan
enable_metrics_collection=false

[SECURITYGROUP]
enable_security_group=false
[ovs]
local_ip = 10.20.30.254
tunnel_bridge = br-tun
integration_bridge = br-int
tenant_network_type = vxlan
enable_tunneling = true

But it doesn't show me up, with the bridge/port such as br-int, patch-tun, br-tun, patch-int et al.. But only show me these, where ens5 is my network name.

PS C:\Users\Administrator> ovs-vsctl show
42842d57-2c30-4f59-a258-7ab149768d66
    Manager "ptcp:6640:127.0.0.1"
    Bridge "br-port1"
        Port "ens5"
            Interface "ens5"
        Port "br-port1"
            Interface "br-port1"
                type: internal

And the logs I got only these in c:\OpenStack\Log\neutron-ovs-agent.log

2016-12-13 17:40:56.226 2688 INFO neutron.common.config [-] Logging enabled!
2016-12-13 17:40:56.226 2688 INFO neutron.common.config [-] C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\Scripts\neutron-openvswitch-agent-script.py version 9.0.1.dev14
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_host" from group "DEFAULT" is deprecated. Use option "rabbit_host" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_host" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_port" from group "DEFAULT" is deprecated. Use option "rabbit_port" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_port" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_password" from group "DEFAULT" is deprecated. Use option "rabbit_password" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_password" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_userid" from group "DEFAULT" is deprecated. Use option "rabbit_userid" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_userid" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.256 2688 INFO ryu.base.app_manager [-] loading app neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_ryuapp
2016-12-13 17:40:56.553 2688 INFO ryu.base.app_manager [-] loading app ryu.app.ofctl.service
2016-12-13 17:40:56.553 2688 INFO ryu.base.app_manager [-] loading app ryu.controller.ofp_handler
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_ryuapp of OVSNeutronAgentRyuApp
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app ryu.controller.ofp_handler of OFPHandler
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app ryu.app.ofctl.service of OfctlService

Hope someone can give insights for the issue? I tried even disabling the firewall both the Hyper-V and the Controller Node (as it is on separate server as it working with other compute nodes except for hyper-v server).

Hyper-v Open vSwitch agent not working

I used to follow the article Open vSwitch 2.5 on Hyper-V (OpenStack) but seems not working the openvswitch as I could not get it in the neutron from the controller node (via neutron agent-list command) on Windows Server 2016 Datacenter but working can see the Hyper-v compute node is working well (via nova service-list command).command) in the controller node.

By the way software that I use, OpenStack Newton 1.1 (in the controller node). node-separate server). In Hyper-v server - HyperVNovaCompute_Newton 14.0.1 and openvswitch hyperv 2.5.1 certified (or even tried openvswitch hyperv 2.6.1 certified).

I am stuck in the part of the article that mentioned "Note: creating a service manually for the OVS agent won’t be necessary anymore starting with the next Nova Hyper-V MSI installer version. Here is the content of the neutron_ovs_agent.conf file:" as it mentioned not necessary anymore but seems not created a file, even tried to copy the same configurations as per stated and this is my configuration(C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\neutronovsagent.conf)

[DEFAULT]
verbose=true
debug=false
control_exchange=neutron
policy_file=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\policy.json
rpc_backend=neutron.openstack.common.rpc.impl_kombu
rabbit_host=10.20.30.203
rabbit_port=5672
rabbit_userid=guest
rabbit_password=guest
logdir=C:\OpenStack\Log\
logfile=neutron-ovs-agent.log
[agent]
tunnel_types = vxlan
enable_metrics_collection=false

[SECURITYGROUP]
enable_security_group=false
[ovs]
local_ip = 10.20.30.254
tunnel_bridge = br-tun
integration_bridge = br-int
tenant_network_type = vxlan
enable_tunneling = true

But it doesn't show me up, with the bridge/port such as br-int, patch-tun, br-tun, patch-int et al.. But only show me these, where ens5 is my network name.

PS C:\Users\Administrator> ovs-vsctl show
42842d57-2c30-4f59-a258-7ab149768d66
    Manager "ptcp:6640:127.0.0.1"
    Bridge "br-port1"
        Port "ens5"
            Interface "ens5"
        Port "br-port1"
            Interface "br-port1"
                type: internal

And the logs I got only these in c:\OpenStack\Log\neutron-ovs-agent.log

2016-12-13 17:40:56.226 2688 INFO neutron.common.config [-] Logging enabled!
2016-12-13 17:40:56.226 2688 INFO neutron.common.config [-] C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\Scripts\neutron-openvswitch-agent-script.py version 9.0.1.dev14
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_host" from group "DEFAULT" is deprecated. Use option "rabbit_host" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_host" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_port" from group "DEFAULT" is deprecated. Use option "rabbit_port" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_port" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.242 2688 WARNING oslo_config.cfg [-] Option "rabbit_password" from group "DEFAULT" is deprecated. Use option "rabbit_password" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_password" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_userid" from group "DEFAULT" is deprecated. Use option "rabbit_userid" from group "oslo_messaging_rabbit".
2016-12-13 17:40:56.256 2688 WARNING oslo_config.cfg [-] Option "rabbit_userid" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2016-12-13 17:40:56.256 2688 INFO ryu.base.app_manager [-] loading app neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_ryuapp
2016-12-13 17:40:56.553 2688 INFO ryu.base.app_manager [-] loading app ryu.app.ofctl.service
2016-12-13 17:40:56.553 2688 INFO ryu.base.app_manager [-] loading app ryu.controller.ofp_handler
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_ryuapp of OVSNeutronAgentRyuApp
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app ryu.controller.ofp_handler of OFPHandler
2016-12-13 17:40:56.569 2688 INFO ryu.base.app_manager [-] instantiating app ryu.app.ofctl.service of OfctlService

Hope someone can give insights for the issue? I tried even disabling the firewall both the Hyper-V and the Controller Node (as it is on separate server as it working with other compute nodes except for hyper-v server).