[foreman-users] Re: VMware: Can't remove NIC on VMs provisioned by Foreman

2017-02-07 Thread Erez Zarum
Yes, it's also an issue when creating a VMware Image to use for provisioning through Foreman, Fog (the library that is being used for almost all Compute Resources) makes the first boot device as the primary network interface, this allows you to "rebuild" a VMware guest that was provisioned thro

[foreman-users] Re: Foreman API Host create from image, async call

2017-01-09 Thread Erez Zarum
I have created my own version of the old "foreman-host-builder", it's not perfect, but works. https://github.com/erezzarum/foreman-host-builder On Saturday, January 7, 2017 at 11:02:09 PM UTC+2, Erez Zarum wrote: > > Is there a way to create some kind of an async call

[foreman-users] Re: Foreman (RackApp?) hangs when concurrent creation of hosts

2017-01-08 Thread Erez Zarum
8, 2017 at 8:15:35 PM UTC+2, Erez Zarum wrote: > > I have written a script that create hosts in Foreman on a VMware compute > resource (using API v2) > Looking at the logs, it manages to create DNS and DHCP records, but it > hangs when it finishes the "rendering template"

[foreman-users] Foreman (RackApp?) hangs when concurrent creation of hosts

2017-01-08 Thread Erez Zarum
I have written a script that create hosts in Foreman on a VMware compute resource (using API v2) Looking at the logs, it manages to create DNS and DHCP records, but it hangs when it finishes the "rendering template" part, Foreman no longer accept any requests until i restart apache (httpd). The

[foreman-users] Foreman API Host create from image, async call

2017-01-07 Thread Erez Zarum
Is there a way to create some kind of an async call when creating a host using the image provisioning method? The call is waiting until the build is complete. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and s

Re: [foreman-users] Re: Foreman Proxy/Puppet Run

2017-01-06 Thread Erez Zarum
. > > > > On Fri, Jan 6, 2017 at 8:21 AM, Erez Zarum > wrote: > >> Do you happen to have any specific SSH configuration on the client or the >> server side? >> Do you use FreeIPA(IPA) or have SSSD configured on the client/server? >> >> >> On

[foreman-users] Re: Foreman Proxy/Puppet Run

2017-01-06 Thread Erez Zarum
Do you happen to have any specific SSH configuration on the client or the server side? Do you use FreeIPA(IPA) or have SSSD configured on the client/server? On Thursday, December 3, 2015 at 1:53:08 PM UTC+2, James Denton wrote: > > Hello > > I am looking for some help as im finding it quite hard

[foreman-users] Re: Anyone using the pcfens/ca_cert module from the puppet forge on Foreman?

2017-01-03 Thread Erez Zarum
anything named "title" > in any of the Smart Class Parameters? > > Thanks again for your help with this. > > Ralph > > On Friday, December 23, 2016 at 8:04:32 AM UTC-5, Erez Zarum wrote: >> >> Looking at the module, the "ca_certs" smart param is being

[foreman-users] Re: Anyone using the pcfens/ca_cert module from the puppet forge on Foreman?

2016-12-23 Thread Erez Zarum
Looking at the module, the "ca_certs" smart param is being used by the "create_resources" function, you must have a title set. An example that you can put in the hash value in Foreman: default: source: "puppet:///modules/ca_cert/mycert.crt" On Wednesday, December 21, 2016 at 11:07:04 PM UTC+2,

[foreman-users] Remote Execution plugin, clear failed host

2016-12-19 Thread Erez Zarum
Is there a way to clear the status of a host who's last execution failed? -- 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+unsubscr...@googlegroups

[foreman-users] Foreman network interface facts parsed wrong

2016-12-11 Thread Erez Zarum
I was having some related issues to Bonded interfaces and VLANs which were mostly template related, i looked over a server which has a lot of Virtual devices attached and discovered that Foreman import the networking facts wrong. eth1 - a trunk without a native VLAN, MAC: 00:51:52:8f:1d:bc, no

[foreman-users] Re: Discovery, DHCP and lease conflict

2016-12-09 Thread Erez Zarum
mber 9, 2016 at 5:22:24 PM UTC+1, Erez Zarum wrote: >> >> >> 1) It doesn't inherit puppet, puppet ca and realm proxy configuration >> from the hostgroup while it does inherit the operating system related >> configuration. >> > > I hit this as well

[foreman-users] Re: Discovery, DHCP and lease conflict

2016-12-09 Thread Erez Zarum
I was actually having similar issues with it this week, another issue is using the "hammer" cli to provision the host with a specific interface configuration (i suspect it's related as we have a similar configuration) $ hammer discovery provision \ --id=80 \ --build=1 \ --enabled=1 \ --managed=1

Re: [foreman-users] Foreman issue with DNS/DHCP management, many subnet and a single provisioning interface

2016-12-09 Thread Erez Zarum
Hey, It looks like you it refuses to let you update, looking at your BIND (DNS) configuration, you define the 172.16.4.0/22 network as 172.16.4.0/24 and you try to add an address for 172.16.5.37, it's identical to having 172.16.4.0/24 only in your DHCP configuration and trying to add a static l

[foreman-users] Re: Foreman provisioning templates and unattended rendering

2016-12-07 Thread Erez Zarum
Just saw another post a few posts olders. http://projects.theforeman.org/issues/17395 On Wednesday, December 7, 2016 at 10:46:14 PM UTC+2, Erez Zarum wrote: > > When reviewing a template for a host (under the host page itself), the > host render the templates correctly. > https:/

[foreman-users] Foreman provisioning templates and unattended rendering

2016-12-07 Thread Erez Zarum
When reviewing a template for a host (under the host page itself), the host render the templates correctly. https://example.com/unattended/provision?hostname=host.example.com Using the provisioning url providing by https://example.com/unattended/PXELinux?hostname=host.example.com with a token, i

[foreman-users] Re: Error while clustering Foreman | HA Foreman & puppet

2016-11-22 Thread Erez Zarum
e.com instead of > foremandv.example.com. The reason I choose generic name so that I can > cluster the foreman servers, but foreman is running based on hostname > specific. Can you please guide me. > > Thank you > > On Tuesday, November 22, 2016 at 1:39:13 PM UTC-5, Erez Zarum wrote: >

[foreman-users] Re: Error while clustering Foreman | HA Foreman & puppet

2016-11-22 Thread Erez Zarum
You already ran the installer, then modified the answer file and replaced host1.example.com with foremandv.example.com? If you can give more details it will be much more helpful. But simple as the error state, the smart proxy is using a certificate with an CN attribute that does not match the ho

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-03 Thread Erez Zarum
eforeman.org/issues/16576 > > Do you have some hosts with high number of NICs (ipaddress facts) > reported? > > LZ > > On Thu, Nov 3, 2016 at 11:26 AM, Erez Zarum > wrote: > > It's not the terminal size issue, the format is set by the script, for > th

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-03 Thread Erez Zarum
identifier' option under Settings -> Provisioning." Then you need to > delete all the NICs from the database to get things rolling again. > > LZ > > On Wed, Nov 2, 2016 at 2:50 PM, Erez Zarum > wrote: > > Hey, > > I think you nailed it :) > > &

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-02 Thread Erez Zarum
-tracer rails objects all > > foreman-tracer rails calls all > > We must be allocating some number of objects somewhere, this should reveal > them. > > LZ > > On Wed, Nov 2, 2016 at 11:55 AM, Erez Zarum > wrote: > > This is the problem, it's seems like run

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-02 Thread Erez Zarum
field: "puppet", memory usage from 1G to 5G, a ruby instance takes 100% CPU for about a minute. Running a query with a specific field: "name = puppet", memory usage remains quite the same, small spike in CPU, returns immediately (less than a second). On Tuesday, November 1, 2

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-01 Thread Erez Zarum
I have the "theforeman/puppet" module, when i search under the "Classes" dashboard the word "puppet" it's seems to cause a very high CPU and memory starts to increase up to 6GB from almost 1GB. On Tuesday, November 1, 2016 at 5:19:36 PM UTC+2, Erez Za

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-01 Thread Erez Zarum
gt; LZ > > On Tue, Nov 1, 2016 at 11:58 AM, Erez Zarum > wrote: > > No problem, for how long you think i should have it running to give > valuable > > data to work with? > > I am running only on objects-total and objects (as you mentioned) > > >

Re: [foreman-users] Foreman WebUI Puppet dashboard Error

2016-11-01 Thread Erez Zarum
> On Tue, Nov 1, 2016 at 12:54 PM, Erez Zarum > wrote: > >> Ok, patch applied, works :) >> >> Thank you very much! >> >> >> On Tuesday, November 1, 2016 at 12:48:59 PM UTC+2, Erez Zarum wrote: >> >>> Hey Tomer, >>> I was unde

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-11-01 Thread Erez Zarum
l > > and > > foreman-tracer rails objects > > It's like "top" utility experience, pastebin the bottlenecks please. > > Thanks > > On Mon, Oct 31, 2016 at 12:00 PM, Erez Zarum > wrote: > > I have just upgraded a foreman deployment to 1.13.1

Re: [foreman-users] Foreman WebUI Puppet dashboard Error

2016-11-01 Thread Erez Zarum
Ok, patch applied, works :) Thank you very much! On Tuesday, November 1, 2016 at 12:48:59 PM UTC+2, Erez Zarum wrote: > > Hey Tomer, > I was under the impression i am the only one having it (haven't tested on > a fresh install), will track it. > > Thanks, > Erez

Re: [foreman-users] Performance degradation after upgrade from 1.9.2 to 1.12.3

2016-10-31 Thread Erez Zarum
I have just upgraded a foreman deployment to 1.13.1 from 1.12.1 and experience the same performance degradation on the foreman web app, ruby processes taking a lot of memory, no new plugins were introduced. Same as what was written above, I suddenly see ruby instances using of up to 4GB RAM/inst

[foreman-users] Re: Foreman, fog-vsphere, vCenter 6.0 how to avoid locking boot order

2016-10-05 Thread Erez Zarum
It is a known "issue" and i state "issue" as this is an expected behavior, If you provision a VM from Foreman it means you wish to control the whole life cycle of this VM, It acts the same as physical server. The boot order is set to first boot from network (PXE/etc) after it finishes the in

Re: [foreman-users] Foreman ENC and Facts

2016-09-09 Thread Erez Zarum
ying to get my head around consuming some > of the outputs from the ENC. > > Cheers, > Luke > > On Thursday, 8 September 2016 20:55:27 UTC+10, Erez Zarum wrote: >> >> You can always debug with facter >> $ facter networking.hostname networking.fqdn networking.pr

Re: [foreman-users] Foreman ENC and Facts

2016-09-08 Thread Erez Zarum
You can always debug with facter $ facter networking.hostname networking.fqdn networking.primary networking.mac networking.interfaces.eth0.mac networking.fqdn => server01.example.com networking.hostname => server01 networking.interfaces.eth0.mac => 00:50:51:8f:dg:a3 networking.mac => 00:50:51:8f:d

[foreman-users] Re: Foreman ENC and Facts

2016-09-07 Thread Erez Zarum
It's possible to make some kind of a workaround (like with everything). You have to remember that the default enc script request the YAML from Foreman using the Puppet's agent certname. If you just change the hostname it still request the YAML using the old "hostname" (certname). If you really ne

[foreman-users] Re: foreman smart-proxy puppetrun using puppetssh

2016-09-06 Thread Erez Zarum
rking :) On Sunday, September 4, 2016 at 2:04:22 PM UTC+3, Erez Zarum wrote: > > I was using an older version of Foreman (1.11.3) and to make sure i > upgraded to 1.12, made sure all settings remained the same (because of the > new puppet_proxy format). > This still happens, it

[foreman-users] Re: Provisioning using (image based) VMWare Templates

2016-09-05 Thread Erez Zarum
Hey, There is another workaround when using a dhcp server There are two options: 1) Use dhcp for all your environment (do not introduce any static configuration on the guest) 2) Use dhcp only for the provisioning part (the ssh finish script will configure the static network configuration) I have

[foreman-users] Re: foreman smart-proxy puppetrun using puppetssh

2016-09-04 Thread Erez Zarum
I was using an older version of Foreman (1.11.3) and to make sure i upgraded to 1.12, made sure all settings remained the same (because of the new puppet_proxy format). This still happens, it doesn't even reach the host itself. On Wednesday, August 31, 2016 at 11:53:51 PM UTC+3, Erez

[foreman-users] foreman smart-proxy puppetrun using puppetssh

2016-08-31 Thread Erez Zarum
A very simple setup but i can't find what is wrong I enabled DEBUG logging: D, [2016-08-31T20:45:30.656249 #1955] DEBUG -- : about to execute: ["/usr/bin/ssh", "-l", "root", "-i", "/etc/foreman-proxy/id_rsa", "", "/usr/bin/puppet agent --onetime --no-daemonize"] W, [2016-08-31T20:45:30.664957 #

Re: [foreman-users] Foreman Discovery and PXE Bootdevice

2016-06-22 Thread Erez Zarum
Hopefully i'll have some time to improve my ruby non-existence skills ;), if only it was written in python (django) it could be easier for me. But i think i figured out a few things by your reply :) Than you for the warm welcome, i'm getting foreman+puppet into our environment, I am also going t

Re: [foreman-users] Foreman Discovery and PXE Bootdevice

2016-06-21 Thread Erez Zarum
echo " * dropping some friendly aliases" echo "alias vim=vi" >> /root/.bashrc I do still think the best option (when i'll have some spare time to dig into ruby more) will be to set either through settings or through the "provision" button the option to

Re: [foreman-users] Foreman Discovery and PXE Bootdevice

2016-06-20 Thread Erez Zarum
I also use it to provision ESXi hosts, I saw the PXEless discovery option, i'm not after it. I will probably generate my own modified image as a fast workaround. The ideal will be to add an option to let the "reboot" command know we also want to set bootdev to PXE On Monday, June 20, 2016 at 3:3

[foreman-users] Foreman Discovery and PXE Bootdevice

2016-06-20 Thread Erez Zarum
My servers primary boot device is not PXE, if i provision a server with the discovery plugin (I do restart the server into PXE mode using IPMI, not from Foreman), then when i Provision the server through the Discovery plugin, The server reboots as expected but it doesn't go into PXE, Is there a