Use Fabric8 Openshift on Fedora23 - NFS not mounted

36 views
Skip to first unread message

Charles Moulliard

unread,
Jan 14, 2016, 6:30:47 AM1/14/16
to fabric8
Hi,

When I create a vagrant VirtualBox on Fedora23, then the process stops when the volume is mounted using NFS

==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
Redirecting to /bin/systemctl status  nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
Redirecting to /bin/systemctl start  nfs-server.service
==> default: Mounting NFS shared folders...

Could it possible that an additional step is required (permission, ...) to mount the NFS shared folders ?

Regards

Charles

Jimmi Dyson

unread,
Jan 14, 2016, 6:38:05 AM1/14/16
to Charles Moulliard, fabric8
To use NFS with Vagrant you'll need to allow the NFS ports through your firewall. Use `sudo firewall-config` & add nfs service. Works for me.

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

Charles Moulliard

unread,
Jan 14, 2016, 7:50:25 AM1/14/16
to fabric8
I have configure nfs as such but until now without success

  systemctl enable nfs-lock.service
  systemctl enable nfs
-server.service


  systemctl start  nfs
-lock.service
  systemctl start  nfs
-server.service

  cat
>/etc/firewalld/services/mountd.xml <<EOD
<?xml version="1.0" encoding="utf-8"?>
<service>
 
<short>mountd</short>
  <description>Mount Lock Daemon</
description>
 
<port protocol="tcp" port="20048"/>
 
<port protocol="udp" port="20048"/>
</service>
EOD


  cat >/
etc/firewalld/services/rpc-bind.xml <<EOD
<?xml version="1.0" encoding="utf-8"?>
<service>
 
<short>rpc-bind</short>
  <description>Remote Procedure Call Bind</
description>
 
<port protocol="tcp" port="111"/>
 
<port protocol="udp" port="111"/>
</service>
EOD

  restorecon /
etc/firewalld/services

  firewall
-cmd --permanent --zone public --add-service mountd
  firewall
-cmd --permanent --zone public --add-service rpc-bind
  firewall
-cmd --permanent --zone public --add-service nfs
  firewall
-cmd --reload
  firewall
-cmd --list-all

-->

==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
Redirecting to /bin/systemctl status  nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
   Active: active (exited) since Thu 2016-01-14 12:27:56 CET; 1h 21min ago
 Main PID: 12482 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/nfs-server.service

Jan 14 12:27:56 localhost.localdomain systemd[1]: Starting NFS server and services...
Jan 14 12:27:56 localhost.localdomain systemd[1]: Started NFS server and services.
Jan 14 13:42:08 new-host systemd[1]: Started NFS server and services.
==> default: Mounting NFS shared folders...

Charles Moulliard

unread,
Jan 14, 2016, 7:54:06 AM1/14/16
to fabric8
Problem solved using these Firewall instructions

firewall-cmd --zone FedoraWorkstation --change-interface vboxnet0
firewall-cmd --zone FedoraWorkstation --permanent --add-service nfs
firewall-cmd --zone FedoraWorkstation --permanent --add-service rpc-bind
firewall-cmd --zone FedoraWorkstation --permanent --add-service mountd
firewall-cmd --zone FedoraWorkstation --permanent --add-port 2049/udp
firewall-cmd --reload

[root@localhost openshift] # firewall-cmd --list-all
FedoraWorkstation (default, active)
  interfaces: enp0s25 vboxnet0 wlp3s0
  sources:
  services: dhcpv6-client mdns mountd nfs rpc-bind samba-client ssh
  ports: 1025-65535/tcp 2049/udp 1025-65535/udp
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:

On Thursday, January 14, 2016 at 12:30:47 PM UTC+1, Charles Moulliard wrote:

Charles Moulliard

unread,
Jan 14, 2016, 8:32:39 AM1/14/16
to fabric8
The vagrant vm machine has been created. I can access openshift server on port 8443 and Fabric8 pod has been created 

[root@localhost openshift] # oc get services
NAME              CLUSTER_IP       EXTERNAL_IP   PORT(S)                 SELECTOR                                                 AGE
docker-registry   172.30.209.234   <none>        5000/TCP                docker-registry=default                                  25m
fabric8           172.30.66.77                   80/TCP                  group=io.fabric8.apps,project=console,provider=fabric8   29m
kubernetes        172.30.0.1       <none>        443/TCP,53/UDP,53/TCP   <none>                                                   29m
router            172.30.251.138   <none>        80/TCP,9101/TCP         router=router                                            28m
[root@localhost openshift] # oc get routes
NAME      HOST/PORT            PATH      SERVICE   LABELS             INSECURE POLICY   TLS TERMINATION
fabric8   fabric8.vagrant.f8             fabric8   provider=fabric8

but I can't access the http server at the address http://fabric8.vagrant.f8

Is there something else to configure for the Vagrant DNS server as I can't ping the HTTP Server ?

[root@localhost openshift] # ping fabric8.vagrant.f8
ping: unknown host fabric8.vagrant.f8

On Thursday, January 14, 2016 at 12:30:47 PM UTC+1, Charles Moulliard wrote:
Reply all
Reply to author
Forward
0 new messages