soabase / exhibitor

ZooKeeper co-process for instance monitoring, backup/recovery, cleanup and visualization.

Home Page:https://groups.google.com/forum/#!topic/exhibitor-users/PVkcd88mk8c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default Apache mirror for Zookeeper doesn't store previous versions

kivagant-ba opened this issue · comments

I believe this cookbook should not throw exceptions if the the required version of Zookeeper wasn't found in the stable mirror. Instead it should search for it in the archive: https://archive.apache.org/dist/zookeeper/

================================================================================
Error executing action `install` on resource 'ark[zookeeper]'
================================================================================

Net::HTTPServerException
------------------------
remote_file[/var/chef/cache/zookeeper-3.4.10.tar.gz] (/var/chef/cache/cookbooks/ark/providers/default.rb line 41) had an error: Net::HTTPServerException: 404 "Not Found"

Cookbook Trace:
---------------
...

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/zookeeper/resources/default.rb

 69:   ark 'zookeeper' do
 70:     url         "#{mirror}/zookeeper-#{new_resource.version}/zookeeper-#{new_resource.version}.tar.gz"
 71:     version     new_resource.version
 72:     prefix_root install_dir
 73:     prefix_home install_dir
 74:     checksum    new_resource.checksum if new_resource.checksum
 75:     owner       username
 76:     group       username
 77:   end
 78:

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/zookeeper/resources/default.rb:69:in `block in class_from_file'

ark("zookeeper") do
  action [:install]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :ark
  cookbook_name "exhibitor"
  url "http://apache.mirrors.tds.net/zookeeper//zookeeper-3.4.10/zookeeper-3.4.10.tar.gz"
  version "3.4.10"
  prefix_home "/opt"
  prefix_root "/opt"
  owner "zookeeper"
  group "zookeeper"
  extension "tar.gz"
  prefix_bin "/usr/local/bin"
  home_dir "/opt/zookeeper"
  path "/opt/zookeeper-3.4.10"
  release_file "/var/chef/cache/zookeeper-3.4.10.tar.gz"
end

Platform:
---------
x86_64-linux

Sorry, I missed the repo. Moved to evertrue/exhibitor-cookbook#50