@@ -65,8 +65,8 @@ function os::start::internal::create_master_certs() {
65
65
local openshift_executable
66
66
openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
67
67
68
- os::log::info " Creating certificates for the OpenShift server"
69
- ${openshift_executable} admin create-master-certs \
68
+ os::log::debug " Creating certificates for the OpenShift server"
69
+ ${openshift_executable} admin ca create-master-certs \
70
70
--overwrite=false \
71
71
--master=" ${MASTER_ADDR} " \
72
72
--cert-dir=" ${MASTER_CONFIG_DIR} " \
@@ -93,7 +93,7 @@ function os::start::internal::configure_node() {
93
93
local openshift_executable
94
94
openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
95
95
96
- os::log::info " Creating node configuration for the OpenShift server"
96
+ os::log::debug " Creating node configuration for the OpenShift server"
97
97
${openshift_executable} admin create-node-config \
98
98
--node-dir=" ${NODE_CONFIG_DIR} " \
99
99
--node=" ${KUBELET_HOST} " \
@@ -120,7 +120,7 @@ function os::start::internal::create_bootstrap_policy() {
120
120
local openshift_executable
121
121
openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
122
122
123
- os::log::info " Creating boostrap policy files for the OpenShift server"
123
+ os::log::debug " Creating boostrap policy files for the OpenShift server"
124
124
${openshift_executable} admin create-bootstrap-policy-file --filename=" ${MASTER_CONFIG_DIR} /policy.json"
125
125
}
126
126
readonly -f os::start::internal::create_bootstrap_policy
@@ -149,7 +149,7 @@ function os::start::internal::configure_master() {
149
149
local openshift_executable
150
150
openshift_executable=" $( os::start::internal::openshift_executable " ${version} " ) "
151
151
152
- os::log::info " Creating master configuration for the OpenShift server"
152
+ os::log::debug " Creating master configuration for the OpenShift server"
153
153
${openshift_executable} start \
154
154
--create-certs=false \
155
155
--images=" ${USE_IMAGES} " \
@@ -192,7 +192,7 @@ function os::start::internal::patch_master_config() {
192
192
export ADMIN_KUBECONFIG=" ${MASTER_CONFIG_DIR} /admin.kubeconfig"
193
193
CLUSTER_ADMIN_CONTEXT=$( oc config view --config=" ${ADMIN_KUBECONFIG} " --flatten -o template --template=' {{index . "current-context"}}' ) ; export CLUSTER_ADMIN_CONTEXT
194
194
${sudo} chmod -R a+rwX " ${ADMIN_KUBECONFIG} "
195
- os::log::info " To debug: export KUBECONFIG=$ADMIN_KUBECONFIG "
195
+ os::log::debug " To debug: export KUBECONFIG=$ADMIN_KUBECONFIG "
196
196
}
197
197
readonly -f os::start::internal::patch_master_config
198
198
@@ -230,8 +230,8 @@ function os::start::server() {
230
230
local controllers_version=" ${2:- } "
231
231
local skip_node=" ${3:- } "
232
232
233
- os::log::info " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
234
- ps -ef | grep openshift
233
+ os::log::debug " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
234
+ os::log::debug " $( ps -ef | grep openshift ) "
235
235
236
236
mkdir -p " ${LOG_DIR} "
237
237
@@ -278,28 +278,26 @@ function os::start::master() {
278
278
279
279
mkdir -p " ${LOG_DIR} "
280
280
281
- os::log::info " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
282
- ps -ef | grep openshift
281
+ os::log::debug " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
282
+ os::log::debug " $( ps -ef | grep openshift ) "
283
283
284
- os::log::info " Starting OpenShift server"
284
+ os::log::debug " Starting OpenShift server"
285
285
local openshift_env=( " OPENSHIFT_PROFILE=web" " OPENSHIFT_ON_PANIC=crash" )
286
286
$( os::start::internal::openshift_executable) start master \
287
287
--config=" ${MASTER_CONFIG_DIR} /master-config.yaml" \
288
288
--loglevel=4 --logspec=' *importer=5' \
289
289
& > " ${LOG_DIR} /openshift.log" &
290
290
export OS_PID=$!
291
291
292
- os::log::info " OpenShift server start at: "
293
- date
292
+ os::log::debug " OpenShift server start at: $( date ) "
294
293
295
294
os::test::junit::declare_suite_start " setup/start-master"
296
295
os::cmd::try_until_text " oc get --raw /healthz --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 160 * second )) 0.25
297
296
os::cmd::try_until_text " oc get --raw /healthz/ready --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 160 * second )) 0.25
298
297
os::cmd::try_until_success " oc get service kubernetes --namespace default --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" $(( 160 * second )) 0.25
299
298
os::test::junit::declare_suite_end
300
299
301
- os::log::info " OpenShift server health checks done at: "
302
- date
300
+ os::log::debug " OpenShift server health checks done at: $( date ) "
303
301
}
304
302
readonly -f os::start::master
305
303
@@ -332,7 +330,7 @@ function os::start::all_in_one() {
332
330
use_latest_images=" false"
333
331
fi
334
332
335
- os::log::info " Starting OpenShift server"
333
+ os::log::debug " Starting OpenShift server"
336
334
local openshift_env=( " OPENSHIFT_PROFILE=web" " OPENSHIFT_ON_PANIC=crash" )
337
335
local openshift_executable
338
336
openshift_executable=" $( os::start::internal::openshift_executable) "
@@ -345,8 +343,7 @@ function os::start::all_in_one() {
345
343
& > " ${LOG_DIR} /openshift.log" &
346
344
export OS_PID=$!
347
345
348
- os::log::info " OpenShift server start at: "
349
- date
346
+ os::log::debug " OpenShift server start at: $( date ) "
350
347
351
348
os::test::junit::declare_suite_start " setup/start-all_in_one"
352
349
os::cmd::try_until_text " oc get --raw /healthz --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 80 * second )) 0.25
@@ -356,8 +353,7 @@ function os::start::all_in_one() {
356
353
os::cmd::try_until_success " oc get --raw /api/v1/nodes/${KUBELET_HOST} --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" $(( 80 * second )) 0.25
357
354
os::test::junit::declare_suite_end
358
355
359
- os::log::info " OpenShift server health checks done at: "
360
- date
356
+ os::log::debug " OpenShift server health checks done at: $( date ) "
361
357
}
362
358
readonly -f os::start::all_in_one
363
359
@@ -374,23 +370,21 @@ readonly -f os::start::all_in_one
374
370
# Returns:
375
371
# - export ETCD_PID
376
372
function os::start::etcd() {
377
- os::log::info " Starting etcd"
373
+ os::log::debug " Starting etcd"
378
374
local openshift_env=( " OPENSHIFT_ON_PANIC=crash" )
379
375
local openshift_executable
380
376
openshift_executable=" $( os::start::internal::openshift_executable) "
381
377
${openshift_executable} start etcd \
382
378
--config=" ${MASTER_CONFIG_DIR} /master-config.yaml" & > " ${LOG_DIR} /etcd.log" &
383
379
export ETCD_PID=$!
384
380
385
- os::log::info " etcd server start at: "
386
- date
381
+ os::log::debug " etcd server start at: $( date ) "
387
382
388
383
os::test::junit::declare_suite_start " setup/start-etcd"
389
384
os::cmd::try_until_success " os::util::curl_etcd '/version'" $(( 10 * second ))
390
385
os::test::junit::declare_suite_end
391
386
392
- os::log::info " etcd server health checks done at: "
393
- date
387
+ os::log::debug " etcd server health checks done at: $( date ) "
394
388
}
395
389
readonly -f os::start::etcd
396
390
@@ -423,16 +417,14 @@ function os::start::api_server() {
423
417
424
418
export API_SERVER_PID=$!
425
419
426
- os::log::info " OpenShift API server start at: "
427
- date
420
+ os::log::debug " OpenShift API server start at: $( date ) "
428
421
429
422
os::test::junit::declare_suite_start " setup/start-api_server"
430
423
os::cmd::try_until_text " oc get --raw /healthz --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 80 * second )) 0.25
431
424
os::cmd::try_until_text " oc get --raw /healthz/ready --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 160 * second )) 0.25
432
425
os::test::junit::declare_suite_end
433
426
434
- os::log::info " OpenShift API server health checks done at: "
435
- date
427
+ os::log::debug " OpenShift API server health checks done at: $( date ) "
436
428
}
437
429
readonly -f os::start::api_server
438
430
@@ -458,8 +450,7 @@ function os::start::controllers() {
458
450
459
451
export CONTROLLERS_PID=$!
460
452
461
- os::log::info " OpenShift controllers start at: "
462
- date
453
+ os::log::debug " OpenShift controllers start at: $( date ) "
463
454
}
464
455
readonly -f os::start::controllers
465
456
@@ -487,7 +478,7 @@ function os::start::internal::start_node() {
487
478
488
479
mkdir -p " ${LOG_DIR} "
489
480
490
- os::log::info " Starting OpenShift node"
481
+ os::log::debug " Starting OpenShift node"
491
482
local openshift_env=( " OPENSHIFT_ON_PANIC=crash" )
492
483
$( os::start::internal::openshift_executable) openshift start node \
493
484
--config=" ${NODE_CONFIG_DIR} /node-config.yaml" \
@@ -496,15 +487,13 @@ function os::start::internal::start_node() {
496
487
& > " ${LOG_DIR} /node.log" &
497
488
export NODE_PID=$!
498
489
499
- os::log::info " OpenShift node start at: "
500
- date
490
+ os::log::debug " OpenShift node start at: $( date ) "
501
491
502
492
os::test::junit::declare_suite_start " setup/start-node"
503
493
os::cmd::try_until_text " oc get --raw ${KUBELET_SCHEME} ://${KUBELET_HOST} :${KUBELET_PORT} /healthz --config='${MASTER_CONFIG_DIR} /admin.kubeconfig'" ' ok' $(( 80 * second )) 0.25
504
494
os::test::junit::declare_suite_end
505
495
506
- os::log::info " OpenShift node health checks done at: "
507
- date
496
+ os::log::debug " OpenShift node health checks done at: $( date ) "
508
497
}
509
498
readonly -f os::start::internal::start_node
510
499
@@ -591,11 +580,11 @@ readonly -f os::start::internal::determine_hostnames
591
580
function os::start::internal::print_server_info() {
592
581
local openshift_executable
593
582
openshift_executable=" $( os::start::internal::openshift_executable) "
594
- os::log::info " $( ${openshift_executable} version) "
595
- os::log::info " Server logs will be at: ${LOG_DIR} "
596
- os::log::info " Config dir is: ${SERVER_CONFIG_DIR} "
597
- os::log::info " Using images: ${USE_IMAGES} "
598
- os::log::info " MasterIP is: ${MASTER_ADDR} "
583
+ os::log::debug " $( ${openshift_executable} version) "
584
+ os::log::debug " Server logs will be at: ${LOG_DIR} "
585
+ os::log::debug " Config dir is: ${SERVER_CONFIG_DIR} "
586
+ os::log::debug " Using images: ${USE_IMAGES} "
587
+ os::log::debug " MasterIP is: ${MASTER_ADDR} "
599
588
}
600
589
601
590
# os::start::router installs the OpenShift router and optionally creates
@@ -613,11 +602,11 @@ function os::start::internal::print_server_info() {
613
602
# Returns:
614
603
# None
615
604
function os::start::router() {
616
- os::log::info " Installing the router"
605
+ os::log::debug " Installing the router"
617
606
oadm policy add-scc-to-user privileged --serviceaccount=' router' --config=" ${ADMIN_KUBECONFIG} "
618
607
# Create a TLS certificate for the router
619
608
if [[ -n " ${CREATE_ROUTER_CERT:- } " ]]; then
620
- os::log::info " Generating router TLS certificate"
609
+ os::log::debug " Generating router TLS certificate"
621
610
oadm ca create-server-cert --hostnames=" *.${API_HOST} .xip.io" \
622
611
--key=" ${MASTER_CONFIG_DIR} /router.key" \
623
612
--cert=" ${MASTER_CONFIG_DIR} /router.crt" \
@@ -635,7 +624,7 @@ function os::start::router() {
635
624
# Set the SYN eater to make router reloads more robust
636
625
if [[ -n " ${DROP_SYN_DURING_RESTART:- } " ]]; then
637
626
# Rewrite the DC for the router to add the environment variable into the pod definition
638
- os::log::info " Changing the router DC to drop SYN packets during a reload"
627
+ os::log::debug " Changing the router DC to drop SYN packets during a reload"
639
628
oc patch dc router -p ' {"spec":{"template":{"spec":{"containers":[{"name":"router","securityContext":{"privileged":true}}],"securityContext":{"runAsUser": 0}}}}}'
640
629
oc set env dc/router -c router DROP_SYN_DURING_RESTART=true
641
630
fi
@@ -653,7 +642,7 @@ readonly -f os::start::router
653
642
# None
654
643
function os::start::registry() {
655
644
# The --mount-host option is provided to reuse local storage.
656
- os::log::info " Installing the registry"
645
+ os::log::debug " Installing the registry"
657
646
# For testing purposes, ensure the quota objects are always up to date in the registry by
658
647
# disabling project cache.
659
648
openshift admin registry --config=" ${ADMIN_KUBECONFIG} " --images=" ${USE_IMAGES} " --enforce-quota -o json | \
0 commit comments