Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

feat: enable SSH access to users for debugging cloud instances (#2001) backport for 7.17#2031

Merged
mdelapenya merged 1 commit intoelastic:7.17from
mdelapenya:backport/7.17/pr-2001
Jan 20, 2022
Merged

feat: enable SSH access to users for debugging cloud instances (#2001) backport for 7.17#2031
mdelapenya merged 1 commit intoelastic:7.17from
mdelapenya:backport/7.17/pr-2001

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.17:

…ic#2001)

* chore: install ssh-import-id from pip

It will allow importing public SSH keys from Github so we can easily provide
a way for developers to connect to the cloud instances.
See https://github.com/dustinkirkland/ssh-import-id

* feat: do not destroy cloud resources if DEVELOPER_MODE is true

* feat: install public SSH keys into the cloud instances

* chore: enable @mdelapenya in SSH access

* chore: mark EC2 instances with a proper label to be reaped

* feat: add a pipeline that removes AWS cloud resources on Sundays

* chore: force installation

* fix: install pip

* fix: run script after having the repo (order matters)

* chore: use base commit as RUN_ID

This way we will be able to correlate the cloud instances with a commit SHA
instead of a random UUID

* docs: update RUN_ID docs

* chore: add @adam-stokes as SSH user

* fix: do not import ssh keys as root

* chore: rename tag used on AWS reaper

* chore: add a label for node kind

* chore: add buildURL as tag

* fix: camelcase

* fix: pass buildURL when creating runners

* chore: use default value for buildURL

Provisioning from local machine will lead to buildURL not to be populated,
so we need a default value

* chore: simplify reaper pipeline removing git checkout

* chore: install python-pip for Suse and CentOS

* chore: back to a random UUID

* feat: add a VM label for the git base commit

* chore: define labels once

Co-authored-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
@mdelapenya mdelapenya self-assigned this Jan 20, 2022
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-01-20T09:34:54.193+0000

  • Duration: 62 min 58 sec

  • Commit: 2b85e47

Test stats 🧪

Test Results
Failed 1
Passed 211
Skipped 0
Total 212

Test errors 1

Expand to view the tests failures

Initializing / End-To-End Tests / kubernetes_autodiscover_elastic-agent / [empty] – TEST-x86_64-kubernetes-autodiscover-5e0d5745-2022-01-20-09:54:49.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-2031-1-6c0fdf8d-f8a5-4aba-a1a0-77c6bc905bd0/outputs/18.223.113.103/TEST-x86_64-kubernetes-autodiscover-5e0d5745-2022-01-20-09:54:49.xml was length 0 
    

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / End-To-End Tests / kubernetes_autodiscover_elastic-agent / [empty] – TEST-x86_64-kubernetes-autodiscover-5e0d5745-2022-01-20-09:54:49.xml

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@mdelapenya mdelapenya merged commit 688125a into elastic:7.17 Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants