Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 0.10.4
-
Fix Version/s: None
-
Component/s: Chef Client, Chef Server
-
Labels:
-
Environment:
Chef-Server (Open Source) and
Description
I have a cookbook w/ a default attribute set as an array:
default.rb
default[:rayo][:gateway][:external]=[
'gw.tropo.local',
'192.168.1.33',
'localhost'
]
and then in my environment I override that attribute
env.json
chef_type: environment
cookbook_versions: {}
default_attributes: {}
description:
json_class: Chef::Environment
name: ec2_rayo_functional_tests
override_attributes:
authorization:
sudo:
groups:
admin
wheel
sysadmin
passwordless: true
users:
jdyer
mperez
jdecastro
base_voxeo:
services:
on:
munin-node
crond
haldaemon
irqbalance
lvm2-monitor
mcstrans
messagebus
microcode_ctl
network
ntpd
readahead_early
readahead_later
restorecond
smartd
sshd
syslog-ng
sysstat
xfs
ejabberd:
domains: ["xmpp.__________"]
prism:
VxLaunch:
Commands:
as:
MaxPermSize: 512m
artifacts:
checksum: 61015212bb4cbd53bf0a83d315c62bae77381d27dcee4d588da14d669c491412
url: https://__________C201111112119_0-x64.bin
rayo:
cluster: true
gateway:
external: ["rayo-gw1-ext.__________"]
internal: ["rayo-gw1.__________"]
routes: [".*=rayo@xmpp.__________"]
jolokia:
remote:
localhost
127.0.0.1
66.193.54.0/24
maven: maven.voxeo.net
node:
gateway: rayo-gw1.__________
routes: [".*=rayo-gw1.__________"]
The gist of it is that shef -z on the node shows the correct attribute, an array of one item
shef.sh
[root@rayo-gw1 WEB-INF]# shef -z loading configuration: /etc/chef/client.rb Session type: client Loading...[Tue, 06 Dec 2011 10:16:49 -0500] INFO: Run List is [role[voxeo], role[rayo_gateway]] [Tue, 06 Dec 2011 10:16:49 -0500] INFO: Run List expands to [users::sysadmins, base_voxeo, sudo, prism, rayo::gateway] [Tue, 06 Dec 2011 10:16:49 -0500] INFO: Loading cookbooks [base_voxeo, prism, rayo, sudo, users] done. This is shef, the Chef shell. Chef Version: 0.10.4 http://www.opscode.com/chef http://wiki.opscode.com/display/chef/Home run `help' for help, `exit' or ^D to quit. Ohai2u jdyer@rayo-gw1.____.net! chef > node[:rayo][:gateway][:external] => ["rayo-gw1-ext.____.net"] chef > quit
but the node shows a merge of the default and the the environment variable
node.sh
11:36:56 jdyer@aleph.local chef master ? knife node show rayo-gw1.__________ -a rayo
rayo:
artifacts:
gateway:
checksum:
url:
node:
checksum:
url:
bindAddress: 10.110.___.89
cluster: true
gateway:
domains:
10.110.___.89
rayo-gw1.__________
rayo-gw1
external:
gw.tropo.local
192.168.1.33
localhost
rayo-gw1-ext.__________
rayo-gw1.__________
10.110.241.89
rayo-gw1
internal:
internal.tropo.local
rayo-gw1.__________
routes: [".*=rayo@xmpp.__________"]
jolokia:
commands:
read
list
exec
version
remote:
localhost
127.0.0.1
66.193.54.0/24
local_domain: rayo-gw1.__________
maven: maven.voxeo.net
node:
domains:
10.110.___.89
rayo-gw1.__________
rayo-gw1
gateway: rayo-gw1.__________
routes: [".*=rayo-gw1.__________"]
routes: []
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
Bryan McLellan [Opscode]
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Component/s | Recipes [ 10017 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 14830 ] | New OSS [ 17684 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 17684 ] | OSS: Product Management [ 25301 ] |
Steven Danna
made changes -
| Priority | Blocker [ 1 ] | Critical [ 2 ] |