Last active
September 14, 2017 17:51
-
-
Save nmattam/b421f6e98bfcf4bb5703d871cc3f03fc to your computer and use it in GitHub Desktop.
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
[vagrant@secondary-chef ~]$ sudo chef-server-ctl ha-status | |
[OK] keepalived HA services enabled. | |
[OK] cluster status = master | |
[OK] found VIP IP address and I am master | |
[OK] found VRRP communications interface eth1 | |
[OK] bookshelf is running correctly, and I am master. | |
[OK] keepalived is running. | |
[OK] nginx is running correctly, and I am master. | |
[OK] oc_bifrost is running correctly, and I am master. | |
[OK] oc_id is running correctly, and I am master. | |
[OK] opscode-erchef is running correctly, and I am master. | |
[OK] opscode-expander is running correctly, and I am master. | |
[OK] opscode-pushy-server is running correctly, and I am master. | |
[OK] opscode-solr4 is running correctly, and I am master. | |
[OK] postgresql is running correctly, and I am master. | |
[OK] rabbitmq is running correctly, and I am master. | |
[OK] redis_lb is running correctly, and I am master. | |
[OK] all checks passed. | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl status | |
run: bookshelf: (pid 32257) 2789s, normally down; run: log: (pid 8783) 180873s | |
run: keepalived: (pid 14713) 240435s; run: log: (pid 8839) 180871s | |
run: nginx: (pid 32327) 2788s, normally down; run: log: (pid 8795) 180871s | |
run: oc_bifrost: (pid 32332) 2788s, normally down; run: log: (pid 8739) 180875s | |
run: oc_id: (pid 32377) 2780s, normally down; run: log: (pid 8744) 180874s | |
run: opscode-erchef: (pid 32381) 2777s, normally down; run: log: (pid 8787) 180872s | |
run: opscode-expander: (pid 32418) 2771s, normally down; run: log: (pid 8763) 180873s | |
run: opscode-pushy-server: (pid 32447) 6s, normally down; run: log: (pid 28107) 250717s | |
run: opscode-solr4: (pid 32525) 2758s, normally down; run: log: (pid 8748) 180874s | |
run: postgresql: (pid 32606) 2750s, normally down; run: log: (pid 8735) 180875s | |
run: rabbitmq: (pid 32621) 2748s, normally down; run: log: (pid 8731) 180875s | |
run: redis_lb: (pid 32641) 2748s, normally down; run: log: (pid 8791) 180872s | |
[vagrant@secondary-chef ~]$ | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl user-show spork | |
ERROR: Failed to authenticate to http://192.168.247.10:80 as pivotal with key /etc/opscode/pivotal.pem | |
Response: Failed to authenticate as 'pivotal'. Ensure that your node_name and client key are correct. | |
[vagrant@secondary-chef ~]$ sudo cat /etc/opscode/pivotal.rb | |
node_name "pivotal" | |
chef_server_url "http://192.168.247.10:80" | |
chef_server_root "http://192.168.247.10:80" | |
client_key "/etc/opscode/pivotal.pem" | |
ssl_verify_mode :verify_none | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl status | |
run: bookshelf: (pid 2412) 34s, normally down; run: log: (pid 8783) 181085s | |
run: keepalived: (pid 14713) 240647s; run: log: (pid 8839) 181083s | |
run: nginx: (pid 2455) 33s, normally down; run: log: (pid 8795) 181083s | |
run: oc_bifrost: (pid 2460) 33s, normally down; run: log: (pid 8739) 181087s | |
run: oc_id: (pid 2553) 29s, normally down; run: log: (pid 8744) 181086s | |
run: opscode-erchef: (pid 2556) 28s, normally down; run: log: (pid 8787) 181084s | |
run: opscode-expander: (pid 2591) 24s, normally down; run: log: (pid 8763) 181085s | |
run: opscode-pushy-server: (pid 2655) 24s, normally down; run: log: (pid 28107) 250930s | |
run: opscode-solr4: (pid 2746) 19s, normally down; run: log: (pid 8748) 181087s | |
run: postgresql: (pid 2769) 18s, normally down; run: log: (pid 8735) 181088s | |
run: rabbitmq: (pid 2781) 18s, normally down; run: log: (pid 8731) 181088s | |
run: redis_lb: (pid 2826) 17s, normally down; run: log: (pid 8791) 181085s | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl restart keepalived | |
ok: run: keepalived: (pid 3417) 1s | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl status | |
down: bookshelf: 97s; run: log: (pid 8783) 181289s | |
run: keepalived: (pid 3417) 147s; run: log: (pid 8839) 181287s | |
down: nginx: 100s; run: log: (pid 8795) 181287s | |
down: oc_bifrost: 103s; run: log: (pid 8739) 181291s | |
down: oc_id: 105s; run: log: (pid 8744) 181290s | |
down: opscode-erchef: 109s; run: log: (pid 8787) 181288s | |
down: opscode-expander: 112s; run: log: (pid 8763) 181289s | |
down: opscode-pushy-server: 115s; run: log: (pid 28107) 251133s | |
down: opscode-solr4: 121s; run: log: (pid 8748) 181290s | |
down: postgresql: 130s; run: log: (pid 8735) 181291s | |
down: rabbitmq: 136s; run: log: (pid 8731) 181291s | |
down: redis_lb: 142s; run: log: (pid 8791) 181288s | |
## now my primary is the master | |
[vagrant@secondary-chef ~]$ sudo chef-server-ctl user-show spork | |
display_name: Chef Admin | |
email: [email protected] | |
first_name: Chef | |
last_name: Admin | |
middle_name: | |
public_key: -----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BsdAQEFAAOCAQ8AMIIBCgKAQEAp6UuU/j3aEuP6/5lL9BHa | |
CwUtpGR1c2oll7ThSprnyqy0NasdF9YvzJlLoyV9ECos6Y1/WzPINqXILXR5hqAk3y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment