stackhpc / tenks

Virtual bare metal cluster management
Apache License 2.0
5 stars 2 forks source link

Failure setting up openvswitch #20

Open jovial opened 6 years ago

jovial commented 6 years ago

On centos 7.5 running tenks in an all in one install with a kayobe deployed openstack cloud, I'm seeing:

TASK [Ensure Open vSwitch is started and enabled] ******************************
[DEPRECATION WARNING]: state=running is deprecated. Please use state=started. 
This feature will be removed in version 2.7. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to enable service openvswitch: Failed to execute operation: Cannot send after transport endpoint shutdown\n"}

This is occurred after a reboot.

Some things I tried:

(tenks) 2 centos@kayobe-will:~/tenks$ sudo systemctl restart openvswitch       
Failed to restart openvswitch.service: Unit is masked.
(tenks) 2 centos@kayobe-will:~/tenks$ sudo systemctl unmask openvswitch       

which didn't seem to help.

disabling the service allowed me to get past this task:

sudo systemctl disable openvswitch

but the service doesn't look healthy:

sudo systemctl status openvswitch -l
● openvswitch.service - Open vSwitch
   Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
markgoddard commented 6 years ago

Perhaps this was missed from the docs. You'll need a script added to your PATH that maps ovs-vsctl command to docker exec openvswitch_vswitchd $*