Hello,

can you switch to tty2 on the discovered node (or enable ssh and
journalctl -f) and then provision, you should see two wget calls
logging all output to the system journal. You will find an error there
like 404 or 403. Try the wget command manually and investigate the
network issue.

LZ

On Sun, Feb 5, 2017 at 11:56 PM, ZS-Man <zs.man1...@gmail.com> wrote:
> Hi all,
>
> is possible use PXE-Less discovery/provisioning from remote location over
> NAT/Openvpn?
>
> In local network everythink works. USB fdi-bootable-3.3.1.iso boot, I enter
> https://FOREMANIP:8443, proxy mode. Discovery status is SUCCESS. In
> Discovery hosts I see new host, clik on Provisionin and select HostGroup.
> Host change kernel (kexec) and start instaling OS (Ubuntu) without reboot.
>
> I have remote location with OpenWRT router configured as Openvpn client, all
> remote lan traffic is routed over this vpn connection. Client boot,
> Discovery status is SUCCESS, in Discovery hosts i see new host, But after
> click on Provisioning and saving new host, nothing happens. On Foreman gui a
> see:
>
> completed - Create IPv4 DNS record for mac525400a04515.mydomain.cz
> completed - Deploy TFTP PXEGrub2 config for mac525400a04515.mydomain.cz
> completed - Deploy TFTP PXELinux config for mac525400a04515.mydomain.cz
> completed - Deploy TFTP PXEGrub config for mac525400a04515.mydomain.cz
> completed - Fetch TFTP boot files for mac525400a04515.mydomain.cz
> running - Reloading kernel on mac525400a04515.mydomain.cz
>
> Client stay on Discovery status screen.
>
> Now I testing on my laptop connected over VPN, host is kvm VM with virtual
> net: NAT.  Same problem.
>
> In production.log on server I see ERROR:
> .
> .
> .
> 2017-02-03T11:27:31 7f001834 [app] [I] Processing by TasksController#show as
> */*
> 2017-02-03T11:27:31 7f001834 [app] [I]   Parameters:
> {"id"=>"7ce38423-bc56-42cf-b523-ba12894e1b2b"}
> 2017-02-03T11:27:31 7f001834 [app] [I]   Rendered tasks/_list.html.erb
> (0.3ms)
> 2017-02-03T11:27:31 7f001834 [app] [I] Completed 200 OK in 5ms (Views: 0.6ms
> | ActiveRecord: 0.7ms)
> 2017-02-03T11:27:32 7f001834 [app] [W] Unable to perform kexec on
> mac525400a04515
>  | RestClient::InternalServerError: 500 Internal Server Error
>  |
> /usr/share/foreman/vendor/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:223:in
> `exception_with_response'
>  |
> /usr/share/foreman/vendor/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:103:in
> `return!'
> .
> .
> .
>
> On Foreman (1.14.1) I have:
> 1. Smart proxy with Template module enabled
>
> 2. One domain with two subnets:
> 172.17.129.0/23 for local network - DHCP, TFTP, DNS, Discovery proxy enabled
> 10.128.20.0/24 for remote location - TFTP, Discovery proxy enabled
>
> 3. Two HostGroup, one with local subnet, second with remote subnet
>
> 4. Host OS for provisioning Ubuntu 16.04
>
> OpenVPN server 172.17.129.5 with 10.8.0.0/24
> Foreman server 172.17.129.51
>
> What a may check/set for  PXE-Less discovery/provisioning remote host?
>
> Thanks.
>
> --
> 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.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.



-- 
Later,
  Lukas @lzap Zapletal

-- 
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.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to