Undefined method `os_family`

I ventured into Windows world and installed puppet on it. The host showed
up in Foreman with all it's facts but I was unable to edit the host (click
submit and nothing happens).

So I then click the Manage Host button and the extra tabs come in. Then I
realize I have no OS or provisioning templates for Windows (I'd just make
blank ones since we don't PXE boot Windows servers).

Went into operating systems and clicked the Windows 6.1 link and got an
error (which I've since lost and forgotten – something to do with
ptables). Try going into Partition Tables and can't get anything to come
up but an error relating to ptables and os_family.

So then I try backing out: Deleted the host, deleted the OS.

Still can't get into ptables. Get the following error:

undefined method `os_family' for #<Ptable:0x7f05e8ce8160>

Full Trace shows:

NoMethodError
*undefined method os_family&#39; for #&lt;Ptable:0x7f05e8ce8160&gt;* app/views/ptables/index.html.erb:14:in_app_views_ptables_index_html_erb__204685093_69831678529600_0'
app/views/ptables/index.html.erb:11:in
`_app_views_ptables_index_html_erb__204685093_69831678529600_0'
Kind of stuck now.

> I ventured into Windows world and installed puppet on it. The host showed
> up in Foreman with all it's facts but I was unable to edit the host (click
> submit and nothing happens).
>
> So I then click the Manage Host button and the extra tabs come in. Then I
> realize I have no OS or provisioning templates for Windows (I'd just make
> blank ones since we don't PXE boot Windows servers).
>
> Went into operating systems and clicked the Windows 6.1 link and got an
> error (which I've since lost and forgotten – something to do with
> ptables). Try going into Partition Tables and can't get anything to come
> up but an error relating to ptables and os_family.
>
> So then I try backing out: Deleted the host, deleted the OS.
>
> Still can't get into ptables. Get the following error:
>
> undefined method os_family&#39; for #&lt;Ptable:0x7f05e8ce8160&gt; &gt; &gt; Full Trace shows: &gt; &gt; *NoMethodError* &gt; *undefined methodos_family' for #<Ptable:0x7f05e8ce8160>*
> app/views/ptables/index.html.erb:14:in
> _app_views_ptables_index_html_erb__204685093_69831678529600_0&#39; &gt; app/views/ptables/index.html.erb:11:in &gt;_app_views_ptables_index_html_erb__204685093_69831678529600_0'
> Kind of stuck now.
>

did you migrate your db?
Ohad

··· On Wed, Jun 27, 2012 at 8:55 PM, Roger wrote:


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/dD9NgDL8zmIJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Did the migrate a few weeks ago. Since then have add over 100 hosts
without issue. This was the first Windows server to hit it though.

Run it again?

··· On Wed, Jun 27, 2012 at 2:53 PM, Ohad Levy wrote:

On Wed, Jun 27, 2012 at 8:55 PM, Roger rojspencer@gmail.com wrote:

I ventured into Windows world and installed puppet on it. The host
showed up in Foreman with all it’s facts but I was unable to edit the host
(click submit and nothing happens).

So I then click the Manage Host button and the extra tabs come in. Then
I realize I have no OS or provisioning templates for Windows (I’d just make
blank ones since we don’t PXE boot Windows servers).

Went into operating systems and clicked the Windows 6.1 link and got an
error (which I’ve since lost and forgotten – something to do with
ptables). Try going into Partition Tables and can’t get anything to come
up but an error relating to ptables and os_family.

So then I try backing out: Deleted the host, deleted the OS.

Still can’t get into ptables. Get the following error:

undefined method `os_family’ for #Ptable:0x7f05e8ce8160

Full Trace shows:

NoMethodError
*undefined method os_family' for #<Ptable:0x7f05e8ce8160>* app/views/ptables/index.html.erb:14:in_app_views_ptables_index_html_erb__204685093_69831678529600_0’
app/views/ptables/index.html.erb:11:in
`_app_views_ptables_index_html_erb__204685093_69831678529600_0’
Kind of stuck now.

did you migrate your db?
Ohad


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/dD9NgDL8zmIJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

> Did the migrate a few weeks ago. Since then have add over 100 hosts
> without issue. This was the first Windows server to hit it though.
>
> Run it again?
>
if you upgraded your foreman server, then yes.

··· On Wed, Jun 27, 2012 at 9:54 PM, Roger Spencer wrote:

On Wed, Jun 27, 2012 at 2:53 PM, Ohad Levy ohadlevy@gmail.com wrote:

On Wed, Jun 27, 2012 at 8:55 PM, Roger rojspencer@gmail.com wrote:

I ventured into Windows world and installed puppet on it. The host
showed up in Foreman with all it’s facts but I was unable to edit the host
(click submit and nothing happens).

So I then click the Manage Host button and the extra tabs come in. Then
I realize I have no OS or provisioning templates for Windows (I’d just make
blank ones since we don’t PXE boot Windows servers).

Went into operating systems and clicked the Windows 6.1 link and got an
error (which I’ve since lost and forgotten – something to do with
ptables). Try going into Partition Tables and can’t get anything to come
up but an error relating to ptables and os_family.

So then I try backing out: Deleted the host, deleted the OS.

Still can’t get into ptables. Get the following error:

undefined method `os_family’ for #Ptable:0x7f05e8ce8160

Full Trace shows:

NoMethodError
*undefined method os_family' for #<Ptable:0x7f05e8ce8160>* app/views/ptables/index.html.erb:14:in_app_views_ptables_index_html_erb__204685093_69831678529600_0’
app/views/ptables/index.html.erb:11:in
`_app_views_ptables_index_html_erb__204685093_69831678529600_0’
Kind of stuck now.

did you migrate your db?
Ohad


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/dD9NgDL8zmIJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

That did the trick.

I must have did a minor update from source and not run it.

Note to self: Update foreman – run the db:migrate

Thanks for the help.

··· On Wed, Jun 27, 2012 at 2:55 PM, Ohad Levy wrote:

On Wed, Jun 27, 2012 at 9:54 PM, Roger Spencer rojspencer@gmail.comwrote:

Did the migrate a few weeks ago. Since then have add over 100 hosts
without issue. This was the first Windows server to hit it though.

Run it again?

if you upgraded your foreman server, then yes.

On Wed, Jun 27, 2012 at 2:53 PM, Ohad Levy ohadlevy@gmail.com wrote:

On Wed, Jun 27, 2012 at 8:55 PM, Roger rojspencer@gmail.com wrote:

I ventured into Windows world and installed puppet on it. The host
showed up in Foreman with all it’s facts but I was unable to edit the host
(click submit and nothing happens).

So I then click the Manage Host button and the extra tabs come in.
Then I realize I have no OS or provisioning templates for Windows (I’d
just make blank ones since we don’t PXE boot Windows servers).

Went into operating systems and clicked the Windows 6.1 link and got an
error (which I’ve since lost and forgotten – something to do with
ptables). Try going into Partition Tables and can’t get anything to come
up but an error relating to ptables and os_family.

So then I try backing out: Deleted the host, deleted the OS.

Still can’t get into ptables. Get the following error:

undefined method `os_family’ for #Ptable:0x7f05e8ce8160

Full Trace shows:

NoMethodError
*undefined method os_family' for #<Ptable:0x7f05e8ce8160>* app/views/ptables/index.html.erb:14:in_app_views_ptables_index_html_erb__204685093_69831678529600_0’
app/views/ptables/index.html.erb:11:in
`_app_views_ptables_index_html_erb__204685093_69831678529600_0’
Kind of stuck now.

did you migrate your db?
Ohad


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/dD9NgDL8zmIJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.