Appdynamics / Appdynamics/appdynamics-cookbooks
machine agent package doesn't work when bundle = false
- Dominant language
- Ruby
- Stars
- 28
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
with default attributes, the machine agent package cannot be downloaded. it doesn't look like the machine_agent recipe supports the structure on packages.appdynamics.com
"https://packages.appdynamics.com/machine/4.1.3.0/MachineAgent-4.1.3.0.zip"
├── machine
│ └── 4.1.3.0
│ ├── appdynamics-machine-agent-4.1.3.0-1.i386.rpm
│ ├── appdynamics-machine-agent-4.1.3.0-1.x86_64.rpm
│ ├── machineagent-bundle-32bit-linux-4.1.3.0.zip
│ ├── machineagent-bundle-32bit-solaris-4.1.3.0.zip
│ ├── machineagent-bundle-32bit-windows-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-linux-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-osx-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-solaris-4.1.3.0.zip
│ └── machineagent-bundle-64bit-windows-4.1.3.0.zip
[2015-10-07T19:41:59+00:00] WARN: remote_file[/tmp/kitchen/cache/AppDynam
icsMachineAgent.zip] cannot be downloaded from https://packages.appdynamics.com/
machine/4.1.3.0/MachineAgent-4.1.3.0.zip: 403 "Forbidden"
```
=====================================================================
```
#
```
Error executing action `create` on resource 'remote_file[/tmp/kitchen
```
/cache/AppDynamicsMachineAgent.zip]'
# =====================================================================
```
Net::HTTPServerException
------------------------
403 "Forbidden"
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machine_agent.r
```
b
```
45: remote_file agent_zip do
46: source package_source
47: checksum agent['checksum']
48: backup false
49: mode '0444'
50: notifies :run, 'execute[unzip-appdynamics-machine-agent]', :im
```
mediately
51: end
52:
```
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machin
```
e_agent.rb:45:in `from_file'
```
remote_file("/tmp/kitchen/cache/AppDynamicsMachineAgent.zip") do
provider Chef::Provider::RemoteFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/tmp/kitchen/cache/AppDynamicsMachineAgent.zip"
atomic_update true
source ["https://packages.appdynamics.com/machine/4.1.3.0/MachineAg
```
ent-4.1.3.0.zip"]
use_etag true
use_last_modified true
declared_type :remote_file
cookbook_name "appdynamics"
recipe_name "machine_agent"
mode "0444"
end
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in recipes/machine_agent.rb at the remote_file declaration around line 45, then trace how package_source is built when bundle is false. Reproduce the 403 download failure against the package URL shown in the issue; done means the recipe selects a downloadable package path and converges successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100