Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot_policy_order_exists API is returning False for some of the boot devices that exists #52

Open
tanmayx opened this issue Jun 2, 2017 · 0 comments

Comments

@tanmayx
Copy link

tanmayx commented Jun 2, 2017

ucsm_apis version: Latest code
Python version: 2.7.12
Operating System: Win 10

Description
After setting the boot order, when try to check if the order exists, then for some boot devices, the API returns False even if it exists. Below is the code snippet and different boot devices -

What I Did

boot_devices = [
        {
            'device_name':'san',
            'device_order':'8',
            'vnic_name':'primary_san',
            'type':'primary',
            'target_type':'primary',
            'lun':'1',
            'wwn':'10:00:00:00:00:00:00:00'
        }
    ]
    boot_policy_order_set(handle=handle,
                          name='boot_policy2',
                          devices=boot_devices)
    assert_true(boot_policy_order_exists(handle=handle,
                                         name='boot_policy2',
                                         devices=boot_devices)[0])

boot devices -

boot_devices = [
        {
            'device_name':'san',
            'device_order':'9',
            'vnic_name':'secondary_san',
            'type':'secondary',
            'target_type':'secondary',
            'lun':'1',
            'wwn':'10:00:00:00:00:00:00:00'
        }
    ]
boot_devices = [
        {
            'device_name':'san',
            'device_order':'10',
            'vnic_name':'primary_san',
            'type':'primary',
            'target_type':'secondary',
            'lun':'1',
            'wwn':'10:00:00:00:00:00:00:00'
        }
    ]
boot_devices = [
        {
            'device_name':'san',
            'device_order':'11',
            'vnic_name':'secondary_san',
            'type':'secondary',
            'target_type':'primary',
            'lun':'1',
            'wwn':'10:00:00:00:00:00:00:00'
        }
    ]
boot_devices = [
        {
            'device_name':'embedded_disk',
            'device_order':'16',
            'type':'primary',
            'slot_number':'1'
        }
    ]
boot_devices = [
        {
            'device_name':'embedded_disk',
            'device_order':'16',
            'type':'secondary',
            'slot_number':'1'
        }
    ]
boot_devices = [
        {
            'device_name':'local_disk',
            'device_order':'1',
        },
        {
            'device_name': 'cd_dvd',
            'device_order': '2',
        },
        {
            'device_name': 'floppy',
            'device_order': '3',
        },
        {
            'device_name': 'virtual_drive',
            'device_order': '4',
        },
        {
            'device_name': 'cd_dvd_cimc',
            'device_order': '5',
        },
        {
            'device_name': 'hdd_cimc',
            'device_order': '6',
        },
        {
            'device_name': 'lan',
            'device_order': '7',
            'vnic_name':'primary'
        },
        {
            'device_name': 'san',
            'device_order': '8',
            'vnic_name':'primary',
            'type': 'primary',
            'target_type': 'primary',
            'lun': '1',
            'wwn': '10:00:00:00:00:00:00:00'
        },
        {
            'device_name': 'iscsi',
            'device_order': '9',
            'vnic_name': 'primary'
        },
        {
            'device_name': 'efi',
            'device_order': '10'
        }
    ]
boot_devices = [
        {
            'device_name':'local_lun',
            'device_order':'1',
            'type':'primary',
            'lun_name':'primary'
        },
        {
            'device_name': 'local_jbod',
            'device_order': '2',
            'slot_number':'1'
        },
        {
            'device_name': 'sdcard',
            'device_order': '3'
        },
        {
            'device_name': 'internal_usb',
            'device_order': '4'
        },
        {
            'device_name': 'external_usb',
            'device_order': '5'
        },
        {
            'device_name': 'embedded_lun',
            'device_order': '6'
        },
        {
            'device_name': 'embedded_disk',
            'device_order': '7',
            'type': 'primary',
            'slot_number': '1'
        }
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant