Skip to content

Instantly share code, notes, and snippets.

@fujin

fujin/- Secret

Last active August 29, 2015 14:05
Show Gist options
  • Save fujin/935677bb1303d7ad85db to your computer and use it in GitHub Desktop.
Save fujin/935677bb1303d7ad85db to your computer and use it in GitHub Desktop.
Recipe: styx::_artifact_deploy
* chef_gem[aws-sdk] action install[2014-08-29T21:12:45+00:00] INFO: Processing chef_gem[aws-sdk] action install (styx::_artifact_deploy line 2)
[2014-08-29T21:12:45+00:00] DEBUG: chef_gem[aws-sdk] using gem '/opt/chef/embedded/bin/gem'
[2014-08-29T21:12:45+00:00] DEBUG: chef_gem[aws-sdk] found installed gem aws-sdk version 1.29.0 matching aws-sdk (= 1.29.0)
[2014-08-29T21:12:45+00:00] DEBUG: chef_gem[aws-sdk] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:45+00:00] DEBUG: chef_gem[aws-sdk] resetting gem environment to default
* ruby_block[configure aws authentication] action run[2014-08-29T21:12:45+00:00] INFO: Processing ruby_block[configure aws authentication] action run (styx::_artifact_deploy line 9)
[2014-08-29T21:12:46+00:00] INFO: ruby_block[configure aws authentication] called
- execute the ruby block configure aws authentication
* ruby_block[determine latest artifact] action run[2014-08-29T21:12:46+00:00] INFO: Processing ruby_block[determine latest artifact] action run (styx::_artifact_deploy line 20)
[2014-08-29T21:12:47+00:00] INFO: ruby_block[determine latest artifact] called
- execute the ruby block determine latest artifact
* artifact_deploy[styx] action deploy[2014-08-29T21:12:47+00:00] INFO: Processing artifact_deploy[styx] action deploy (styx::_artifact_deploy line 53)
[2014-08-29T21:12:47+00:00] WARN: Cloning resource attributes for package[gcc] from prior resource (CHEF-3694)
[2014-08-29T21:12:47+00:00] WARN: Previous package[gcc]: /opt/titan/chef/cookbooks/sensu/recipes/default.rb:48:in `block in from_file'
[2014-08-29T21:12:47+00:00] WARN: Current package[gcc]: /opt/titan/chef/cookbooks/artifact/providers/deploy.rb:78:in `block in load_current_resource'
* package[gcc] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[gcc] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[gcc] checking yum info for gcc
[2014-08-29T21:12:47+00:00] DEBUG: package[gcc] installed version: 4.8.3-1.fc20 candidate version: 4.8.3-1.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[gcc] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] WARN: Cloning resource attributes for package[make] from prior resource (CHEF-3694)
[2014-08-29T21:12:47+00:00] WARN: Previous package[make]: /opt/titan/chef/cookbooks/pantheon/recipes/utilities.rb:9:in `from_file'
[2014-08-29T21:12:47+00:00] WARN: Current package[make]: /opt/titan/chef/cookbooks/artifact/providers/deploy.rb:78:in `block in load_current_resource'
* package[make] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[make] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[make] checking yum info for make
[2014-08-29T21:12:47+00:00] DEBUG: package[make] installed version: 3.82-19.fc20 candidate version: 3.82-19.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[make] is already installed - nothing to do
(up to date)
* package[libxml2] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[libxml2] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2] checking yum info for libxml2
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2] installed version: 2.9.1-2.fc20 candidate version: 2.9.1-2.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2] is already installed - nothing to do
(up to date)
* package[libxslt] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[libxslt] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt] checking yum info for libxslt
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt] installed version: 1.1.28-5.fc20 candidate version: 1.1.28-5.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] WARN: Cloning resource attributes for package[libxml2-devel] from prior resource (CHEF-3694)
[2014-08-29T21:12:47+00:00] WARN: Previous package[libxml2-devel]: /opt/titan/chef/cookbooks/chef/recipes/foodcritic.rb:2:in `block in from_file'
[2014-08-29T21:12:47+00:00] WARN: Current package[libxml2-devel]: /opt/titan/chef/cookbooks/artifact/providers/deploy.rb:78:in `block in load_current_resource'
* package[libxml2-devel] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[libxml2-devel] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2-devel] checking yum info for libxml2-devel
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2-devel] installed version: 2.9.1-2.fc20 candidate version: 2.9.1-2.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[libxml2-devel] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] WARN: Cloning resource attributes for package[libxslt-devel] from prior resource (CHEF-3694)
[2014-08-29T21:12:47+00:00] WARN: Previous package[libxslt-devel]: /opt/titan/chef/cookbooks/chef/recipes/foodcritic.rb:2:in `block in from_file'
[2014-08-29T21:12:47+00:00] WARN: Current package[libxslt-devel]: /opt/titan/chef/cookbooks/artifact/providers/deploy.rb:78:in `block in load_current_resource'
* package[libxslt-devel] action install[2014-08-29T21:12:47+00:00] INFO: Processing package[libxslt-devel] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 78)
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt-devel] checking yum info for libxslt-devel
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt-devel] installed version: 1.1.28-5.fc20 candidate version: 1.1.28-5.fc20
[2014-08-29T21:12:47+00:00] DEBUG: package[libxslt-devel] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] WARN: Cloning resource attributes for chef_gem[aws-sdk] from prior resource (CHEF-3694)
[2014-08-29T21:12:47+00:00] WARN: Previous chef_gem[aws-sdk]: /opt/titan/chef/cookbooks/styx/recipes/_artifact_deploy.rb:2:in `from_file'
[2014-08-29T21:12:47+00:00] WARN: Current chef_gem[aws-sdk]: /opt/titan/chef/cookbooks/artifact/providers/deploy.rb:84:in `load_current_resource'
* chef_gem[aws-sdk] action install[2014-08-29T21:12:47+00:00] INFO: Processing chef_gem[aws-sdk] action install (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 84)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] using gem '/opt/chef/embedded/bin/gem'
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] found installed gem aws-sdk version 1.29.0 matching aws-sdk (= 1.29.0)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] resetting gem environment to default
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_deploy_directories!] Creating /var/chef/cache/artifact_deploys/styx/487
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_deploy_directories!] Creating /opt/styxgo/releases/487
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_deploy_directories!] Creating /opt/styxgo/shared
* directory[/var/chef/cache/artifact_deploys/styx/487] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/var/chef/cache/artifact_deploys/styx/487] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 512)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
* directory[/opt/styxgo/releases/487] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/opt/styxgo/releases/487] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 512)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
* directory[/opt/styxgo/shared] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/opt/styxgo/shared] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 512)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
- evaluate block and run any associated actions[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_shared_directories!] Creating /opt/styxgo/shared/system
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_shared_directories!] Creating /opt/styxgo/shared/pids
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[setup_shared_directories!] Creating /opt/styxgo/shared/log
* directory[/opt/styxgo/shared/system] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/opt/styxgo/shared/system] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 530)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
* directory[/opt/styxgo/shared/pids] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/opt/styxgo/shared/pids] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 530)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
* directory[/opt/styxgo/shared/log] action create[2014-08-29T21:12:47+00:00] INFO: Processing directory[/opt/styxgo/shared/log] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 530)
[2014-08-29T21:12:47+00:00] DEBUG: found target_mode == current_mode, not updating mode
[2014-08-29T21:12:47+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:47+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
- evaluate block and run any associated actions[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[manifest_differences?] Currently installed version of artifact is 487.
[2014-08-29T21:12:47+00:00] DEBUG: artifact_deploy[has_manifest_changed?] Loading manifest.yaml file from directory: /opt/styxgo/releases/487
[2014-08-29T21:12:47+00:00] DEBUG: artifact_deploy[generate_manifest] Generating manifest for files in /opt/styxgo/releases/487
[2014-08-29T21:12:47+00:00] DEBUG: artifact_deploy[has_manifest_changed?] Comparing saved manifest from /opt/styxgo/releases/487 with regenerated manifest from /opt/styxgo/releases/487.
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[has_manifest_changed?] Saved manifest from /opt/styxgo/releases/487 is the same as regenerated manifest. Not Deploying.
[2014-08-29T21:12:47+00:00] INFO: artifact_deploy[retrieve_artifact!] Retrieving artifact from S3 using s3://s3.amazonaws.com/pantheon-releases/styx/487.tar.gz
* artifact_file[/var/chef/cache/artifact_deploys/styx/487/487.tar.gz] action create[2014-08-29T21:12:47+00:00] INFO: Processing artifact_file[/var/chef/cache/artifact_deploys/styx/487/487.tar.gz] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 596)
* chef_gem[aws-sdk] action install[2014-08-29T21:12:47+00:00] INFO: Processing chef_gem[aws-sdk] action install (/opt/titan/chef/cookbooks/artifact/providers/file.rb line 41)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] using gem '/opt/chef/embedded/bin/gem'
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] found installed gem aws-sdk version 1.29.0 matching aws-sdk (= 1.29.0)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] resetting gem environment to default
(up to date)
* chef_gem[aws-sdk] action install[2014-08-29T21:12:47+00:00] INFO: Processing chef_gem[aws-sdk] action install (/opt/titan/chef/cookbooks/artifact/providers/file.rb line 41)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] using gem '/opt/chef/embedded/bin/gem'
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] found installed gem aws-sdk version 1.29.0 matching aws-sdk (= 1.29.0)
[2014-08-29T21:12:47+00:00] DEBUG: chef_gem[aws-sdk] is already installed - nothing to do
(up to date)
[2014-08-29T21:12:48+00:00] DEBUG: chef_gem[aws-sdk] resetting gem environment to default
- evaluate block and run any associated actions[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::before_deploy] Determining whether to execute before_deploy proc.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::before_deploy] Skipping execution of before_deploy proc because it was not defined.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::configure] Determining whether to execute configure proc.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::configure] Skipping execution of configure proc because it was not defined.
[2014-08-29T21:12:48+00:00] INFO: artifact_deploy[manifest_differences?] Currently installed version of artifact is 487.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[has_manifest_changed?] Loading manifest.yaml file from directory: /opt/styxgo/releases/487
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[generate_manifest] Generating manifest for files in /opt/styxgo/releases/487
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[has_manifest_changed?] Comparing saved manifest from /opt/styxgo/releases/487 with regenerated manifest from /opt/styxgo/releases/487.
[2014-08-29T21:12:48+00:00] INFO: artifact_deploy[has_manifest_changed?] Saved manifest from /opt/styxgo/releases/487 is the same as regenerated manifest. Not Deploying.
* link[/opt/styxgo/current] action create[2014-08-29T21:12:48+00:00] INFO: Processing link[/opt/styxgo/current] action create (/opt/titan/chef/cookbooks/artifact/providers/deploy.rb line 159)
[2014-08-29T21:12:48+00:00] DEBUG: found target_mode == nil, so no mode was specified on resource, not managing mode
[2014-08-29T21:12:48+00:00] DEBUG: found target_uid == current_uid, not updating owner
[2014-08-29T21:12:48+00:00] DEBUG: found target_gid == current_gid, not updating group
(up to date)
- evaluate block and run any associated actions[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::after_deploy] Determining whether to execute after_deploy proc.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[run_proc::after_deploy] Skipping execution of after_deploy proc because it was not defined.
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[generate_manifest] Generating manifest for files in /opt/styxgo/releases/487
[2014-08-29T21:12:48+00:00] DEBUG: artifact_deploy[write_manifest] Writing manifest.yaml file to /opt/styxgo/releases/487/manifest.yaml
- evaluate block and run any associated actions
- evaluate block and run any associated actions
(later)
[2014-08-29T21:13:40+00:00] INFO: [artifact_deploy[styx]] sending restart action to service[styxgo_9092.service] (delayed)
Recipe: styx::_golang_listen_ports
* service[styxgo_9092.service] action restart[2014-08-29T21:13:40+00:00] INFO: Processing service[styxgo_9092.service] action restart (styx::_golang_listen_ports line 21)
[2014-08-29T21:13:40+00:00] DEBUG: Executing /bin/systemctl is-active styxgo_9092.service
[2014-08-29T21:13:40+00:00] DEBUG: ---- Begin output of /bin/systemctl is-active styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: STDOUT: active
[2014-08-29T21:13:40+00:00] DEBUG: STDERR:
[2014-08-29T21:13:40+00:00] DEBUG: ---- End output of /bin/systemctl is-active styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: Ran /bin/systemctl is-active styxgo_9092.service returned 0
[2014-08-29T21:13:40+00:00] DEBUG: Executing /bin/systemctl is-enabled styxgo_9092.service
[2014-08-29T21:13:40+00:00] DEBUG: ---- Begin output of /bin/systemctl is-enabled styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: STDOUT: enabled
[2014-08-29T21:13:40+00:00] DEBUG: STDERR:
[2014-08-29T21:13:40+00:00] DEBUG: ---- End output of /bin/systemctl is-enabled styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: Ran /bin/systemctl is-enabled styxgo_9092.service returned 0
[2014-08-29T21:13:40+00:00] DEBUG: Executing /bin/systemctl restart styxgo_9092.service
[2014-08-29T21:13:40+00:00] DEBUG: ---- Begin output of /bin/systemctl restart styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: STDOUT:
[2014-08-29T21:13:40+00:00] DEBUG: STDERR:
[2014-08-29T21:13:40+00:00] DEBUG: ---- End output of /bin/systemctl restart styxgo_9092.service ----
[2014-08-29T21:13:40+00:00] DEBUG: Ran /bin/systemctl restart styxgo_9092.service returned 0
[2014-08-29T21:13:40+00:00] INFO: service[styxgo_9092.service] restarted
- restart service service[styxgo_9092.service]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment