Will be good to put clean of files inside /tmp/sysdig-agent* after install else other users will not be able to install

Đang mở
#73 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
kubernetes, shell
Lĩnh vực
cli, devops

Hướng nghiên cứu

Bắt đầu với sysdig-install-agent-k8.sh và kiểm tra cách script này tạo các tệp /tmp/sysdig-agent-clusterrole.yaml, /tmp/sysdig-agent-daemonset-v2.yaml và /tmp/sysdig-agent-configmap.yaml. Tái hiện quá trình cài đặt với hai người dùng và xác minh rằng người dùng thứ hai có thể cài đặt thành công sau lần cài đặt đầu tiên mà không có các tệp còn sót lại gây cản trở.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

As different user on same system,it fails without any error.Looks like as say user coopnonprod-tor01 on system infosec it create below files owned by coopnonprod-tor01

coopnonprod-tor01@infosec:/tmp$ ls -lart
-rw-rw-r-- 1 coopnonprod-tor01 coopnonprod-tor01 836 Jul 5 16:42 sysdig-agent-clusterrole.yaml
-rw-rw-r-- 1 coopnonprod-tor01 coopnonprod-tor01 3107 Jul 5 16:42 sysdig-agent-daemonset-v2.yaml
-rw-rw-r-- 1 coopnonprod-tor01 coopnonprod-tor01 1282 Jul 5 16:42 sysdig-agent-configmap.yaml

Now from same system infosec I want to install sysdig agent from say different user coopnonprod-mon01 to different cluster,it just fails

coopnonprod-mon01@infosec:~/sysdig$ ./sysdig-install-agent-k8.sh -a 32d84351-a7e7-46xxxxxxx -c ingest.us-south.monitoring.cloud.ibm.com -ac 'sysdig_capture_enabled: true'

  • Detecting operating system
  • Downloading Sysdig cluster role yaml ---No errors and stops here
    coopnonprod-mon01@infosec:~/sysdig$

Looks like after install need to clean up files /tmp/sysdig-agent* which are owned by previous user.

Ngôn ngữ chính
Shell
Star
83
Fork
105
Merge trung bình
3 giờ 53 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của draios/sysdig-cloud-scripts

Tất cả issue của draios/sysdig-cloud-scripts

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.