UG, I have a GPFS filesystem. I have a OpenStack private cloud. What is the best way for Nova Compute VMs to have access to data inside the GPFS filesystem? 1)Should VMs mount GPFS directly with a GPFS client? 2) Should the hypervisor mount GPFS and share to nova computes? 3) Should I create GPFS protocol servers that allow nova computes to mount of NFS? All advice is welcome. Best, Brian Marshall Virginia Tech
I think the 1st option creates the challenges both with security (e.g. do you fully trust the users of your VMs not to do bad things as root either maliciously or accidentally? how do you ensure userids are properly mapped inside the guest?) and logistically (as VMs come and go how do you automate adding them/removing them to/from the GPFS cluster). I think the 2nd option is ideal perhaps using something like 9p (http://www.linux-kvm.org/page/9p_virtio) to export filesystems from the hypervisor to the guest. I'm not sure how you would integrate this with Nova and I've heard from others that there are stability issues, but I can't comment first hand. Another option might be to NFS/CIFS export the filesystems from the hypervisor to the guests via the 169.254.169.254 metadata address although I don't know how feasible that may or may not be. The advantage to using the metadata address is it should scale well and it should take the pain out of a guest mapping an IP address to its local hypervisor using an external method. Perhaps number 3 is the best way to go, especially (arguably only) if you use kerberized NFS or SMB. That way you don't have to trust anything about the guest and you theoretically should get decent performance. I'm really curious what other folks have done on this front. -Aaron On 1/17/17 4:50 PM, Brian Marshall wrote:
UG,
I have a GPFS filesystem.
I have a OpenStack private cloud.
What is the best way for Nova Compute VMs to have access to data inside the GPFS filesystem?
1)Should VMs mount GPFS directly with a GPFS client? 2) Should the hypervisor mount GPFS and share to nova computes? 3) Should I create GPFS protocol servers that allow nova computes to mount of NFS?
All advice is welcome.
Best, Brian Marshall Virginia Tech
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I agree with Aaron on option 1, trusting users to do nothing malicious would be quite a stretch for most people’s use cases. Even if they do, if their user’s credentials getting stolen, and then used by someone else it could be a real issue as the hacker wouldn’t have to get lucky and find a VM with an un-patched root escalation vulnerability. Security aside, you’ll probably want to make sure your VMs have an external IP that is able to be reached by the GPFS cluster. We found having GPFS route through the Openstack NAT to be possible, but tricky (though this was an older version of Openstack…could be better now?). Using the external IP may be the natural way for most folks, but wanted to point it out none-the-less. We haven’t done much in regards to option 2, we’ve done work using native clients on the hypervisors to provide cinder/glance storage, but not to share other data into the VM’s. Currently use option 3 to export group’s project directories to their VMs using the CES protocol nodes. It’s getting the job done right now (have close to 100 VMs mounting from it). I would definitely recommend giving your maxFilesToCache and maxStatCache parameters a big bump from defaults on the export nodes if you weren’t planning to already (set mine at 1,000,000 on each of those). We saw that become a point of contention with our user’s workloads. That change was implemented fairly recently and so far, so good. Aaron’s point about logistics from his answer to option 1 is relevant here too, especially if you have high VM turnover rate where IP addresses are recycled and different projects are getting exported. You’ll want to keep track of VM’s and exports to prevent a new VM from picking up an old IP that has access on an export it isn’t supposed to because it hasn’t been flushed out. In our situation there are 30-40 projects, all names of them known to users who ls the project directory, wouldn’t take much for them to spin up a new VM and give them all a try. I agree this is a really interesting topic, there’s a lot of ways to come at this so hopefully more folks chime in on what they’re doing. Best, J.D. Maloney Storage Engineer | Storage Enabling Technologies Group National Center for Supercomputing Applications (NCSA) On 1/17/17, 6:47 PM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Aaron Knister" <gpfsug-discuss-bounces@spectrumscale.org on behalf of aaron.s.knister@nasa.gov> wrote: I think the 1st option creates the challenges both with security (e.g. do you fully trust the users of your VMs not to do bad things as root either maliciously or accidentally? how do you ensure userids are properly mapped inside the guest?) and logistically (as VMs come and go how do you automate adding them/removing them to/from the GPFS cluster). I think the 2nd option is ideal perhaps using something like 9p (http://www.linux-kvm.org/page/9p_virtio) to export filesystems from the hypervisor to the guest. I'm not sure how you would integrate this with Nova and I've heard from others that there are stability issues, but I can't comment first hand. Another option might be to NFS/CIFS export the filesystems from the hypervisor to the guests via the 169.254.169.254 metadata address although I don't know how feasible that may or may not be. The advantage to using the metadata address is it should scale well and it should take the pain out of a guest mapping an IP address to its local hypervisor using an external method. Perhaps number 3 is the best way to go, especially (arguably only) if you use kerberized NFS or SMB. That way you don't have to trust anything about the guest and you theoretically should get decent performance. I'm really curious what other folks have done on this front. -Aaron On 1/17/17 4:50 PM, Brian Marshall wrote: > UG, > > I have a GPFS filesystem. > > I have a OpenStack private cloud. > > What is the best way for Nova Compute VMs to have access to data inside > the GPFS filesystem? > > 1)Should VMs mount GPFS directly with a GPFS client? > 2) Should the hypervisor mount GPFS and share to nova computes? > 3) Should I create GPFS protocol servers that allow nova computes to > mount of NFS? > > All advice is welcome. > > > Best, > Brian Marshall > Virginia Tech > > > _______________________________________________ > gpfsug-discuss mailing list > gpfsug-discuss at spectrumscale.org > http://gpfsug.org/mailman/listinfo/gpfsug-discuss > -- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Another option might be to NFS/CIFS export the filesystems from the hypervisor to the guests via the 169.254.169.254 metadata address although I don't know how feasible that may or may not
Doesn't the metadata IP site on the network nodes though and not the hypervisor? We currently have created interfaces on out net nodes attached to the appropriate VLAN/VXLAN and then run CES on top of that. The problem with this is if you have the same subnet existing in two networks, then you have a problem. I had some discussion with some of the IBM guys about the possibility of using a different CES protocol group and running multiple ganesha servers (maybe a container attached to the net?) so you could then have different NFS configs on different ganesha instances with CES managing a floating IP that could exist multiple times. There were some potential issues in the way the CES HA bits work though with this approach. Simon
On 1/18/17 3:46 AM, Simon Thompson (Research Computing - IT Services) wrote:
Another option might be to NFS/CIFS export the filesystems from the hypervisor to the guests via the 169.254.169.254 metadata address although I don't know how feasible that may or may not
Doesn't the metadata IP site on the network nodes though and not the hypervisor?
Not when Neutron is in DVR mode. It is intercepted at the hypervisor and redirected to the neutron-ns-metadata-proxy. See below: [root@gpcc003 ~]# ip netns exec qrouter-bc4aa217-5128-4eec-b9af-67923dae319a iptables -t nat -nvL neutron-l3-agent-PREROUTING Chain neutron-l3-agent-PREROUTING (1 references) pkts bytes target prot opt in out source destination 19 1140 REDIRECT tcp -- qr-+ * 0.0.0.0/0 169.254.169.254 tcp dpt:80 redir ports 9697 281 12650 DNAT all -- rfp-bc4aa217-5 * 0.0.0.0/0 169.154.180.32 to:10.0.4.22 [root@gpcc003 ~]# ip netns exec qrouter-bc4aa217-5128-4eec-b9af-67923dae319a netstat -tulpn |grep 9697 tcp 0 0 0.0.0.0:9697 0.0.0.0:* LISTEN 28130/python2 [root@gpcc003 ~]# ps aux |grep 28130 neutron 28130 0.0 0.0 286508 41364 ? S Jan04 0:02 /usr/bin/python2 /bin/neutron-ns-metadata-proxy --pid_file=/var/lib/neutron/external/pids/bc4aa217-5128-4eec-b9af-67923dae319a.pid --metadata_proxy_socket=/var/lib/neutron/metadata_proxy --router_id=bc4aa217-5128-4eec-b9af-67923dae319a --state_path=/var/lib/neutron --metadata_port=9697 --metadata_proxy_user=989 --metadata_proxy_group=986 --verbose --log-file=neutron-ns-metadata-proxy-bc4aa217-5128-4eec-b9af-67923dae319a.log --log-dir=/var/log/neutron root 31220 0.0 0.0 112652 972 pts/1 S+ 11:08 0:00 grep --color=auto 28130
We currently have created interfaces on out net nodes attached to the appropriate VLAN/VXLAN and then run CES on top of that.
The problem with this is if you have the same subnet existing in two networks, then you have a problem.
I had some discussion with some of the IBM guys about the possibility of using a different CES protocol group and running multiple ganesha servers (maybe a container attached to the net?) so you could then have different NFS configs on different ganesha instances with CES managing a floating IP that could exist multiple times.
There were some potential issues in the way the CES HA bits work though with this approach.
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Jonathan Mills / jonathan.mills@nasa.gov NASA GSFC / NCCS HPC (606.2) Bldg 28, Rm. S230 / c. 252-412-5710
participants (5)
-
Aaron Knister -
Brian Marshall -
Jonathan Mills -
Maloney, John Daniel -
Simon Thompson (Research Computing - IT Services)
