Created
December 12, 2016 23:36
-
-
Save stajkowski/dc993b7f37c11b002a082de9f510f79c to your computer and use it in GitHub Desktop.
ha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Failure of Master | |
2016-12-12 13:37:32.714 DEBUG neutron.common.config [-] command line: /usr/local/bin/neutron-keepalived-state-change --router_id=162c5a03-7da6-43ee-9014-ac923bdcf711 --namespace=snat-162c5a03-7da6-43ee-9014-ac923bdcf711 --conf_dir=/opt/stack/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711 --monitor_interface=ha-cda61386-10 --monitor_cidr=169.254.0.1/24 --pid_file=/opt/stack/data/neutron/external/pids/162c5a03-7da6-43ee-9014-ac923bdcf711.monitor.pid --state_path=/opt/stack/data/neutron --user=1000 --group=1000 from (pid=30887) setup_logging /opt/stack/neutron/neutron/common/config.py:107 | |
2016-12-12 13:37:32.751 DEBUG neutron.agent.linux.async_process [-] Launching async process [ip netns exec snat-162c5a03-7da6-43ee-9014-ac923bdcf711 ip -o monitor address]. from (pid=30898) start /opt/stack/neutron/neutron/agent/linux/async_process.py:110 | |
2016-12-12 13:37:32.754 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', 'netns', 'exec', 'snat-162c5a03-7da6-43ee-9014-ac923bdcf711', 'ip', '-o', 'monitor', 'address'] from (pid=30898) create_process /opt/stack/neutron/neutron/agent/linux/utils.py:92 | |
2016-12-12 13:37:33.782 INFO neutron.agent.linux.daemon [-] Process runs with uid/gid: 1000/1000 | |
2016-12-12 13:47:26.668 DEBUG neutron.agent.l3.keepalived_state_change [-] Wrote router 162c5a03-7da6-43ee-9014-ac923bdcf711 state master from (pid=30898) write_state_change /opt/stack/neutron/neutron/agent/l3/keepalived_state_change.py:96 | |
2016-12-12 13:47:28.206 DEBUG neutron.agent.l3.keepalived_state_change [-] Notified agent router 162c5a03-7da6-43ee-9014-ac923bdcf711, state master from (pid=30898) notify_agent /opt/stack/neutron/neutron/agent/l3/keepalived_state_change.py:110 | |
2016-12-12 13:47:28.208 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ip', 'netns', 'exec', 'snat-162c5a03-7da6-43ee-9014-ac923bdcf711', 'arping', '-A', '-I', 'qg-f6f918ba-74', '-c', '3', '-w', '4.5', '172.24.4.3'] from (pid=30898) execute_rootwrap_daemon /opt/stack/neutron/neutron/agent/linux/utils.py:108 | |
2016-12-12 13:47:28.229 DEBUG oslo_rootwrap.client [-] Popen for ['sudo', '/usr/local/bin/neutron-rootwrap-daemon', '/etc/neutron/rootwrap.conf'] command has been instantiated from (pid=30898) _initialize /usr/local/lib/python2.7/dist-packages/oslo_rootwrap/client.py:67 | |
2016-12-12 13:47:28.956 INFO oslo_rootwrap.client [-] Spawned new rootwrap daemon process with pid=31809 | |
2016-12-12 13:47:31.060 DEBUG neutron.agent.linux.utils [-] Exit code: 0 from (pid=30898) execute /opt/stack/neutron/neutron/agent/linux/utils.py:149 | |
## State File Gets Updated | |
ski@devstack:~/devfiles/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711$ cat state | |
master | |
## After a bit the state on failed active gets updated: | |
ski@devstack:~/devfiles/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711$ neutron l3-agent-list-hosting-router 162c5a03-7da6-43ee-9014-ac923bdcf711 | |
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. | |
+--------------------------------------+------------+----------------+-------+----------+ | |
| id | host | admin_state_up | alive | ha_state | | |
+--------------------------------------+------------+----------------+-------+----------+ | |
| 5035b8f2-18c3-4376-80b4-888db093eb4b | devstack | True | :-) | active | | |
| f8bbc892-10ae-4348-82a4-d4f0bb0f5b21 | devstackn2 | True | xxx | standby | | |
+--------------------------------------+------------+----------------+-------+----------+ | |
## Failed Master | |
ski@devstackn2:/opt/stack/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711$ cat sate | |
master | |
-- state is not updated on failed master | |
## Standby Comes Back | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment