smart-edge-open / converged-edge-experience-kits

Source code for experience kits with Ansible-based deployment.
Apache License 2.0
37 stars 40 forks source link

Unable to build TAS when doing a single node minimal deployment #57

Closed safiyat closed 4 years ago

safiyat commented 4 years ago

I am using 1b297fb to deploy a single node network edge, using the command ./deploy_ne.sh -f minimal single on a CentOS 7 machine.

After a few trivial issues (which were solved), I am stuck at the task Telemetry Aware Scheduling.

Upon running the task manually, I got the following error.

[root@t-reza tas-repo]# source /etc/profile && make build
CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w" -o ./bin/controller ./cmd/tas-policy-controller
go: finding modernc.org/cc v1.0.0
go: finding modernc.org/mathutil v1.0.0
go: finding modernc.org/xc v1.0.0
go: finding modernc.org/golex v1.0.0
go: finding modernc.org/strutil v1.0.0
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: 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/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/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/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: error loading module requirements
make: *** [build] Error 1

People suggested that I change the https based git protocol to ssh based. Upon running the command git config --global url.ssh://git@gitlab.com/.insteadOf https://gitlab.com/, it was able to connect to the remote and fetch the code, but now it is not able to find the revision v1.0.0. Logs:

[root@t-reza tas-repo]# source /etc/profile && make build
CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w" -o ./bin/controller ./cmd/tas-policy-controller
go: finding modernc.org/strutil v1.0.0
go: finding modernc.org/xc v1.0.0
go: finding modernc.org/golex v1.0.0
go: finding modernc.org/mathutil v1.0.0
go: finding modernc.org/cc v1.0.0
go: modernc.org/xc@v1.0.0: unknown revision v1.0.0
go: modernc.org/cc@v1.0.0: unknown revision v1.0.0
go: modernc.org/strutil@v1.0.0: unknown revision v1.0.0
go: modernc.org/mathutil@v1.0.0: unknown revision v1.0.0
go: modernc.org/golex@v1.0.0: unknown revision v1.0.0
go: error loading module requirements
make: *** [build] Error 1

Question: Does this still work and I am doing something wrong, or does this need to be fixed?

Please guide if I am doing something wrong, or whether something needs to be patched.

Ref: https://github.com/open-ness/openness-experience-kits/blob/1b297fbb2a3e35ffdcd2182d80f839ff1789f4c2/roles/telemetry/tas/tasks/main.yml#L155

bmknaidu555 commented 4 years ago

The below commands may solve your issue

yum remove git* -y yum install -y --enablerepo=ius-archive git2u-all

tomaszwesolowski commented 4 years ago

Hi @safiyat, the solution provided by @bmknaidu555 shoul help you. Please open new issue if not