Adding 'compute1' and 'compute10' leads to problems

Bug #1192771 reported by Ian Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Low
Mark T. Voelker
Grizzly
Fix Released
Low
Mark T. Voelker

Bug Description

Firstly, site.pp.example uses regexps for nodes:

node /compute10/ { ... matches compute10 }
node /compute1/ { ... matches compute1, 10, 11, 12, ...}

Secondly, the cobbler commands to add a node don't always run:

if cobbler system list | grep compute1;
 # doesn't run if compute10 has previously been installed

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

That line is intended to be changed by the user anyway, so it seems to me we could quite easily add a couple of comments to tell them they have the option to not use a regex and/or change the line so that it doesn't do so off the bat:

node 'compute10.cisco.com' {

And/or we could cuse use anchors:

node /^compute1$/

I think the original intent of using regexp's in the first place was probably to avoid having to deal with FQDN's for multihomed hosts.

Changed in openstack-cisco:
milestone: none → g.0-beta
assignee: nobody → Mark T. Voelker (mvoelker)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Michael Chapman (michaeltchapman) wrote :

This was to support testing multiple clusters on a single machine, which renames boxes to eg. compute-server-$DATE

Revision history for this message
Mark T. Voelker (mvoelker) wrote :
Changed in openstack-cisco:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.