Example #1
0
 def start_node():
     global conf
     nvme_config = fixtures.NvmeConfig()
     conf = nvme_config.get_node_info()
     node = model.CNode(conf)
     node.init()
     node.precheck()
     node.start()
     time.sleep(10)
     helper.port_forward(node)
Example #2
0
 def start_node():
     global conf
     global path
     nvme_config = fixtures.NvmeConfig()
     conf = nvme_config.get_node_info()
     node = model.CNode(conf)
     node.init()
     node.precheck()
     node.start()
     helper.port_forward(node)
     path = os.path.join(node.workspace.get_workspace(), ".monitor")
Example #3
0
    def start_node():
        global conf
        nvme_config = fixtures.NvmeConfig()
        conf = nvme_config.get_node_info()
        node = model.CNode(conf)
        node.init()
        node.precheck()
        node.start()
        node.wait_node_up()
        helper.port_forward(node)

        global ssh
        ssh = sshclient.SSH("127.0.0.1", "root", "root", port=2222)
        assert ssh.wait_for_host_up() is True
def start_node():
    global conf
    global path
    nvme_config = fixtures.NvmeConfig()
    conf = nvme_config.get_node_info()
    conf["compute"]["boot"] = {"boot_order": "c"}
    conf["compute"]["memory"] = {"size": 4096}
    conf["compute"]["storage_backend"] = [{
        "type":
        "lsi",
        "max_drive_per_controller":
        6,
        "drives": [{
            "size": 10,
            "model": "SATADOM",
            "serial": "20160518AA851134100",
            "file": fixtures.image
        }, {
            "format": "raw",
            "size": 1,
            "vendor": "SEAGATE",
            "product": "ST4000NM0005",
            "serial": "01234567",
            "version": "M001",
            "wwn": "0x5000C500852E2971",
            "share-rw": "true",
            "cache": "none",
            "scsi-id": 1,
            "slot_number": 0,
            "sector_size": 520,
            "file": drive_test_image
        }]
    }]
    conf["compute"]["networks"] = [{
        "bus": "pcie.0",
        "device": "e1000",
        "mac": "52:54:be:b9:77:dd",
        "network_mode": "nat",
        "network_name": "dummy0",
    }]
    node = model.CNode(conf)
    node.init()
    node.precheck()
    node.start()
    node.wait_node_up(timeout=20)
    helper.port_forward(node)
    path = os.path.join(node.workspace.get_workspace(), ".monitor")
 def start_node():
     global conf
     global path
     nvme_config = fixtures.NvmeConfig()
     conf = nvme_config.get_node_info()
     conf["compute"]["boot"] = {"boot_order": "c"}
     conf["compute"]["storage_backend"] = [{
         "type":
         "ahci",
         "max_drive_per_controller":
         6,
         "drives": [{
             "size": 40,
             "model": "SATADOM",
             "serial": "20160518AA851134100",
             "file": fixtures.image
         }]
     }, {
         "cmb_size_mb": 1,
         "size": 128,
         "lba_index": 0,
         "namespaces": 2,
         "serial": "0400001C1FFA",
         "bus": "downstream2",
         "type": "nvme",
         "oncs": "0xf"
     }, {
         "cmb_size_mb": 1,
         "size": 128,
         "lba_index": 0,
         "namespaces": 3,
         "bus": "downstream3",
         "serial": "0400001C6BB4",
         "type": "nvme",
         "oncs": "0xf"
     }]
     conf["compute"]["networks"] = [{
         "bus": "downstream1",
         "device": "e1000",
         "mac": "52:54:be:b9:77:dd",
         "network_mode": "nat",
         "network_name": "dummy0"
     }]
     conf["compute"]["pcie_topology"] = {
         "root_port": [{
             "addr": "7.0",
             "bus": "pcie.0",
             "chassis": 1,
             "device": "ioh3420",
             "id": "root_port1",
             "pri_bus": 0,
             "sec_bus": 40,
             "slot": 2
         }, {
             "addr": "8.0",
             "bus": "pcie.0",
             "chassis": 1,
             "device": "ioh3420",
             "id": "root_port2",
             "pri_bus": 0,
             "sec_bus": 60,
             "slot": 3
         }],
         "switch": [{
             "downstream": [{
                 "addr": "2.0",
                 "bus": "upstream1",
                 "chassis": 1,
                 "device": "xio3130-downstream",
                 "id": "downstream1",
                 "slot": 190,
                 "pri_bus": 41,
                 "sec_bus": 42
             }, {
                 "addr": "3.0",
                 "bus": "upstream1",
                 "chassis": 1,
                 "device": "xio3130-downstream",
                 "id": "downstream2",
                 "slot": 160,
                 "pri_bus": 41,
                 "sec_bus": 43
             }],
             "upstream": [{
                 "bus": "root_port1",
                 "device": "x3130-upstream",
                 "id": "upstream1"
             }]
         }, {
             "downstream": [{
                 "addr": "2.0",
                 "bus": "upstream2",
                 "chassis": 1,
                 "device": "xio3130-downstream",
                 "id": "downstream3",
                 "slot": 193,
                 "pri_bus": 61,
                 "sec_bus": 62
             }, {
                 "addr": "3.0",
                 "bus": "upstream2",
                 "chassis": 1,
                 "device": "xio3130-downstream",
                 "id": "downstream4",
                 "slot": 164,
                 "pri_bus": 61,
                 "sec_bus": 63
             }],
             "upstream": [{
                 "bus": "root_port2",
                 "device": "x3130-upstream",
                 "id": "upstream2"
             }]
         }]
     }
     node = model.CNode(conf)
     node.init()
     node.precheck()
     node.start()
     node.wait_node_up(timeout=5)
     helper.port_forward(node)
     path = os.path.join(node.workspace.get_workspace(), ".monitor")