#theforeman

/

      • tbrisker has quit
      • mbacovsk_ has quit
      • wyrie_ has quit
      • josephmagen joined the channel
      • karimb has quit
      • rabbel
        It looks like foreman-installer installs postgresql server on the machine where you install Foreman - even when specifying a server that is not localhost. Is there an option in foreman-installer to disable the installation of psql server? Can't seem to find anything in the docs / manpage.
      • klaas__ has quit
      • sjagtap has quit
      • Singularity42
        dLobatog: no havent touched it since i looked at the wrong DB query
      • Dominic
        rabbel: --foreman-db-manage=false which will disable both installation and migration/seed of the DB, you're expected to do it
      • rabbel
        Dominic: 'you're expected to do it' as in I'd have to run all rake migration scripts myself after installation?
      • Dominic
        yes
      • rabbel
        Interesting. Ok, I'll leave it as is for now then :-)
      • Singularity42
        dLobatog: if I change the type in the DB it works, but then many other things fail, so I gave up. My thought was to change the query from: [WHERE `hosts`.`type` IN ('Host::Managed')] to: [WHERE `hosts`.`type` IN ('Host::Managed') OR ('Host::Discovered')]
      • rabbel
        Dominic: any plans to change this behaviour in the future?
      • Dominic
        rabbel: there's no current PR to change it
      • rabbel
        Ok, thx!
      • Singularity42
        dLobatog: the current query is looking for a type of Hosts::Managed. But since its a discovered host the type is actually Hosts::Discovered and thats where error happens I believe
      • devmodem
        rabbel: with foreman-rake commands its relatively easy to migrate+seed into another db (i've tried this with mysql, but on my test box)
      • rabbel
        devmodem: I see. Well, I'm not trying to move or migrate anything. I just ran foreman-installer with an external psql db specified. I was surprised to see the process running on the instance itself.
      • tstrachota has quit
      • mhulan46 has quit
      • devmodem
        rabbel: ah, understood now. btw, with migrate i meant running initial migrations to create tables etc.
      • tstrachota joined the channel
      • dLobatog
        Singularity42: yeah I found a few other problems , in any case, a workaround to get the right OS and templates is to create the discovered host with a hostgroup that has them
      • Singularity42
        dLobatog: oh no kidding huh. let me give that a try
      • dhlavacd joined the channel
      • sthirugn joined the channel
      • dLobatog: hmm. same issue. let me go back and double check the new hostgroup
      • jalbertson joined the channel
      • dLobatog: ya, same issue
      • dLobatog
        Singularity42: if you click on the 'resolve' button, it will say that they are not resolved, but clicking on submit works, they're assigned
      • Singularity42
        dLobatog: which is the same actions as before, but the problem is when the host gets to looking for its unattended script it will fail to find it. Let me get up to that point and make sure the error is the same.
      • lphiri joined the channel
      • veduardo joined the channel
      • mhulan46 joined the channel
      • jrist joined the channel
      • renzo joined the channel
      • alvinstarr
        I have a newly installed foreman using an on demand download policy. When trying to install a new system using my product repo I get failures that cause the install to stop. When I restart the install it goes a little bit further next time before stopping..
      • Is there a way to preload the repo?
      • Singularity42
        dLobatog: they looked similar so I thought they went hand in hand. But maybe you would know better - https://gist.github.com/anonymous/08d83bb95c741...
      • dLobatog: this only happens on hosts that cant resolve their templates before hitting submit
      • hprakash joined the channel
      • dLobatog: if I go to the host after clicking submit, as its sitting in Build: Pending Installation, and review the provisioning template, it renders fine.
      • sthirugn has quit
      • jalbertson has quit
      • gmccullough joined the channel
      • brahama joined the channel
      • hprakash has quit
      • Perumal joined the channel
      • jalbertson joined the channel
      • jbberry joined the channel
      • prestorium joined the channel
      • dhlavacd has quit
      • renzo has quit
      • jeffreylevesque joined the channel
      • jomitsch-afk is now known as jomitsch
      • Oleksandr_Shtaie joined the channel
      • dekimsey joined the channel
      • oshtaier has quit
      • Oleksandr_Shtaie has quit
      • lpramuk_ has quit
      • ranjank has quit
      • renzo joined the channel
      • karimb joined the channel
      • dekimsey has quit
      • jcalla joined the channel
      • mhulan46 has quit
      • jeffreylevesque has quit
      • jsherrill_afk is now known as jsherrill
      • ichimonji10 joined the channel
      • kTitan has quit
      • kpease joined the channel
      • omaciel joined the channel
      • discr33t joined the channel
      • sleepingkangaroo has quit
      • mhulan46 joined the channel
      • mhulan46 has quit
      • mhulan46 joined the channel
      • dhlavacd joined the channel
      • jbberry
        Anyone know what'd cause the Type field in Content Hosts to not update? should be type vmware, and CH even coorelated the Vhost it's running on: http://pasteboard.co/8W0bBHl1K.png
      • mhulan46 is now known as mhulan
      • kavita has quit
      • karimb has quit
      • shaunm joined the channel
      • Snickers has quit
      • devmodem has quit
      • karimb joined the channel
      • RobertBirnie joined the channel
      • __endy__ joined the channel
      • __endy__1 joined the channel
      • mbacovsk_ joined the channel
      • __endy__ has quit
      • igorgarciaruiz
        anyone provisioning image based vms with libvirt? the vm will say that there's nothing to boot in the hard disk
      • jalbertson has quit
      • SideAngleSide joined the channel
      • sjagtap joined the channel
      • jalbertson joined the channel
      • mhulan has quit
      • dhlavacd has quit
      • lpramuk_ joined the channel
      • brahama joined the channel
      • KAM has quit
      • shlomizadok has quit
      • gwmngilfen
        igorgarciaruiz: I use qcow base images on libvirt, seems fine. you've got a working base image that boots, right?
      • mhulan joined the channel
      • Pavo joined the channel
      • mccun934 has quit
      • lzhou joined the channel
      • igorgarciaruiz
        yes gwmngilfen:, in my case it's a .img, and the only difference I see is that the original vm has a "SATA disk" and the one created from foreman "VirtIO disk". although, not really sure whether that has anything to do
      • ahuang joined the channel
      • lzhou
        is there a way to associate a location to an activation key in katello?
      • dekimsey joined the channel
      • dhlavacd joined the channel
      • mccun934 joined the channel
      • gwmngilfen
        igorgarciaruiz: if you check the xml for the new vm, does it list the base image as a backing store correctly? should say something like <source file='/path/to/file'/>
      • although I have a feeling backing stores *have* to be QCOW
      • tstrachota has quit
      • igorgarciaruiz
        just destroyed it :). I'm going to use qcow2 and have a look at the xml
      • gwmngilfen
        sounds good, let me know ;)
      • i can dig into my foreman setup to compare notes if you still get stuck
      • akarsale has quit
      • lzhou has quit
      • Singularity42
        what else can i look into if I have ESX hosts coming back during provisioning that say "http://puppet/unattended/provision;) connection failed - Error 404" I have troubleshooted that error many times in the past, but this one I cant seem to resolve
      • ahuang_ joined the channel
      • Poornima joined the channel
      • trueneu joined the channel
      • jalbertson has quit
      • TKersten has left the channel
      • igorgarciaruiz
        thanks gwmngilfen:!. Actually, the source file lists itself, not the base image
      • gwmngilfen
        is that within a <backingstore/> element or above it?
      • if the latter, you're not using the base image at all, which sounds like a setup issue
      • mbacovsk_ has quit
      • igorgarciaruiz
        I don't see a <backingstore/> element :(. http://termbin.com/w064
      • lzhou joined the channel
      • gwmngilfen
        yeah, thats not using the base then. In foreman, go to your compute resource, images tab, edit the appropriate image you're trying to deploy - have you set "image path" ?
      • it should be the full path to the base image on the hypervisoer
      • eg i have /var/lib/libvirt/images/debian-jessie-7.0.0-3-amd64.qcow2
      • (yeah, the 7.0 is a typo :P)
      • sjagtap has quit
      • Singularity42
        along with it, the only thing I see in the production logs is - unable to find provision; template for currahee.deploy.lab.beer.town running ESXi6.0UbAutomation 6.02 - but when i render it in Foreman GUI it works fine
      • imrg joined the channel
      • imrg
        Hi
      • gwmngilfen
        Singularity42: can you get debug logs for that - disparity between sppof render and real render usually points to an orchestration error
      • *spoof
      • imrg
        Anyone can give me a hints were I can get more info on why my newly created host seem frozen on "Pending installation" step ?
      • sjagtap joined the channel
      • igorgarciaruiz
        allright. so the vm path seems to be fine, but I see that at this point the compute profile I'm using isn't matching the type of storage that the image is using. so I'll give it another go
      • gwmngilfen
        ah yeah, that could be it