Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dynamic DNS support for EGI Federated cloud

Similar presentations


Presentation on theme: "Dynamic DNS support for EGI Federated cloud"— Presentation transcript:

1 Dynamic DNS support for EGI Federated cloud
Viet Tran (IISAS)

2 Requirement Some apps/VOs need VMs running in clouds with valid DNS hostnames ( In principle, any service hosted in cloud will need a valid DNS hostname Supports for DNS in EGI Federated cloud are very limited and fragmented Some sites have new hostname for every new VM Some have fixed hostname for each IP Some do not support at all Random, encrypted and unpredictable hostnames for services hosted in clouds Users need to reconfigure servers and clients for every start

3 EGI FedCloud wide dynamic DNS support
For users: can register hostnames and assign them to VMs: Memorable, sensible hostnames for services hosted in FedCloud Predictable, reusable hostnames for clients/servers setting, no reconfiguration of clients and servers for every start Common domains for VMs in whole federation, independent from location of VMs in FedCloud For sites: no changes, no additional support required For FedCloud: promotion of federated approach

4 DDNS command-line client
Architecture Users EGI CheckIn Authentication DDNS command-line client NS-update server Register hostnames Assign/update IPs updating DNS records BIND9 DNS server DNS server

5 Implementation NS-update server: nsupdate.info software
Open-source, available on github.com Based on stable components (django framework, standard python libraries) Server in production for free from 2014 Still active development BIND9 DNS server De-facto standard for DNS server DNS records update via RFC 2136

6 Standards and compliance
All communications between components are supported by standards: OpenID Connect between NS-update – EGI CheckIn dyndns2 between command-line client – NS-update RFC 2136 between NS-update – BIND9 server Implementation-independent All relationships are many-to-many, e.g. One NS-update server – many OpenID identity providers One NS-update server – many DNS servers (one portal for many domains) Many NS-update servers – one DNS server (many portal for one domain) Sustainable and extensible

7 Registering hostnames
Support multiple domains/subdomains Currently using subdomains from fedcloud.eu for testing Web portal with authentication via EGI CheckIn Just log in and register a hostname in an available domain Server will give error message if the hostname is occupied by other users See instruction/demo at the end of presentation

8 Assigning/updating IPs
Each registered hostname has its own secret (password) Once hostname is registered, no user credential is needed for assigning/updating IP address No user credential stored on VMs, just hostname and its own secret Very simple usage Common DDNS clients available in Linux Configuration files generated by NS-update server, just copy/paste For VMs, in most cases, it is enough to add the following command to cloud-init script “curl

9 Current status Please check up-to-date status on wiki Available functionalities: testing domain fedcloud.eu for EGI FedCloud users DNS servers setup for fedcloud.eu NS-update server deployed at Authentication via EGI CheckIn service Hostname registration via NS-update portal IP assign/update via portal or common DDNS clients

10 Usage instructions Just log into portal and follow the menu. Some screenshots are included at the end of this presentation. Typical scenario: Log into portal via EGI CheckIn (see screenshot 1 after this page) Go to “Overview” menu and click “Add host” (screenshot 2) Choose hostname, domain then “Create” (screenshot 3) Roll down and copy the update URL (screenshot 5). Note the update URL somewhere for later use Click to “Overview” again to see the new host and its IP (should be IP of your computer now) (screenshot 6). Log into your VM, run command curl with the noted update URL (from step 4) Click to “Overview” again to see the new host and its IP change to IP of your VM Try ping or ssh with the hostname to see if the IP is correctly updated to your VM Assign the hostname to your VM automatically at start by adding “curl update_URL” command into cloud-init script

11 Notes If you get an error message when logging into NS-update server via EGI CheckIn, your browser may have expired token It is problem of token in browser, not portal Just open this link in your browser to refresh the token or restart your browser and log in again NS-update server uses HTTPS protocol, hostname/secret are encrypted as data during transfer so it is secure to use the URL Portal does not store host secret in recoverable form. If you forget the host secret, you can generate new one Hostnames/IP addresses are not expired: No need to refresh IP addresses if no changes, it is enough to run once In most cases, it is enough to add the following command to cloud-init “curl to assign hostname automatically at VM start MS Windows tend to cache and remember DNS locally for longer time Try to check IP address of the hostname (host, ssh, ping commands) on Linux or flush DNS cache (“ipconfig /flushdns” with admin account)

12 Screenshot – login to portal

13 Screenshot-overview after login

14 Screenshot – register new hostname

15 Screenshot-new hostname registered

16 Screenshot – instructions for updating IPs

17 Screenshot – overview with new hostname

18 Screenshot: Edit host


Download ppt "Dynamic DNS support for EGI Federated cloud"

Similar presentations


Ads by Google