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

DTT1 - Iteration 3 - Allocation module - OpenSuse15 AMI connection failure by using ssh #5192

Closed
pro-akim opened this issue Apr 9, 2024 · 0 comments · Fixed by #5195
Closed
Assignees
Labels

Comments

@pro-akim
Copy link
Member

pro-akim commented Apr 9, 2024

After creating an EC2 opensuse-15, it is not possible to connect to it using ssh

>YAML file
version: 0.1
description: This workflow is used to test agents deployment por DDT1 PoC
variables:

  manager-os:
    - linux-opensuse-15-amd64

  infra-provider: aws
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager}"
          - inventory-output: "{working-dir}/manager-{manager}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager}/track.yaml"
          - ssh-key: "/home/akim/Desktop/personal/Ephemeral"
          - label-termination-date: "1d"
          - label-team: "qa"
    foreach:
      - variable: manager-os
        as: manager

EC2 is created:

image

image

But is not possible to connect to the EC2 by ssh

akim@akim-PC:~$ cat /tmp/dtt1-poc/manager-linux-opensuse-15-amd64/
inventory.yaml  track.yaml      

akim@akim-PC:~$ cat /tmp/dtt1-poc/manager-linux-opensuse-15-amd64/inventory.yaml 
ansible_connection: ssh
ansible_host: ec2-54-161-185-240.compute-1.amazonaws.com
ansible_port: 2200
ansible_ssh_private_key_file: /home/akim/Desktop/personal/Ephemeral
ansible_user: ec2-user

akim@akim-PC:~$ ssh -i "/home/akim/Desktop/personal/Ephemeral" -p 2200 ec2-user@ec2-54-161-185-240.compute-1.amazonaws.com
ssh: connect to host ec2-54-161-185-240.compute-1.amazonaws.com port 2200: Connection refused
@pro-akim pro-akim changed the title DTT1 - Iteration 3 - Allocation module - OpenSuse15 AMI DTT1 - Iteration 3 - Allocation module - OpenSuse15 AMI connection failure by using ssh Apr 9, 2024
@c-bordon c-bordon self-assigned this Apr 9, 2024
@c-bordon c-bordon linked a pull request Apr 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
3 participants