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

beaker is failing to run acceptance tests on existing node #1683

Closed
mksha opened this issue Nov 23, 2020 · 2 comments
Closed

beaker is failing to run acceptance tests on existing node #1683

mksha opened this issue Nov 23, 2020 · 2 comments

Comments

@mksha
Copy link

mksha commented Nov 23, 2020

Steps to reproduce:

  1. Run beaker --hosts hosts.yaml --tests test_spec.rb (using docker provisioner with provision=false)
# hosts.yaml
---
HOSTS:
  ubuntu1804-64-1:
    docker_cmd:
    - "/sbin/init"
    image: ubuntu:18.04
    platform: ubuntu-18.04-amd64
    packaging_platform: ubuntu-18.04-amd64
    docker_image_commands:
    - cp /bin/true /sbin/agetty
    - apt-get install -y net-tools wget locales apt-transport-https iproute2 gnupg
    - locale-gen en_US.UTF-8
    - echo LANG=en_US.UTF-8 > /etc/default/locale
    hypervisor: docker
    roles:
    - agent
CONFIG:
  nfs_server: none
  consoleport: 443
  type: foss
  masterless: true
  log_level: debug
  validate: true
  department: DevOps
  preserve_hosts: always
  provision: false
  1. Now try to run the tests against existing node
    beaker --hosts hosts.yaml --tests test_spec.rb
Warning: Trying again in 3 seconds
  Attempting ssh connection to ubuntu1804-64-1, user: root, opts: {:config=>false, :verify_host_key=>false, :auth_methods=>["publickey"], :port=>6823, :forward_agent=>true, :keys=>["/Users/mohitkumarsharma/.ssh/id_rsa"], :user_known_hosts_file=>"/Users/mohitkumarsharma/.ssh/known_hosts", :keepalive=>true, :logger=>#<Logger:0x00007fd748fdaad0 @level=4, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fd748fdaa80 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fd748fdaa30 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @binmode=false, @mon_data=#<Monitor:0x00007fd748fda9e0>, @mon_data_owner_object_id=11000>>, :password_prompt=>#<Net::SSH::Prompt:0x00007fd748fda940>, :user=>"root"}
  Warning: Try 2 -- Host ubuntu1804-64-1 unreachable: SocketError - getaddrinfo: nodename nor servname provided, or not known

it is happening because container does not have public key, so we can not login to docker container. Also ssh is running on different port but the api is trying to access to 22. Even after changing the port and putting the keys inside the docker container , I am still not able to run the tests using beaker on existing node.

Pls let me know if I am missing anything.

Thanks

@ekohl
Copy link
Member

ekohl commented Nov 23, 2020

I've also seen the same thing with beaker-docker. I always use beaker-vagrant which works quite well for me.

@ekohl
Copy link
Member

ekohl commented Dec 5, 2020

I believe this is an issue just with https://github.com/puppetlabs/beaker-docker. Please file an issue there.

@ekohl ekohl closed this as completed Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants