- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Problem with notifies
- Date: Sun, 27 May 2012 20:23:26 -0700
On Saturday, May 26, 2012 at 6:30 PM, Hector Castro wrote:
>
Hey Dan,
>
>
I tested master yesterday and it resolves the issue described in CHEF-3135.
>
>
Thanks,
>
>
--
>
Hector
Thanks for testing. <3
--
Dan DeLeo
>
>
>
On Sat, May 26, 2012 at 3:21 PM, Daniel DeLeo
>
<
>
>
(mailto:
)>
>
wrote:
>
>
>
>
>
> On Friday, May 25, 2012 at 3:10 PM, Daniel DeLeo wrote:
>
>
>
> >
>
> >
>
> > On Friday, May 25, 2012 at 2:32 PM, Zuhaib Siddique wrote:
>
> >
>
> > > Gah! This is going to suckā¦ Going to need to tweak our chef_client
>
> > > cookbook to lock to older version till this is fixed (not fun)
>
> > > On May 25, 2012, at 1:49 PM, Michael Glenney
>
> > > <
>
> > >
>
> > > (mailto:
)>
>
> > > wrote:
>
> > > > I submitted a bug for that last week. You can track it here:
>
> > > > http://tickets.opscode.com/browse/CHEF-3135
>
> > > >
>
> > > > MG
>
> > > >
>
> > > > On Fri, May 25, 2012 at 1:32 PM, Zuhaib Siddique
>
> > > > <
>
> > > >
>
> > > > (mailto:
)>
>
> > > > wrote:
>
> > > > > Hi,
>
> > > > >
>
> > > > > I am running in to an odd problem with notification in Chef
>
> > > > > 10.10, it seems suddenly this block of code is not working as
>
> > > > > expected:
>
> > > > >
>
> > > > > execute "set-hostname" do
>
> > > > > command "hostname --file /etc/hostname"
>
> > > > > action :nothing
>
> > > > > end
>
> > > > >
>
> > > > > file "/etc/hostname" do
>
> > > > > content "#{new_hostname}"
>
> > > > > notifies :run, "execute[set-hostname]", :immediately
>
> > > > > end
>
> > > > >
>
> > > > >
>
> > > > > In the chef log I get this:
>
> > > > >
>
> > > > > .compute-1.amazonaws.com (http://compute-1.amazonaws.com/) [Fri,
>
> > > > > 25 May 2012 20:13:57 +0000] INFO: Processing
>
> > > > > execute[set-hostname] action nothing (gridiron-deploy::default
>
> > > > > line 44) .compute-1.amazonaws.com
>
> > > > > (http://compute-1.amazonaws.com/) [Fri, 25 May 2012 20:13:57
>
> > > > > +0000] INFO: Processing file[/etc/hostname] action create
>
> > > > > (gridiron-deploy::default line 49) .compute-1.amazonaws.com
>
> > > > > (http://compute-1.amazonaws.com/) [Fri, 25 May 2012 20:13:57
>
> > > > > +0000] INFO: file[/etc/hostname] backed up to
>
> > > > > /var/chef/backup/etc/hostname.chef-20120525201357
>
> > > > > .compute-1.amazonaws.com (http://compute-1.amazonaws.com/) [Fri,
>
> > > > > 25 May 2012 20:13:57 +0000] INFO: file[/etc/hostname] contents
>
> > > > > updated
>
> > > > >
>
> > > > >
>
> > > > > But when I login to the box the hostname is not set. Inspecting
>
> > > > > /etc/hostname show its populated with the correct info and
>
> > > > > running hostname --file /etc/hostname on the box works but it
>
> > > > > seems via Chef its no go. On a local box using shef it works
>
> > > > > fine. Beside me getting hack-y and making it a bash command any
>
> > > > > ideas?
>
> > > > >
>
> > > > > Zuhaib
>
> >
>
> > Hey guys, you're only seeing this bug on resources that manage files?
>
> >
>
> > I'm pretty sure the problem is here:
>
> > https://github.com/opscode/chef/blob/master/chef/lib/chef/mixin/enforce_ownership_and_permissions.rb#L34
>
> >
>
> > Can you confirm that changing that line to
>
> >
>
> > new_resource.updated_by_last_action(true) if access_controls.modified?
>
> >
>
> > fixes it?
>
> >
>
> > Thanks in advance
>
> >
>
> > --
>
> > Dan DeLeo
>
>
>
>
>
>
>
> I committed a fix for this in master. Can you guys test and confirm it
>
> fixes your issue?
>
>
>
> Feel free to ask if you need help building chef from master.
>
>
>
> Thanks in advance,
>
>
>
> --
>
> Dan DeLeo
>
Archive powered by MHonArc 2.6.16.