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

Hotfix cb-larva package #1068

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Conversation

yunkon-kim
Copy link
Member

  • Upgrade cb-larva package from v0.0.10 to v0.0.13 by
    go get -u github.com/cloud-barista/cb-larva 
    

Issue reference: https://cloud-barista.slack.com/archives/CJQ7575PU/p1650330154118099

Log to build the cb-tumblebug container image in local

ubuntu@DESKTOP-L3ETGKI:/mnt/d/Dev/Cloud-Barista/cb-tumblebug$ sudo docker build -t ltb .
[+] Building 21.9s (20/20) FINISHED
 => [internal] load build definition from Dockerfile                                                                                       0.0s 
 => => transferring dockerfile: 38B                                                                                                        0.0s 
 => [internal] load .dockerignore                                                                                                          0.0s 
 => => transferring context: 2B                                                                                                            0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:latest                                                                           1.9s 
 => [internal] load metadata for docker.io/library/golang:1.16-alpine                                                                      1.9s 
 => [prod 1/7] FROM docker.io/library/ubuntu:latest@sha256:9101220a875cee98b016668342c489ff0674f247f6ca20dfc91b91c0f28581ae                0.0s 
 => [builder 1/7] FROM docker.io/library/golang:1.16-alpine@sha256:5616dca835fa90ef13a843824ba58394dad356b7d56198fb7c93cbe76d7d67fe        0.0s 
 => [internal] load build context                                                                                                         19.9s 
 => => transferring context: 468.15kB                                                                                                     19.9s 
 => CACHED [prod 2/7] RUN rm /bin/sh && ln -s /bin/bash /bin/sh                                                                            0.0s
 => CACHED [prod 3/7] WORKDIR /app/src                                                                                                     0.0s 
 => CACHED [builder 2/7] RUN apk add --no-cache sqlite-libs sqlite-dev                                                                     0.0s 
 => CACHED [builder 3/7] RUN apk add --no-cache build-base                                                                                 0.0s 
 => CACHED [builder 4/7] ADD . /go/src/github.com/cloud-barista/cb-tumblebug                                                               0.0s 
 => CACHED [builder 5/7] WORKDIR /go/src/github.com/cloud-barista/cb-tumblebug                                                             0.0s 
 => CACHED [builder 6/7] WORKDIR src                                                                                                       0.0s 
 => CACHED [builder 7/7] RUN go build -mod=mod -ldflags '-w -extldflags "-static"' -tags cb-tumblebug -o cb-tumblebug -v                   0.0s 
 => CACHED [prod 4/7] COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/assets/ /app/assets/                               0.0s 
 => CACHED [prod 5/7] COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/scripts/ /app/scripts/                             0.0s 
 => CACHED [prod 6/7] COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/conf/ /app/conf/                                   0.0s 
 => CACHED [prod 7/7] COPY --from=builder /go/src/github.com/cloud-barista/cb-tumblebug/src/cb-tumblebug /app/src/                         0.0s 
 => exporting to image                                                                                                                     0.0s 
 => => exporting layers                                                                                                                    0.0s 
 => => writing image sha256:0061b5a2701163a1c4c0c7868dcca4b37fc6db066e2cc4a5dc5065cedbb9716b                                               0.0s 
 => => naming to docker.io/library/ltb                                                                                                     0.0s 

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Log to run the container

This PR will resolve the issue. (please, see the log of lines 3-5 from the top)

ubuntu@DESKTOP-L3ETGKI:/mnt/d/Dev/Cloud-Barista/cb-tumblebug$ docker run -p 1323:1323 -p 50252:50252 -v ${HOME}/go/src/github.com/cloud-barista/cb-tumblebug/meta_db:/app/meta_db --name cb-tumblebug ltb
[CLOUD-BARISTA].[INFO]: 2022-04-19 11:50:55 nutsdb-driver.go:36, github.com/cloud-barista/cb-store/store-drivers/nutsdb-driver.initialize() - ######## dbfile: /app/meta_db/dat
Start......... init() of networking-rule.go
CBLOG_ROOT: /app
End......... init() of networking-rule.go


[Update system environment]
[CLOUD-BARISTA].[INFO]: 2022-04-19 11:50:55 nutsdb-driver.go:133, github.com/cloud-barista/cb-store/store-drivers/nutsdb-driver.(*NUTSDBDriver).Get() - Key:/config/DRAGONFLY_REST_URL
[CLOUD-BARISTA].[INFO]: 2022-04-19 11:50:55 nutsdb-driver.go:133, github.com/cloud-barista/cb-store/store-drivers/nutsdb-driver.(*NUTSDBDriver).Get() - Key:/config/SPIDER_REST_URL
[CLOUD-BARISTA].[INFO]: 2022-04-19 11:50:55 nutsdb-driver.go:133, github.com/cloud-barista/cb-store/store-drivers/nutsdb-driver.(*NUTSDBDriver).Get() - Key:/config/AUTOCONTROL_DURATION_MS

[Setup SQL Database]
Database access info set successfully
Table spec set successfully..
Table image set successfully..

[Initiate Multi-Cloud Orchestration]
[CLOUD-BARISTA].[DEBUG]: 2022-04-19 11:50:55 server.go:133, github.com/cloud-barista/cb-tumblebug/src/api/grpc/server.configLoad() - Parsing configuration file: /app/conf/grpc_conf.yaml





  ██████╗██████╗    ████████╗██████╗
 ██╔════╝██╔══██╗   ╚══██╔══╝██╔══██╗
 ██║     ██████╔╝█████╗██║   ██████╔╝
 ██║     ██╔══██╗╚════╝██║   ██╔══██╗
 ╚██████╗██████╔╝      ██║   ██████╔╝
  ╚═════╝╚═════╝       ╚═╝   ╚═════╝

 ██████╗ ███████╗ █████╗ ██████╗ ██╗   ██╗
 ██╔══██╗██╔════╝██╔══██╗██╔══██╗╚██╗ ██╔╝
 ██████╔╝█████╗  ███████║██║  ██║ ╚████╔╝
 ██╔══██╗██╔══╝  ██╔══██║██║  ██║  ╚██╔╝
 ██║  ██║███████╗██║  ██║██████╔╝   ██║
 ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝    ╚═╝

 Multi-cloud infrastructure management framework
 ________________________________________________

 https://github.com/cloud-barista/cb-tumblebug


 Access to API dashboard (username: default / password: default)
 http://localhost:1323/tumblebug/swagger/index.html

⇨ http server started on [::]:1323
⇨ grpc server started on [::]:50252

- Upgrade version from v0.0.10 to v0.0.13
@seokho-son
Copy link
Member

Thank you!

/lgtm
/approve

@prow-v2 prow-v2 bot added the lgtm This PR is acceptable by at least one reviewer label Apr 19, 2022
@prow-v2
Copy link
Contributor

prow-v2 bot commented Apr 19, 2022

LGTM label has been added.

Git tree hash: 74b7e698888a5ddcaf8ed07fb9050aaff45358e1

@prow-v2 prow-v2 bot added the approved This PR is approved and will be merged soon. label Apr 19, 2022
@seokho-son
Copy link
Member

@jihoon-seo prow-v2 가 오토머지를 못하고 있는 것 같아요 ^^

@jihoon-seo
Copy link
Member

jihoon-seo commented Apr 20, 2022

/approve

원인:
https://github.com/cloud-barista/cb-tumblebug/blob/main/.github/workflows/prow-commands.yml
얘는
comment의 첫 줄에 있는 slash comment 만 인식하고
다른 줄에 있는 slash comment 는 인식을 못 해서 그렇습니다.. 😅

Workaround:

/approve
/lgtm
( /approve 위에는 아무 것도 쓰지 않음)

이렇게 하면
첫 번째 줄은 GitHub workflow 및 Prow 둘 다 인식 및 행동하고
두 번째 줄은 Prow 가 인식하여 행동할 거예요.. 😊

Edit:
이 comment에 대해서는 이런 에러가 났네요 😅
https://github.com/cloud-barista/cb-tumblebug/actions/runs/2193306289

@seokho-son
Copy link
Member

/approve

@prow-v2
Copy link
Contributor

prow-v2 bot commented Apr 20, 2022

@github-actions[bot]: changing LGTM is restricted to collaborators

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@prow-v2
Copy link
Contributor

prow-v2 bot commented Apr 20, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: github-actions[bot], jihoon-seo, seokho-son

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jihoon-seo,seokho-son]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@seokho-son
Copy link
Member

일단 수동으로 머지하겠습니다! :)

@seokho-son seokho-son merged commit 6d1b393 into cloud-barista:main Apr 20, 2022
@yunkon-kim yunkon-kim deleted the hotfix-v0.5.2 branch April 27, 2022 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon. lgtm This PR is acceptable by at least one reviewer size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants