@@ -63,8 +63,8 @@ def connect_the_dots(names):
63
63
# Get the podname, get the stuff after last - and convert to int
64
64
found_ordinals .add (int (name .split ("." ,1 )[0 ].split ("-" )[- 1 ]));
65
65
66
- print ("expected_ordinals" ,expected_ordinals )
67
- print ("found ordnials" ,found_ordinals )
66
+ # print("expected_ordinals",expected_ordinals)
67
+ # print("found ordnials",found_ordinals)
68
68
69
69
# Are there expected ordinals that are not part of the found ordinals?
70
70
if ( expected_ordinals - found_ordinals ):
@@ -107,7 +107,7 @@ def finish_cluster(names):
107
107
# on the "first" pod only with this hack:
108
108
if (os .getenv ("HOSTNAME" ).endswith ("-0" )):
109
109
creds = (os .getenv ("COUCHDB_USER" ), os .getenv ("COUCHDB_PASSWORD" ))
110
- print ("== Get the cluster up and running === " )
110
+ print ("Get the cluster up and running" )
111
111
setup_resp = requests .post ("http://127.0.0.1:5984/_cluster_setup" , json = {"action" : "finish_cluster" }, auth = creds )
112
112
print ('\t | Request: POST http://127.0.0.1:5984/_cluster_setup , payload {"action": "finish_cluster"}' )
113
113
print ("\t |\t Response:" , setup_resp .status_code , setup_resp .json ())
@@ -120,7 +120,7 @@ def finish_cluster(names):
120
120
else :
121
121
print ('Ouch! Failed the final step finalizing the cluster.' )
122
122
else :
123
- print ('This pod is intentionally skipping the POST to http://127.0.0.1:5984/_cluster_setup {"action": "finish_cluster"}' )
123
+ print ('Intentionally skipping the POST to http://127.0.0.1:5984/_cluster_setup {"action": "finish_cluster"}' )
124
124
125
125
126
126
@backoff .on_exception (
@@ -202,5 +202,5 @@ def sleep_forever():
202
202
if (os .getenv ("COUCHDB_USER" ) and os .getenv ("COUCHDB_PASSWORD" )):
203
203
finish_cluster (peer_names )
204
204
else :
205
- print ('Skipping cluster final setup. Username and/or password not provided' )
205
+ print ('Skipping final cluster setup. Username and/or password not provided' )
206
206
sleep_forever ()
0 commit comments