Mason Turner
2013-Mar-20 13:48 UTC
[Puppet Users] How does puppetlabs-lvm determine if a filesystem is absent?
We had puppet turned off on a host for a few days, and when we turned it back on, we started seeing: (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) change from absent to present failed: Execution of ''mkfs.ext4 /dev/data_vg/foo_lv'' returned 1: mke2fs 1.41.12 (17-May-2010)#012/dev/data_vg/foo_lv is mounted; will not make a filesystem here! It''s mounted because there is already I filesystem! I had added another lv by hand, but we never messed with foo_lv. This module is working fine in our prod hosts and other dev host, so I''m not sure what is going on. I''ve tried to step through the puppet labs-lvm module to see how it determines if a filesystem is absent or present without any luck. Any pointers? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Mason Turner
2013-Mar-20 17:58 UTC
[Puppet Users] Re: How does puppetlabs-lvm determine if a filesystem is absent?
On Mar 20, 2013, at 9:48 AM, Mason Turner <opsmason@gmail.com> wrote:> We had puppet turned off on a host for a few days, and when we turned it back on, we started seeing: > > (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) change from absent to present failed: Execution of ''mkfs.ext4 /dev/data_vg/foo_lv'' returned 1: mke2fs 1.41.12 (17-May-2010)#012/dev/data_vg/foo_lv is mounted; will not make a filesystem here! > > It''s mounted because there is already I filesystem! I had added another lv by hand, but we never messed with foo_lv. This module is working fine in our prod hosts and other dev host, so I''m not sure what is going on. I''ve tried to step through the puppet labs-lvm module to see how it determines if a filesystem is absent or present without any luck. Any pointers?To answer my own question: puppet is calling mount -f --guess-fstype PATH_TO_VOLUME for whatever reason, my mount no longer takes ''--guess-fstype''. same version as everywhere else, although different checksum. This''ll be fun :/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Chuck
2013-Mar-20 22:38 UTC
[Puppet Users] Re: How does puppetlabs-lvm determine if a filesystem is absent?
You probably need to update puppet-lvm http://forge.puppetlabs.com/puppetlabs/lvm http://projects.puppetlabs.com/issues/19410#change-87203 On Wednesday, March 20, 2013 12:58:35 PM UTC-5, Mason wrote:> > On Mar 20, 2013, at 9:48 AM, Mason Turner <opsm...@gmail.com <javascript:>> > wrote: > > We had puppet turned off on a host for a few days, and when we turned it > back on, we started seeing: > > (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) > change from absent to present failed: Execution of ''mkfs.ext4 > /dev/data_vg/foo_lv'' returned 1: mke2fs 1.41.12 > (17-May-2010)#012/dev/data_vg/foo_lv is mounted; will not make a filesystem > here! > > It''s mounted because there is already I filesystem! I had added another lv > by hand, but we never messed with foo_lv. This module is working fine in > our prod hosts and other dev host, so I''m not sure what is going on. I''ve > tried to step through the puppet labs-lvm module to see how it determines > if a filesystem is absent or present without any luck. Any pointers? > > > To answer my own question: > > puppet is calling mount -f --guess-fstype PATH_TO_VOLUME > > for whatever reason, my mount no longer takes ''--guess-fstype''. same > version as everywhere else, although different checksum. This''ll be fun :/ > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Mason Turner
2013-Mar-21 00:52 UTC
Re: [Puppet Users] How does puppetlabs-lvm determine if a filesystem is absent?
Great, thank you! On Mar 20, 2013, at 6:38 PM, Chuck <csschwe@gmail.com> wrote:> You probably need to update puppet-lvm > > http://forge.puppetlabs.com/puppetlabs/lvm > > http://projects.puppetlabs.com/issues/19410#change-87203 > > > > On Wednesday, March 20, 2013 12:58:35 PM UTC-5, Mason wrote: > On Mar 20, 2013, at 9:48 AM, Mason Turner <opsm...@gmail.com> wrote: > >> We had puppet turned off on a host for a few days, and when we turned it back on, we started seeing: >> >> (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) change from absent to present failed: Execution of ''mkfs.ext4 /dev/data_vg/foo_lv'' returned 1: mke2fs 1.41.12 (17-May-2010)#012/dev/data_vg/foo_lv is mounted; will not make a filesystem here! >> >> It''s mounted because there is already I filesystem! I had added another lv by hand, but we never messed with foo_lv. This module is working fine in our prod hosts and other dev host, so I''m not sure what is going on. I''ve tried to step through the puppet labs-lvm module to see how it determines if a filesystem is absent or present without any luck. Any pointers? > > To answer my own question: > > puppet is calling mount -f --guess-fstype PATH_TO_VOLUME > > for whatever reason, my mount no longer takes ''--guess-fstype''. same version as everywhere else, although different checksum. This''ll be fun :/ > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.