Hey list, having a few issues with the Aggregated Logging template provided as
part of the default install.
When running the deployer it’s failing with the following errors. I’ve also
attached a script I’ve been using to redeploy on failure as part of debugging.
Archtectiure
- aklkvm019.corp kubernetes.io/hostname=<sanitised>,region=infra,zone=default
Ready 7d
- aklkvm020.corp kubernetes.io/hostname=<sanitised>,region=primary,zone=east
Ready 7d
- aklkvm021.corp kubernetes.io/hostname=<sanitised>,region=primary,zone=west
Ready 7d
Software Versions
- origin-1.1.3-0.git.0.8edc1be.el7.centos.x86_64
- origin-node-1.1.3-0.git.0.8edc1be.el7.centos.x86_64
- origin-sdn-ovs-1.1.3-0.git.0.8edc1be.el7.centos.x86_64
- origin-clients-1.1.3-0.git.0.8edc1be.el7.centos.x86_64
- origin-master-1.1.3-0.git.0.8edc1be.el7.centos.x86_64
Errors
- Error from server: Service "logging-es-cluster" is invalid:
spec.ports[0].port: Invalid value: 9300: must be equal to targetPort when
clusterIP = None
- Error from server: Service "logging-es-ops-cluster" is invalid:
spec.ports[0].port: Invalid value: 9300: must be equal to targetPort when
clusterIP = None
Any help greatly appreciated.
Tim
#!/bin/bash
PROJECT_EXISTS=`oc get projects | grep logging | wc -l`
if [[ $PROJECT_EXISTS ]]; then
echo "Project logging already exists"
else
oadm new-project logging
fi
PROJECT_LOGGING=`oc project | grep logging | wc -l`
if [[ $PROJECT_LOGGING ]]; then
echo "We are in project logging"
else
oc project logging
fi
LOGGING_SECRET=`oc get secrets | grep logging-deployer | wc -l`
if [[ $LOGGING_SECRET ]]; then
oc delete secret logging-deployer
fi
oc secrets new logging-deployer ca.crt=/etc/origin/master/ca.crt
ca.key=/etc/origin/master/ca.key
SERVICE_ACCOUNTS=`oc get serviceaccounts | wc -l`
if [[ $SERVICE_ACCOUNTS ]]; then
oc delete serviceaccounts --all
fi
oc create -f - <<EOF
apiVersion: v1
kind: ServiceAccount
metadata:
name: logging-deployer
secrets:
- name: logging-deployer
EOF
oc policy add-role-to-user edit system:serviceaccount:logging:logging-deployer
oadm policy add-scc-to-user privileged
system:serviceaccount:logging:aggregated-logging-fluentd
oadm policy add-cluster-role-to-user cluster-reader
system:serviceaccount:logging:aggregated-logging-fluentd
TEMPLATE_EXISTS=`oc get templates | grep logging-deployer| wc -l`
if [[ $TEMPLATE_EXISTS ]]; then
oc delete templates --all
fi
oc create -n logging -f
/usr/share/openshift/examples/infrastructure-templates/enterprise/logging-deployer.yaml
ACTIVE_PODS=`oc get pods | wc -l`
if [[ $ACTIVE_PODS ]]; then
oc delete pods --all
fi
oc process logging-deployer-template -n logging -v
KIBANA_HOSTNAME=kibana.oso.infra.corp,ENABLE_OPS_CLUSTER=true,ES_CLUSTER_SIZE=3,PUBLIC_MASTER_URL=https://kibara.oso.infra.corp:8443
| oc create -f -
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users