Adding puppet classes to new host

Running Katello 2.1 ; Foreman 1.7.2

When I create a new host and click on the "Puppet Classes" tab, I get a
message: "WARNING! Please select an environment first". Yet on the front
page, the environment is set to "production".

After the host is provisioned, I can edit it and add classes just fine.

What am I doing wrong?

That sounds like you're following the expected workflow, but not
getting the right results.
Normally when you select an environment, it will automatically load
available Puppet classes in the Puppet classes tab.

I'm thinking (maybe I'm wrong and there is a bug) that you haven't
imported any Puppet classes into that environment, and that's why they
don't show up.
The classes might have been imported after the Host was created and
hence you're able to add them when you edit the Host but not at
creation time.

Let us know if that's the case and you repeatedly hit the issue, and
if so open a bug here too - Issues - Foreman
thanks!

··· On Thu, Feb 26, 2015 at 10:53 PM, Bryce L Nordgren wrote: > Running Katello 2.1 ; Foreman 1.7.2 > > When I create a new host and click on the "Puppet Classes" tab, I get a > message: "WARNING! Please select an environment first". Yet on the front > page, the environment is set to "production". > > After the host is provisioned, I can edit it and add classes just fine. > > What am I doing wrong? > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

The puppet classes are available prior to host creation, and it seems to
always happen. I have not yet encountered a set of conditions which
displays the puppet classes on the "Puppet Classes" tab of the host
creation page.

I made a ticket here: Bug #9609: Cannot assign puppet classes to new host - Katello - Foreman

The workaround is pretty simple: just create the host with no classes, then
add classes later. It just seems that if it's going to be a tab on the host
creation page, it should work.

Thanks for your time.
Bryce

··· On Sun, Mar 1, 2015 at 12:33 AM, Daniel Lobato wrote:

That sounds like you’re following the expected workflow, but not
getting the right results.
Normally when you select an environment, it will automatically load
available Puppet classes in the Puppet classes tab.

I’m thinking (maybe I’m wrong and there is a bug) that you haven’t
imported any Puppet classes into that environment, and that’s why they
don’t show up.
The classes might have been imported after the Host was created and
hence you’re able to add them when you edit the Host but not at
creation time.

Let us know if that’s the case and you repeatedly hit the issue, and
if so open a bug here too - Issues - Foreman
thanks!

On Thu, Feb 26, 2015 at 10:53 PM, Bryce L Nordgren bnordgren@gmail.com > wrote:

Running Katello 2.1 ; Foreman 1.7.2

When I create a new host and click on the “Puppet Classes” tab, I get a
message: “WARNING! Please select an environment first”. Yet on the front
page, the environment is set to “production”.

After the host is provisioned, I can edit it and add classes just fine.

What am I doing wrong?


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

If you click on new Host, then choose a Host group which makes the
Host use the Host group environment, do you see the classes on the
Puppet classes tab? Are you using any plugins? I think I might be
hitting the same bug but only when I use Katello and Foreman.

··· On Mon, Mar 2, 2015 at 8:37 PM, Bryce L Nordgren wrote: > The puppet classes are available prior to host creation, and it seems to > always happen. I have not yet encountered a set of conditions which displays > the puppet classes on the "Puppet Classes" tab of the host creation page. > > I made a ticket here: http://projects.theforeman.org/issues/9609 > > The workaround is pretty simple: just create the host with no classes, then > add classes later. It just seems that if it's going to be a tab on the host > creation page, it should work. > > Thanks for your time. > Bryce > > On Sun, Mar 1, 2015 at 12:33 AM, Daniel Lobato wrote: >> >> That sounds like you're following the expected workflow, but not >> getting the right results. >> Normally when you select an environment, it will automatically load >> available Puppet classes in the Puppet classes tab. >> >> I'm thinking (maybe I'm wrong and there is a bug) that you haven't >> imported any Puppet classes into that environment, and that's why they >> don't show up. >> The classes might have been imported after the Host was created and >> hence you're able to add them when you edit the Host but not at >> creation time. >> >> Let us know if that's the case and you repeatedly hit the issue, and >> if so open a bug here too - http://projects.theforeman.org/issues/ >> thanks! >> >> On Thu, Feb 26, 2015 at 10:53 PM, Bryce L Nordgren >> wrote: >> > Running Katello 2.1 ; Foreman 1.7.2 >> > >> > When I create a new host and click on the "Puppet Classes" tab, I get a >> > message: "WARNING! Please select an environment first". Yet on the front >> > page, the environment is set to "production". >> > >> > After the host is provisioned, I can edit it and add classes just fine. >> > >> > What am I doing wrong? >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Foreman users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to foreman-users+unsubscribe@googlegroups.com. >> > To post to this group, send email to foreman-users@googlegroups.com. >> > Visit this group at http://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Daniel Lobato >> >> @elobatoss >> blog.daniellobato.me >> daniellobato.me >> >> GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

> If you click on new Host, then choose a Host group which makes the
> Host use the Host group environment, do you see the classes on the
> Puppet classes tab? Are you using any plugins? I think I might be
> hitting the same bug but only when I use Katello and Foreman.
>

I haven't set up any host groups yet, so I can't help. Initial feedback on
the ticket seems to indicate that the problem is likely related to how
Katello extends the new host form.

Aside from the plugins that Katello adds, I added compute resource plugins
"compute", "ovirt", and "libvirt". However, as of now I've only configured
"compute".

Hope this helps.
Bryce

··· On Mon, Mar 2, 2015 at 5:04 PM, Daniel Lobato wrote:

On Mon, Mar 2, 2015 at 8:37 PM, Bryce L Nordgren bnordgren@gmail.com > wrote:

The puppet classes are available prior to host creation, and it seems to
always happen. I have not yet encountered a set of conditions which
displays
the puppet classes on the “Puppet Classes” tab of the host creation page.

I made a ticket here: Bug #9609: Cannot assign puppet classes to new host - Katello - Foreman

The workaround is pretty simple: just create the host with no classes,
then
add classes later. It just seems that if it’s going to be a tab on the
host
creation page, it should work.

Thanks for your time.
Bryce

On Sun, Mar 1, 2015 at 12:33 AM, Daniel Lobato elobatocs@gmail.com > wrote:

That sounds like you’re following the expected workflow, but not
getting the right results.
Normally when you select an environment, it will automatically load
available Puppet classes in the Puppet classes tab.

I’m thinking (maybe I’m wrong and there is a bug) that you haven’t
imported any Puppet classes into that environment, and that’s why they
don’t show up.
The classes might have been imported after the Host was created and
hence you’re able to add them when you edit the Host but not at
creation time.

Let us know if that’s the case and you repeatedly hit the issue, and
if so open a bug here too - Issues - Foreman
thanks!

On Thu, Feb 26, 2015 at 10:53 PM, Bryce L Nordgren <bnordgren@gmail.com > > > >> wrote:

Running Katello 2.1 ; Foreman 1.7.2

When I create a new host and click on the “Puppet Classes” tab, I get
a

message: “WARNING! Please select an environment first”. Yet on the
front

page, the environment is set to “production”.

After the host is provisioned, I can edit it and add classes just
fine.

What am I doing wrong?


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an

email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.