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

(maint) Add beaker-abs compatible with beaker 2-3 #506

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

joshcooper
Copy link
Contributor

Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.

Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.
@puppetcla
Copy link

CLA signed by all contributors.

@MikaelSmith
Copy link
Contributor

Will this be used later?

@joshcooper
Copy link
Contributor Author

Yep, right now it's a noop, but in cinext, we use beaker-hostgenerator specifying the hypervisor as "abs", and during the beaker run, it will use beaker-abs as a custom hypervisor to "provision" the VMs. In this case the VMs have already been provisioned and are passed to beaker via environment variable:

$ export ABS_RESOURCE_HOSTS='[{"hostname":"ro0b8fvvk1u0el5.delivery.puppetlabs.net","type":"redhat-7-x86_64","engine":"vmpooler"},{"hostname":"m1xhyklc792ak85.delivery.puppetlabs.net","type":"redhat-7-x86_64","engine":"vmpooler"}]'
$ bundle exec beaker-hostgenerator --hypervisor abs --global pooling_api=http://vmpooler-cinext.delivery.puppetlabs.net --disable-default-role redhat7-64m-redhat7-64a > hosts.cfg
$ bundle exec rake ci:test:aio SHA=1.7.1 SUITE_VERSION=1.7.1 BEAKER_HOSTS=hosts.cfg
./config/aio/options.rb
./local_options.rb
No options file found at /Users/josh/work/pxp-agent/acceptance/local_options.rb
beaker --options-file merged_options.rb --hosts=hosts.cfg
Beaker!
      wWWWw
      |o o|
      | O |  2.51.0!
      |(")|
     / \X/ \
    |   V   |
    |   |   |
{
    "project": "Beaker",
    "department": "unknown",
    "created_by": "josh",
    "host_tags": {},
    "openstack_api_key": null,
    "openstack_username": null,
    "openstack_auth_url": "/tokens",
    "openstack_tenant": null,
    "openstack_keyname": null,
    "openstack_network": null,
    "openstack_region": null,
    "jenkins_build_url": null,
    "validate": true,
    "configure": true,
    "log_level": "verbose",
    "trace_limit": 10,
    "master-start-curl-retries": 120,
    "masterless": false,
    "options_file": "merged_options.rb",
    "type": "aio",
    "provision": true,
    "preserve_hosts": "onfail",
    "root_keys": false,
    "quiet": false,
    "project_root": "/Users/josh/work/pxp-agent/acceptance/.bundle/ruby/2.2.0/gems/beaker-2.51.0/lib/beaker",
    "xml_dir": "junit",
    "xml_file": "beaker_junit.xml",
    "xml_time": "beaker_times.xml",
    "xml_time_enabled": false,
    "xml_stylesheet": "junit.xsl",
    "default_log_prefix": "beaker_logs",
    "log_dir": "log",
    "log_sut_event": "sut.log",
    "color": true,
    "dry_run": false,
    "tag_includes": [],
    "tag_excludes": [],
    "timeout": 900,
    "fail_mode": "slow",
    "accept_all_exit_codes": false,
    "timesync": false,
    "disable_iptables": false,
    "set_env": true,
    "disable_updates": true,
    "repo_proxy": true,
    "package_proxy": false,
    "add_el_extras": false,
    "epel_url": "http://dl.fedoraproject.org/pub/epel",
    "epel_arch": "i386",
    "epel_7_pkg": "epel-release-7-8.noarch.rpm",
    "epel_6_pkg": "epel-release-6-8.noarch.rpm",
    "epel_5_pkg": "epel-release-5-4.noarch.rpm",
    "consoleport": 443,
    "pe_dir": "/opt/enterprise/dists",
    "pe_version_file": "LATEST",
    "pe_version_file_win": "LATEST-win",
    "host_env": {},
    "host_name_prefix": null,
    "ssh_env_file": "~/.ssh/environment",
    "profile_d_env_file": "/etc/profile.d/beaker_env.sh",
    "dot_fog": "/Users/josh/.fog",
    "ec2_yaml": "config/image_templates/ec2.yaml",
    "help": false,
    "collect_perf_data": "none",
    "puppetdb_port_ssl": 8081,
    "puppetdb_port_nonssl": 8080,
    "puppetserver_port": 8140,
    "nodeclassifier_port": 4433,
    "cache_files_locally": true,
    "aws_keyname_modifier": "7156954638",
    "run_in_parallel": [],
    "ssh": {
        "config": false,
        "paranoid": false,
        "auth_methods": [
            "publickey"
        ],
        "port": 22,
        "forward_agent": true,
        "keys": [
            "~/.ssh/id_rsa-acceptance"
        ],
        "user_known_hosts_file": "/Users/josh/.ssh/known_hosts",
        "keepalive": true
    },
    "tests": [
        "tests/invalid_ssl_config.rb",
        "tests/pxp_agent_associate.rb",
        "tests/pxp_agent_version.rb",
        "tests/reconnect_after_broker_unavailable.rb",
        "tests/restart_host_run_puppet.rb",
        "tests/service_stop_start.rb",
        "tests/validate_file_paths.rb",
        "tests/failover/intentional_shutdown_failover.rb",
        "tests/failover/timeout_failover.rb",
        "tests/pxp-module-puppet/restart_pxp_agent_during_non_blocking_run.rb",
        "tests/pxp-module-puppet/run_puppet.rb",
        "tests/pxp-module-puppet/run_puppet_agent_disabled.rb",
        "tests/pxp-module-puppet/run_puppet_nonASCII.rb",
        "tests/pxp-module-puppet/run_puppet_result_changed.rb",
        "tests/pxp-module-puppet/run_puppet_result_failed.rb"
    ],
    "helper": [
        "lib/helper.rb"
    ],
    "is_puppetserver": true,
    "puppetservice": "puppetserver",
    "puppetserver-confdir": "/etc/puppetlabs/puppetserver/conf.d",
    "pre_suite": [
        "setup/common/000-delete-puppet-when-none.rb",
        "setup/common/005_SyncTime.rb",
        "setup/aio/pre-suite/010_Install.rb",
        "setup/aio/021_InstallAristaModule.rb",
        "setup/common/035_StartPuppetServer.rb",
        "setup/common/040_ValidateSignCert.rb",
        "setup/common/045_SetPuppetServerOnAgents.rb",
        "setup/common/050_Setup_Broker.rb",
        "setup/common/060_Setup_PCP_Client.rb"
    ],
    "hosts_file": "/Users/josh/work/pxp-agent/acceptance/hosts.cfg",
    "command_line": "/Users/josh/work/pxp-agent/acceptance/.bundle/ruby/2.2.0/bin/beaker --options-file merged_options.rb --hosts=hosts.cfg",
    "HOSTS": {
        "redhat7-64-1": {
            "pe_dir": null,
            "pe_ver": null,
            "pe_upgrade_dir": null,
            "pe_upgrade_ver": null,
            "hypervisor": "abs",
            "platform": "el-7-x86_64",
            "template": "redhat-7-x86_64",
            "roles": [
                "master",
                "default"
            ],
            "host_tags": {}
        },
        "redhat7-64-2": {
            "pe_dir": null,
            "pe_ver": null,
            "pe_upgrade_dir": null,
            "pe_upgrade_ver": null,
            "hypervisor": "abs",
            "platform": "el-7-x86_64",
            "template": "redhat-7-x86_64",
            "roles": [
                "agent"
            ],
            "host_tags": {}
        }
    },
    "nfs_server": "none",
    "pooling_api": "http://vmpooler-cinext.delivery.puppetlabs.net",
    "home": "/Users/josh",
    "load_path": [],
    "post_suite": [],
    "install": [],
    "pre_cleanup": [],
    "modules": [],
    "logger": "#<Beaker::Logger:0x007f8e1c692268>",
    "timestamp": "2016-10-27 12:39:20 -0700",
    "beaker_version": "2.51.0"
}
Hypervisor for redhat7-64-1 is abs
Hypervisor for redhat7-64-2 is abs
Beaker::Hypervisor, found some abs boxes to create

ro0b8fvvk1u0el5.delivery.puppetlabs.net (redhat7-64-1) 12:39:20$ rpm -q curl
  Attempting ssh connection to ro0b8fvvk1u0el5.delivery.puppetlabs.net, user: root, opts: {:config=>false, :paranoid=>false, :auth_methods=>["publickey"], :port=>22, :forward_agent=>true, :keys=>["~/.ssh/id_rsa-acceptance"], :user_known_hosts_file=>"/Users/josh/.ssh/known_hosts", :keepalive=>true}
  curl-7.29.0-19.el7.x86_64

ro0b8fvvk1u0el5.delivery.puppetlabs.net (redhat7-64-1) executed in 0.25 seconds

ro0b8fvvk1u0el5.delivery.puppetlabs.net (redhat7-64-1) 12:39:20$ rpm -q ntpdate
  ntpdate-4.2.6p5-18.el7.x86_64

ro0b8fvvk1u0el5.delivery.puppetlabs.net (redhat7-64-1) executed in 0.02 seconds

m1xhyklc792ak85.delivery.puppetlabs.net (redhat7-64-2) 12:39:20$ rpm -q curl
  Attempting ssh connection to m1xhyklc792ak85.delivery.puppetlabs.net, user: root, opts: {:config=>false, :paranoid=>false, :auth_methods=>["publickey"], :port=>22, :forward_agent=>true, :keys=>["~/.ssh/id_rsa-acceptance"], :user_known_hosts_file=>"/Users/josh/.ssh/known_hosts", :keepalive=>true, :user=>"root"}
  curl-7.29.0-19.el7.x86_64

m1xhyklc792ak85.delivery.puppetlabs.net (redhat7-64-2) executed in 0.43 seconds

m1xhyklc792ak85.delivery.puppetlabs.net (redhat7-64-2) 12:39:21$ rpm -q ntpdate
  ntpdate-4.2.6p5-18.el7.x86_64

m1xhyklc792ak85.delivery.puppetlabs.net (redhat7-64-2) executed in 0.02 seconds
setting local environment on redhat7-64-1

@MikaelSmith MikaelSmith merged commit 7552169 into puppetlabs:LTS-1.7 Oct 27, 2016
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

Successfully merging this pull request may close these issues.

3 participants