Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue open-horizon#3927 - Bug: Edge cluster agent failed due to excee… #3928

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions agent-install/k8s/deployment-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ spec:
# START_NOT_FOR_OCP
initContainers:
- name: initcontainer
image: alpine:latest
image: public.ecr.aws/docker/library/alpine:latest
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: false
command:
Expand Down Expand Up @@ -88,4 +89,4 @@ spec:
# START_CERT_VOL
- name: HZN_MGMT_HUB_CERT_PATH
value: /etc/default/cert/agent-install.crt
# END_CERT_VOL
# END_CERT_VOL
6 changes: 6 additions & 0 deletions test/gov/verify_agreements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ function handleLocation() {

# Grab the map of networks. There should be 3, each is a key in the map.
NETS=$(echo $1 | jq -r '.containers[0].NetworkSettings.Networks')
echo -e "network for location service: $NETS"
docker network ls

docker version
NUM_NETS=$(echo ${NETS} | jq -r '. | length')
if [ "${NUM_NETS}" != "3" ]; then
echo -e "${PREFIX} ${REFURL} should have 3 networks, but there are ${NUM_NETS}"
Expand Down Expand Up @@ -252,6 +256,7 @@ function verifyServices() {
NUMSERV=$(echo ${ALLSERV} | jq -r '. | length')

echo -e "There are ${NUMSERV} active services running"
echo -e "all services: ${ALLSERV}"

for ((ix = 0; ix < $NUMSERV; ix++)); do
INST=$(echo ${ALLSERV} | jq -r '.['$ix']')
Expand All @@ -261,6 +266,7 @@ function verifyServices() {
echo -e "${PREFIX} working on service ${ix}, ${REFORG}/${REFURL}"

if [ "${REFURL}" == "https://bluehorizon.network/services/location" ]; then
echo "location instance: ${INST}"
handleLocation "${INST}"
elif [ "${REFURL}" == "https://bluehorizon.network/service-cpu" ] && [ "${REFORG}" == "IBM" ] && [ "${HZN_REG_TEST}" != "1" ]; then
handleCPU "${INST}"
Expand Down
Loading