Compute resuorce

Hi @all,

I've tried to integrate some ESXi hosts into foreman. Unfortunately this
wasn't really successful. Most ESXi servers could be tested but using them
gives an error message like this:

There was an error listing VMs: No route matches {:action=>"show",
:controller=>"compute_resources_vms",
:compute_resource_id=>#<Foreman::Model::Vmware id: 3, name:
"vmware14.example.local", description: "VMware ESXi server", url:
"vmware14.example.local", user: "root", password: "s3cret", uuid:
"ha-datacenter", type: "Foreman::Model::Vmware", created_at: "2013-07-15
08:04:21", updated_at: "2013-07-15 08:32:22", attrs:
{:pubkey_hash=>"657ba813113d122ec04b9362f2f5e351e54d89aae7f6f5e6ea29b91c29bed5fe"}>,
:id=>""}

I tried to troubleshoot the problem but didn't find any logs helpful to
investigate the problem. My foreman platform is Scientific 6.4 with foreman
1.2.1 on top from the standard yum repository. Any ideas?

Regards Thomas

··· -- Linux ... enjoy the ride!

Thomas,

can you be more specific what you mean by "could be tested" and "using
them"?

We have a foreman-debug command that collects all the logs and creates a
tarball which can be uploaded for investigation. It filters out
passwords/tokens. You can use it if you want.

LZ

··· On Thu, Aug 29, 2013 at 10:31:38AM +0200, Thomas Bendler wrote: > Hi @all, > > I've tried to integrate some ESXi hosts into foreman. Unfortunately this > wasn't really successful. Most ESXi servers could be tested but using them > gives an error message like this: > > There was an error listing VMs: No route matches {:action=>"show", > :controller=>"compute_resources_vms", > :compute_resource_id=># "vmware14.example.local", description: "VMware ESXi server", url: > "vmware14.example.local", user: "root", password: "s3cret", uuid: > "ha-datacenter", type: "Foreman::Model::Vmware", created_at: "2013-07-15 > 08:04:21", updated_at: "2013-07-15 08:32:22", attrs: > {:pubkey_hash=>"657ba813113d122ec04b9362f2f5e351e54d89aae7f6f5e6ea29b91c29bed5fe"}>, > :id=>""} > > I tried to troubleshoot the problem but didn't find any logs helpful to > investigate the problem. My foreman platform is Scientific 6.4 with foreman > 1.2.1 on top from the standard yum repository. Any ideas? > > Regards Thomas > -- > Linux ... enjoy the ride! > > -- > 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/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

> Hi @all,
>
> I've tried to integrate some ESXi hosts into foreman. Unfortunately this
> wasn't really successful. Most ESXi servers could be tested but using them
> gives an error message like this:
>
> There was an error listing VMs: No route matches {:action=>"show",
> :controller=>"compute_resources_vms",
> :compute_resource_id=>#<Foreman::Model::Vmware id: 3, name:
> "vmware14.example.local", description: "VMware ESXi server", url:
> "vmware14.example.local", user: "root", password: "s3cret", uuid:
> "ha-datacenter", type: "Foreman::Model::Vmware", created_at: "2013-07-15
> 08:04:21", updated_at: "2013-07-15 08:32:22", attrs:
> {:pubkey_hash=>"657ba813113d122ec04b9362f2f5e351e54d89aae7f6f5e6ea29b91c29bed5fe"}>,
> :id=>""}
>
> I tried to troubleshoot the problem but didn't find any logs helpful to
> investigate the problem. My foreman platform is Scientific 6.4 with foreman
> 1.2.1 on top from the standard yum repository. Any ideas?
>
>
where does this happens? can you provide the full trace / logs?

thanks,
Ohad

··· On Thu, Aug 29, 2013 at 11:31 AM, Thomas Bendler wrote:

Regards Thomas

Linux … enjoy the ride!


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/groups/opt_out.

Hi Lukas, hi Ohad,

that sounds good, is there a documentation how to use the debug tool?

With testing I mean, when I create a compute resource and I enter server,
user, password, etc. pp., there is a button "test connection" which reply
the (I guess default) datacenter. This test is working and I got a
datacenter replied. The error itself occur when I enter the compute
resource overview page, select a compute resource and switch to the virtual
machine tab.

Could it be that this is related to the versions of ESXi and (correct me if
I'm wrong) the underlying fog library?

Regards Thomas

··· 2013/8/29 Lukas Zapletal

Thomas,

can you be more specific what you mean by “could be tested” and “using
them”?

We have a foreman-debug command that collects all the logs and creates a
tarball which can be uploaded for investigation. It filters out
passwords/tokens. You can use it if you want.

LZ

On Thu, Aug 29, 2013 at 10:31:38AM +0200, Thomas Bendler wrote:

Hi @all,

I’ve tried to integrate some ESXi hosts into foreman. Unfortunately this
wasn’t really successful. Most ESXi servers could be tested but using
them
gives an error message like this:

There was an error listing VMs: No route matches {:action=>“show”,
:controller=>“compute_resources_vms”,
:compute_resource_id=>#<Foreman::Model::Vmware id: 3, name:
“vmware14.example.local”, description: “VMware ESXi server”, url:
“vmware14.example.local”, user: “root”, password: “s3cret”, uuid:
“ha-datacenter”, type: “Foreman::Model::Vmware”, created_at: “2013-07-15
08:04:21”, updated_at: “2013-07-15 08:32:22”, attrs:

{:pubkey_hash=>“657ba813113d122ec04b9362f2f5e351e54d89aae7f6f5e6ea29b91c29bed5fe”}>,

:id=>""}

I tried to troubleshoot the problem but didn’t find any logs helpful to
investigate the problem. My foreman platform is Scientific 6.4 with
foreman
1.2.1 on top from the standard yum repository. Any ideas?

Regards Thomas

Linux … enjoy the ride!


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/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman


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/groups/opt_out.


performance, security, automation, SAP
cimt consulting ag, Burchardstrasse 17, 20095 Hamburg
fon: +49 (163) 6081 302, fax: +49 (40) 5 33 02-22, web: www.cimt.de
key: FED7C867 at wwwkeys.de.pgp.net

Sitz der Gesellschaft: Hamburg, Amtsgericht Hamburg, HRB 74173
Vorstand: Christoph Friedlaender, Dr.-Ing. Thorsten Kuhlmann
Vorsitzender des Aufsichtsrats: Christian Gottsmann

> Hi Lukas, hi Ohad,
>
> that sounds good, is there a documentation how to use the debug tool?

foreman-debug <ENTER>

> With testing I mean, when I create a compute resource and I enter server,
> user, password, etc. pp., there is a button "test connection" which reply
> the (I guess default) datacenter. This test is working and I got a
> datacenter replied. The error itself occur when I enter the compute
> resource overview page, select a compute resource and switch to the virtual
> machine tab.

> Could it be that this is related to the versions of ESXi and (correct me if
> I'm wrong) the underlying fog library?

Okay, which version of VMWare do you use?

This is Foreman 1.2.1 right?

LZ

··· On Thu, Aug 29, 2013 at 11:42:02AM +0200, Thomas Bendler wrote:


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Hi Lukas,

··· 2013/8/29 Lukas Zapletal

​[…]​

Okay, which version of VMWare do you use?
This is Foreman 1.2.1 right?

​the Foreman Version is 1.2.1, the ESXi Version is 4 dot something.

Regards Thomas​

Okay, thanks.

Without further log information, we are unable to help.

LZ

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

I will collect the information when I have access again but I have to
anonymize some logs before posting it (like IPs and hostnames).

Regards Thomas

··· 2013/8/30 Lukas Zapletal

Okay, thanks.

Without further log information, we are unable to help.

LZ


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman


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/groups/opt_out.


performance, security, automation, SAP
cimt consulting ag, Burchardstrasse 17, 20095 Hamburg
fon: +49 (163) 6081 302, fax: +49 (40) 5 33 02-22, web: www.cimt.de
key: FED7C867 at wwwkeys.de.pgp.net

Sitz der Gesellschaft: Hamburg, Amtsgericht Hamburg, HRB 74173
Vorstand: Christoph Friedlaender, Dr.-Ing. Thorsten Kuhlmann
Vorsitzender des Aufsichtsrats: Christian Gottsmann