[chef] torrent hash is same for every torrent after the first


Chronological Thread 
  • From: Chris McClimans < >
  • To:
  • Subject: [chef] torrent hash is same for every torrent after the first
  • Date: Mon, 29 Aug 2011 22:12:50 +1200

Given a list of torrents:
https://github.com/passionengine/ii/blob/master/site-cookbooks/unattended/attributes/default.rb#L40

default[:unattended][:driverpack][:torrents] = [
  ["DP_Bluetooth_wnt5_x86-32_910.7z",
    "1bc4d487fae0c0b963e8f5a98778fe5ebd07ce403d0b6bc48f748a8363e0caaf",
"DP_Bluetooth_wnt5_x86-32_910.torrent",
    
"http://driverpacks.net/driverpacks/windows/xp/x86/bluetooth/9.10/download/torrent";],
  ["DP_Chipset_wnt5_x86-32_1108.7z",
    "fcbcd23b21b29b36db2e5e7899b40757a3b40a006e3f837c6e7678a6477dc432",
"DP_Chipset_wnt5_x86-32_1108.torrent",
    
"http://driverpacks.net/driverpacks/windows/xp/x86/chipset/11.08/download/torrent";],
   ( ..and so on...)
   ]

I try to download them
https://github.com/passionengine/ii/blob/master/site-cookbooks/unattended/recipes/default.rb#L139

node['unattended']['driverpack']['torrents'].each do
|driver_file,t_sha256,t_file,t_url|
  local_torrent_file = "#{cache_dir}torrents/#{t_file}"
  local_driver_file = "#{cache_dir}drivers/#{driver_file}"

  remote_file local_torrent_file do
    source t_url
    backup false
    mode "0755"
    checksum t_sha256
  end

  transmission_torrent_file local_driver_file  do
    torrent local_torrent_file
    continue_seeding true
    rpc_username tuser
    rpc_password tpass
    action :create
  end
end


However I get

DEBUG: transmission_torrent_file[anyfile] torrent hash =
4551e4bcfcd85ec04e0c28d5a151a0c1829fec19

for any of my torrent after the first one.

Anything obviously wrong with my approach?


[Mon, 29 Aug 2011 21:53:55 +1200] DEBUG: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
on breeze.local
[Mon, 29 Aug 2011 21:53:55 +1200] INFO: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
action create (unattended::default line 143)
[Mon, 29 Aug 2011 21:53:55 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
checking for changes
[Mon, 29 Aug 2011 21:53:55 +1200] DEBUG: Sending HTTP Request via GET
to 
driverpacks.net:80/driverpacks/windows/xp/x86/bluetooth/9.10/download/torrent
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Streaming download from
http://driverpacks.net/driverpacks/windows/xp/x86/bluetooth/9.10/download/torrent
to tempfile /tmp/chef-rest20110829-19668-1u5n9nx-0
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
checking for file existence of
/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
creating 
/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] INFO:
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
updated
[Mon, 29 Aug 2011 21:53:57 +1200] INFO:
remote_file[/var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent]
mode changed to 755
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Processing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Bluetooth_wnt5_x86-32_910.7z]
on breeze.local
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Bluetooth_wnt5_x86-32_910.7z]
action create (unattended::default line 150)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Caching a copy of torrent
file /var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent
at /var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] INFO:
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] created
file /var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] INFO:
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] mode
changed to 755
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Caching a copy of torrent
file /var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent
at /var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Setting
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] to the
state of the prior
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent]
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG:
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Bluetooth_wnt5_x86-32_910.7z]
torrent hash = 4551e4bcfcd85ec04e0c28d5a151a0c1829fec19
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Caching a copy of torrent
file /var/cache/chef/unattended/torrents/DP_Bluetooth_wnt5_x86-32_910.torrent
at /var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Setting
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] to the
state of the prior
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent]
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Found existing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Bluetooth_wnt5_x86-32_910.7z]
in swarm with name of 'DP_Bluetooth_wnt5_x86-32_910.7z' and status of
'SEED'
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Downloading
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Bluetooth_wnt5_x86-32_910.7z]...100%
complete
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] on
breeze.local
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] on
breeze.local
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] on
breeze.local
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
file[/var/cache/chef/DP_Bluetooth_wnt5_x86-32_910.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
on breeze.local
[Mon, 29 Aug 2011 21:53:57 +1200] INFO: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
action create (unattended::default line 143)
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
checking for changes
[Mon, 29 Aug 2011 21:53:57 +1200] DEBUG: Sending HTTP Request via GET
to 
driverpacks.net:80/driverpacks/windows/xp/x86/chipset/11.08/download/torrent
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Streaming download from
http://driverpacks.net/driverpacks/windows/xp/x86/chipset/11.08/download/torrent
to tempfile /tmp/chef-rest20110829-19668-1g5saov-0
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
checking for file existence of
/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG:
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
creating 
/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent
[Mon, 29 Aug 2011 21:53:59 +1200] INFO:
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
updated
[Mon, 29 Aug 2011 21:53:59 +1200] INFO:
remote_file[/var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent]
mode changed to 755
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Processing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Chipset_wnt5_x86-32_1108.7z]
on breeze.local
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Chipset_wnt5_x86-32_1108.7z]
action create (unattended::default line 150)
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Caching a copy of torrent
file /var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent
at /var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:59 +1200] INFO:
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] created file
/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent
[Mon, 29 Aug 2011 21:53:59 +1200] INFO:
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] mode changed
to 755
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG:
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Chipset_wnt5_x86-32_1108.7z]
torrent hash = 4551e4bcfcd85ec04e0c28d5a151a0c1829fec19
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Caching a copy of torrent
file /var/cache/chef/unattended/torrents/DP_Chipset_wnt5_x86-32_1108.torrent
at /var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Setting
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] to the state
of the prior file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent]
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Found existing
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Chipset_wnt5_x86-32_1108.7z]
in swarm with name of 'DP_Bluetooth_wnt5_x86-32_910.7z' and status of
'SEED'
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Downloading
transmission_torrent_file[/var/cache/chef/unattended/drivers/DP_Chipset_wnt5_x86-32_1108.7z]...100%
complete
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] on
breeze.local
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] on
breeze.local
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
file[/var/cache/chef/DP_Chipset_wnt5_x86-32_1108.torrent] action
create (/var/cache/chef/cookbooks/transmission/providers/torrent_file.rb
line 114)
[Mon, 29 Aug 2011 21:53:59 +1200] DEBUG: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_CPU_wnt5_x86-32_1005.torrent]
on breeze.local
[Mon, 29 Aug 2011 21:53:59 +1200] INFO: Processing
remote_file[/var/cache/chef/unattended/torrents/DP_CPU_wnt5_x86-32_1005.torrent]
action create (unattended::default line 143)



Archive powered by MHonArc 2.6.16.

§