[gsoc-dev] Question - Ganeti Cluster

pranjal mittal mittal.pranjal at gmail.com
Thu Jul 4 06:52:43 UTC 2013


On Thu, Jul 4, 2013 at 12:13 PM, Justin Dugger <jldugger at osuosl.org> wrote:

> > Is such kind of a situation where multiple base domains exist on the
> same cluster, common?
>
> I don't know if it's *common*, but the OSL supports a variety of
> projects, with different domains. Sometimes they have the same naming
> scheme, unfortunately. For example, phpBB and kernel.org both had a
> host named deimos. Or, with our newer, better naming scheme, multiple
> projects have a host named lb1 running as a load balancer.
>
> Perhaps for ganeti internals we should move to a simpler system like
> 140.211-x-y.ganeti.osuosl.org, but for the moment our nodes are
> manually named.
>
> > Any idea you suggest on creating a suitable ID out of the FQDN of a node
> without a period (.), a simple example - Omitting out the period.
>
> What are permitted characters for IDs, is there a uniqueness
> constraint, and what are the IDs used for? Omitting periods has some
> easily crafted collisions: consider two hosts: www.php.bb.net and
> www.phpbb.net. If replacing periods with dashes or underscores is
> allowed, that's the simplest solution I can think of.
>

The ID generated for every node / instance are to be assigned to an html
element, for the ganeti-cluster mapping project.
Selectors in popular JS files use a "." notation  for class based selection
& # symbol for ID based selection.
So....
Something like $("#node1.example.com") turns out to be confusing for these
scripts, as it treats *node1* as the "id" and *example* & *com* as
"classes" and they don't work as expected.

Substituting . (period) with a - (hyphen) looks like a nice idea.



>
>
> On Wed, Jul 3, 2013 at 8:42 PM, pranjal mittal <mittal.pranjal at gmail.com>
> wrote:
> > Hi all,
> >
> > I had a somewhat generic question on a Ganeti Cluster also useful to my
> > Ganeti Cluster Mapping project.
> >
> > When assigning a unique ID to each node (in a graph or anywhere for that
> > matter), is it safe to assign a slug instead of the FQDN?
> > Example:
> > Can I assign the ID node1 to  node1.example.com?
> > If I do so there could be a conflict if there is a node1.foo.com on the
> same
> > cluster.
> >
> > Is such kind of a situation where multiple base domains exist on the same
> > cluster, common?
> > Any idea you suggest on creating a suitable ID out of the FQDN of a node
> > without a period (.), a simple example - Omitting out the period.
> >
> >
> >
> >
> > - Pranjal
> >
> > _______________________________________________
> > gsoc-dev mailing list
> > gsoc-dev at lists.osuosl.org
> > http://lists.osuosl.org/mailman/listinfo/gsoc-dev
> >
>



-- 
Best Regards,
Pranjal Mittal
B.Tech.  2014
Indian Institute of Technology,BHU
Varanasi, U.P,
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/gsoc-dev/attachments/20130704/5db272ac/attachment.html>


More information about the gsoc-dev mailing list