Butcho,

Welcome.  I’m assuming you’re referring to Crowbar 1.x ?  I don’t think
you can change the d-MAC naming scheme that’s in Crowbar 1.x.

To modify your cluster network specifications, In Crowbar 1.x you need to
modify your bc-template-network.json config file PRIOR to running the
“install” step.  The “install” process that bootstraps the admin node
reads this file and sets up the networking based on it’s contents.  This
is the *hardest* part to get right in Crowbar 1.x.  NOTE that in CB2.x
they’re changing things to make this process a lot easier.   The basic
steps (see docs referenced below for more details) are:

  * install Crowbar Admin ISO file to your Admin node
  * become root (sudo su -)
  * modify your network parameters for your Admin node after you log in
  * copy your desired “bc-template-network.json” file to:
/opt/dell/barclamps/network/chef/data_bags/crowbar/bc-template-network.json
  * cd /tftpboot/ubuntu_dvd/extra
  * ./install admin.yourdomain.com
  * etc.

If you DO NOT build you JSON config correct the first time … you have to
re-build the admin node from scratch with the new config file settings.
You’ll need to slog through the Crowbar documents at:

   https://github.com/crowbar/crowbar/wiki/User-documentation

You want the “Crowbar Deployment Guide” and the “Crowbar User’s Guide”.
UNFORTUNATELY - the “Crowbar Deployment Guide” looks to be a bad link on
this page.  Someone from the Crowbar group will have to point you to the
right one, or fix the website link.  I logged this bug a while back, but
it hasn’t been fixed yet.

I’m pasting an example of our JSON config file for reference.  Please note
I’ve changed the IP and VLAN information in the file.  This file is an
example of a fairly complex-ish, non-HA (eg “bonded” NICs) setup.  Clearly
this is more complex than you are looking for but hopefully it might help
with the configuration of your environment.

I have defined 4 OpenStack networks:

 1 - admin network for PXE boot/install/cluster management by Crowbar admin
 2 - OpenStack API/MGMT network
 3 - OpenStack Storage and Private network
 4 - OpenStack Public/Floating IP network

The “os_sdn” network is not used in our environment, but is defined in
this file.  This setup uses “eth0” as the admin network without VLAN
tagging.  It uses eth5 and eth6 (10 gbe 1 and 10 gbe 2 interfaces in the
conduit statements) with VLAN tagging enabled for the 2, 3, and 4 networks
(as listed above).  We are using the “pattern single” in the conduit
listings; as defined by the “mode: single” statement.  Our servers have a
quad port 1gbe NIC, a dual port 1gbe NIC, and a dual port 10gbe NIC, in
addition to the iDRAC interface.  So the conduit statements reflect us
having 8 NICs total in the servers; though we actively are only using 3 at
the moment.  We’ll eventually be doing bonded NICs in the future.

<<<< - - - - - - - - - - - - - - - begin bc-template-network.json file
example - - - - - - - - - - - - - - - >>>>
{
    "id": "bc-template-network",
    "description": "Instantiates interfaces on crowbar managed systems.",
    "attributes": {
        "network": {
            "start_up_delay": 30,
            "mode": "single",
            "teaming": {
                "mode": 5
            },
            "interface_map": [
                {
                    "pattern": "PowerEdge R610",
                    "bus_order": [
                        "0000:00/0000:00:01",
                        "0000:00/0000:00:03"
                    ]
                },
                {
                    "pattern": "PowerEdge R710",
                    "bus_order": [
                        "0000:00/0000:00:01",
                        "0000:00/0000:00:03"
                    ]
                },
                {
                    "pattern": "PowerEdge C6145",
                    "bus_order": [
                        "0000:00/0000:00:04",
                        "0000:00/0000:00:02"
                    ]
                },
                {
                    "pattern": "PowerEdge C2100",
                    "bus_order": [
                        "0000:00/0000:00:1c",
                        "0000:00/0000:00:07",
                        "0000:00/0000:00:09",
                        "0000:00/0000:00:01"
                    ]
                },
                {
                    "pattern": "C6100",
                    "bus_order": [
                        "0000:00/0000:00:01",
                        "0000:00/0000:00:03",
                        "0000:00/0000:00:07"
                    ]
                },
                {
                    "pattern": "product",
                    "bus_order": [
                        "0000:00/0000:00:01",
                        "0000:00/0000:00:02"
                    ]
                }
            ],
            "conduit_map": [
                {
                    "pattern": "dual/.*/.*",
                    "conduit_list": {
                        "intf0": {
                            "if_list": [ "1g1" ]
                        },
                        "intf1": {
                            "if_list": [ "1g2" ]
                        },
                        "intf2": {
                            "if_list": [ "1g3" ]

                        },
                        "intf3": {
                            "if_list": [ "1g4" ]
                        }
                    }
                },
                {
                    "pattern": "single/.*/.*",
                    "conduit_list": {
                        "intf0": {
                            "if_list": [ "1g1" ]
                        },
                        "intf1": {
                            "if_list": [ "1g2" ]
                        },
                        "intf2": {
                            "if_list": [ "1g3" ]
                        },
                        "intf3": {
                            "if_list": [ "1g4" ]
                        },
                        "intf4": {
                            "if_list": [ "1g5" ]
                        },
                        "intf5": {
                            "if_list": [ "1g6" ]
                        },
                        "intf6": {
                            "if_list": [ "10g1" ]
                        },
                        "intf7": {
                            "if_list": [ "10g2" ]
                        }
                    }
                },
                {
                    "pattern": ".*/.*/.*",
                    "conduit_list": {
                        "intf0": {
                            "if_list": [ "1g1" ]
                        },
                        "intf1": {
                            "if_list": [ "1g1" ]
                        },
                        "intf3": {
                            "if_list": [ "1g1" ]
                        },
                        "intf2": {
                            "if_list": [ "1g1" ]
                        }
                    }
                },
                {
                    "pattern": "mode/1g_adpt_count/role",
                    "conduit_list": {
                        "intf0": {
                            "if_list": [ "10g1" ]
                        },
                        "intf1": {
                            "if_list": [ "10g1" ]
                        },
                        "intf2": {
                            "if_list": [ "10g1" ]
                        }
                    }
                }
            ],
            "networks": {
                "admin": {
                    "conduit": "intf0",
                    "vlan": 101,
                    "use_vlan": false,
                    "add_bridge": false,
                    "subnet": "192.168.1.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.1.255",
                    "router": "192.168.1.1",
                    "router_pref" : 10,
                    "ranges": {
                        "admin": { "start": "192.168.1.10", "end":
"192.168.1.19" },
                        "host": { "start": "192.168.1.20", "end":
"192.168.1.199" },
                        "dhcp": { "start": "192.168.1.200", "end":
"192.168.1.240" }
                    }
                },
                "api": {
                    "conduit": "intf6",
                    "vlan": 102,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "192.168.2.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.2.255",
                    "ranges": {
                        "host": { "start": "192.168.2.10", "end":
"192.168.2.199" }
                    }
                },
                "nova_fixed": {
                    "conduit": "intf6",
                    "vlan": 103,
                    "use_vlan": true,
                    "add_bridge": true,
                    "subnet": "192.168.3.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.3.255",
                    "router": "192.168.3.1",
                    "router_pref" : 20,
                    "ranges": {
                        "router": { "start": "192.168.3.2", "end":
"192.168.3.9" },
                        "dhcp": { "start": "192.168.3.10", "end":
"192.168.3.99" }
                    }
                },
                "storage": {
                    "conduit": "intf6",
                    "vlan": 103,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "192.168.3.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.3.255",
                    "ranges": {
                        "host": { "start": "192.168.3.100", "end":
"192.168.3.199" }
                    }
                },
                "os_sdn": {
                    "conduit": "intf6",
                    "vlan": 103,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "192.168.100.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.100.255",
                    "ranges": {
                        "host": { "start": "192.168.100.10", "end":
"192.168.100.254"}
                    }
                },
                "public": {
                    "conduit": "intf7",
                    "vlan": 104,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "192.168.4.0",
                    "netmask": "255.255.255.0",
                    "broadcast": "192.168.4.255",
                    "router": "192.168.4.1",
                    "router_pref" : 5,
                    "ranges": {
                        "host": { "start": "192.168.4.65", "end":
"192.168.4.90" },
                        "dhcp": { "start": "192.168.4.91", "end":
"192.168.4.94" }
                    }
                },
                "nova_floating": {
                    "conduit": "intf7",
                    "vlan": 104,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "192.168.4.96",
                    "netmask": "255.255.255.224",
                    "broadcast": "192.168.4.127",
                    "ranges": {
                        "host": { "start": "192.168.4.97", "end":
"192.168.4.126" }
                        }
                },
                "bmc_vlan": {
                    "conduit": "intf6",
                    "vlan": 105,
                    "use_vlan": true,
                    "add_bridge": false,
                    "subnet": "10.10.10.128",
                    "netmask": "255.255.255.128",
                    "broadcast": "10.10.10.255",
                    "router": "10.10.10.129",
                    "router_pref": 15,
                    "ranges": {
                        "host": { "start": "10.10.10.222", "end":
"10.10.10.222" }
                    }
                },
                "bmc": {
                    "conduit": "bmc",
                    "vlan": 105,
                    "use_vlan": false,
                    "add_bridge": false,
                    "subnet": "10.10.10.128",
                    "netmask": "255.255.255.128",
                    "router": "10.10.10.129",
                    "router_pref": 18,
                    "broadcast": "10.10.10.255",
                    "ranges": {
                        "host": { "start": "10.10.10.161", "end":
"10.10.10.170" }
                    }
                }
            }
        }
    },
    "deployment": {
        "network": {
            "crowbar-revision": 0,
            "elements": {},
            "element_states": {
                "network": [ "readying", "ready", "applying" ]
            },
            "element_order": [
                [ "network" ]
            ],
            "config": {
                "environment": "network-base-config",
                "mode": "full",
                "transitions": true,
                "transition_list": [ "discovered", "reset", "delete" ]
            }
        }
    }
}


_______________________________________________
Crowbar mailing list
Crowbar@dell.com
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: http://crowbar.github.com/

Reply via email to