This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
(maint) Add beaker-abs compatible with beaker 2-3 #506
Merged
MikaelSmith
merged 1 commit into
puppetlabs-toy-chest:LTS-1.7
from
joshcooper:maint/lts17/beaker-abs
Oct 27, 2016
Merged
(maint) Add beaker-abs compatible with beaker 2-3 #506
MikaelSmith
merged 1 commit into
puppetlabs-toy-chest:LTS-1.7
from
joshcooper:maint/lts17/beaker-abs
Oct 27, 2016
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.
CLA signed by all contributors. |
Will this be used later? |
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 $ 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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.