smart-edge-open / specs

Additional documentation for experience kits with Ansible-based deployment.
Apache License 2.0
87 stars 69 forks source link

openness deploy failed for "RPC failed" #55

Closed christ7622 closed 4 years ago

christ7622 commented 4 years ago

While trying to run the deploy scripts "sudo ./deploy_ne.sh single", and got an error :

TASK [telemetry/tas : build TAS] *********************************************************************************************************************************************************************************
task path: /home/pega/OpenNESS/openness-experience-kits/roles/telemetry/tas/tasks/main.yml:154
fatal: [controller]: FAILED! => {
    "changed": true, 
    "cmd": "source /etc/profile && make build", 
    "delta": "0:00:06.614269", 
    "end": "2020-09-22 16:35:13.560206", 
    "rc": 2, 
    "start": "2020-09-22 16:35:06.945937"
}

STDOUT:

CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w" -o ./bin/controller ./cmd/tas-policy-controller

STDERR:

go: finding modernc.org/cc v1.0.0
go: finding modernc.org/golex v1.0.0
go: finding modernc.org/xc v1.0.0
go: finding modernc.org/mathutil v1.0.0
go: finding modernc.org/strutil v1.0.0
go: modernc.org/cc@v1.0.0: git fetch -f https://gitlab.com/cznic/cc refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/3dac616a9d80602010c4792ef9c0e9d9812a1be8e70453e437e9792978075db6: exit status 128:
        error: RPC failed; result=22, HTTP code = 404
        fatal: The remote end hung up unexpectedly
go: modernc.org/xc@v1.0.0: git fetch -f https://gitlab.com/cznic/xc refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/29fc2f846f24ce3630fdd4abfc664927c4ad22f98a3589050facafa0991faada: exit status 128:
        error: RPC failed; result=22, HTTP code = 404
        fatal: The remote end hung up unexpectedly
go: modernc.org/strutil@v1.0.0: git fetch -f https://gitlab.com/cznic/strutil refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/f48599000415ab70c2f95dc7528c585820ed37ee15d27040a550487e83a41748: exit status 128:
        error: RPC failed; result=22, HTTP code = 404
        fatal: The remote end hung up unexpectedly
go: modernc.org/mathutil@v1.0.0: git fetch -f https://gitlab.com/cznic/mathutil refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/fb72eb2422fda47ac75ca695d44b06b82f3df3c5308e271486fca5e320879130: exit status 128:
        error: RPC failed; result=22, HTTP code = 404
        fatal: The remote end hung up unexpectedly
go: modernc.org/golex@v1.0.0: git fetch -f https://gitlab.com/cznic/golex refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /root/go/pkg/mod/cache/vcs/9aae2d4c6ee72eb1c6b65f7a51a0482327c927783dea53d4058803094c9d8039: exit status 128:
        error: RPC failed; result=22, HTTP code = 404
        fatal: The remote end hung up unexpectedly
go: error loading module requirements
make: *** [build] Error 1

MSG:

non-zero return code

and k8s status is:

kube-system   coredns-66bff467f8-hzktk                    1/1     Running             0          82m
kube-system   coredns-66bff467f8-wslws                    1/1     Running             0          82m
kube-system   etcd-pega81                                 1/1     Running             0          82m
kube-system   kube-apiserver-pega81                       1/1     Running             0          82m
kube-system   kube-controller-manager-pega81              1/1     Running             0          82m
kube-system   kube-ovn-cni-j65bd                          1/1     Running             0          73m
kube-system   kube-ovn-controller-96f89c68b-72npt         0/1     Pending             0          73m
kube-system   kube-ovn-controller-96f89c68b-pjghr         1/1     Running             0          73m
kube-system   kube-proxy-gr2g6                            1/1     Running             0          82m
kube-system   kube-scheduler-pega81                       1/1     Running             0          70m
kube-system   ovn-central-74986486f9-d4sw9                1/1     Running             0          73m
kube-system   ovs-ovn-r478j                               1/1     Running             0          73m
openness      docker-registry-deployment-54d5bb5c-w9wvv   1/1     Running             0          82m
openness      eaa-6f8b94c9d7-gxdff                        0/1     ErrImageNeverPull   0          71m
openness      edgedns-md69k                               0/1     ErrImageNeverPull   0          71m
openness      interfaceservice-q7hcd                      0/1     ErrImageNeverPull   0          71m
openness      syslog-master-m2kch                         1/1     Running             0          71m
openness      syslog-ng-bgkkr                             1/1     Running             0          71m
telemetry     collectd-jzm6w                              2/2     Running             0          70m
telemetry     custom-metrics-apiserver-54699b845f-kgtmh   1/1     Running             0          70m
telemetry     otel-collector-7d5b75bbdf-q9gtp             2/2     Running             0          70m
telemetry     prometheus-node-exporter-gnq62              1/1     Running             0          70m
telemetry     prometheus-server-76c96b9497-jgqqh          3/3     Running             0          70m
telemetry     telemetry-collector-certs-77kpj             0/1     Completed           0          70m
telemetry     telemetry-node-certs-btb92                  1/1     Running             0          70m

check the eaa container by "kubectl describe -n openness pods eaa-6f8b94c9d7-gxdff" and got this:

Events:
  Type     Reason             Age                    From             Message
  ----     ------             ----                   ----             -------
  Warning  Failed             27m (x213 over 72m)    kubelet, pega81  Error: ErrImageNeverPull
  Warning  ErrImageNeverPull  2m25s (x328 over 72m)  kubelet, pega81  Container image "eaa:1.0" is not present with pull policy of Never

Any help would be very appreciated. Thanks. Regards, Wayne

christ7622 commented 4 years ago

issue resolved by https://github.com/open-ness/specs/issues/51#issuecomment-695976647

just update the git version to 2.1.x: yum remove -y git* yum install -y --enablerepo=ius-archive git2u-all