def create_infrastructure_storage(config, context, dc):
    log.info("### Configuring storage ###")
    storage = InfrastructureStorage(context)
    tier = storage.configure_tiers(dc, config.get("tier", "name"))
    try:
        user = config.get("device", "user")
        password = config.get("device", "password")
    except NoOptionError:
        user = None
        password = None

    device_type = config.get("device", "type")
    device_spec = dc.findSupportedStorageDevice(
            StorageDeviceMetadataPredicates.type(device_type))

    device = storage.create_device(dc, config.get("device", "name"),
        device_spec,
        config.get("device", "address"),
        config.get("device", "address"),
        user, password)

    storage.create_pool(device, tier, config.get("pool", "name"))
Creates the default infrastructure storage entities
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/environment/infrastructure/storage.py/create_infrastructure_storage