Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore ListLoad Dict Str Str Str Str Num Str Str Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Assign AttributeStore NameLoad attr Dict Str ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Dict Str Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Dict Str Num SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Call NameLoad keyword Num keyword Call NameLoad keyword Num keyword Str keyword Str keyword Num keyword Str Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad keyword Num keyword Call NameLoad keyword Num keyword Str keyword Str keyword Num keyword Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Str Index Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Num Str Dict AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str keyword Str keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore BinOpMod Str NameLoad Assign NameStore Dict NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num decorator_list decorator_list
N/A webob exc nova.api.openstack.compute pci nova.api.openstack wsgi nova context nova exception nova objects nova.objects fields nova.objects pci_device_pool nova test nova.tests.unit.api.openstack fakes nova.tests.unit.objects test_pci_device nova.tests uuidsentinel uuids N/A pci_stats N/A N/A count vendor_id product_id numa_node 3 8086 1520 1 N/A fake_compute_node N/A N/A objects ComputeNode pci_device_pools N/A N/A pci_device_pool from_pci_stats pci_stats FakeResponse N/A N/A wsgi ResponseObject N/A N/A N/A PciServerControllerTestV21 N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PciServerControllerTestV21 self setUp N/A N/A self controller N/A N/A pci PciServerController N/A N/A self fake_obj N/A server N/A addresses id name status tenant_id user_id N/A fb08 a3 ACTIVE 9a3af784c e992080ac0 N/A N/A self fake_list N/A servers N/A N/A addresses id name status tenant_id user_id N/A fb08 a3 ACTIVE 9a3af784c e992080ac N/A N/A N/A self _create_fake_instance N/A N/A N/A self _create_fake_pci_device N/A N/A N/A N/A self pci_device claim N/A self inst N/A N/A N/A N/A self pci_device allocate N/A self inst N/A _create_fake_instance N/A N/A self N/A N/A N/A N/A self inst N/A N/A objects Instance N/A N/A N/A self inst uuid N/A uuids instance N/A N/A N/A self inst pci_devices N/A N/A objects PciDeviceList N/A _create_fake_pci_device N/A N/A self N/A N/A fake_pci_device_get_by_addr N/A N/A ctxt id addr N/A N/A N/A N/A test_pci_device fake_db_dev N/A N/A ctxt N/A N/A context get_admin_context N/A N/A N/A self stub_out nova.db.pci_device_get_by_addr fake_pci_device_get_by_addr N/A N/A self pci_device N/A N/A N/A objects PciDevice get_by_dev_addr ctxt 1 a N/A test_show N/A N/A self N/A N/A fake_get_db_instance N/A N/A id N/A N/A N/A N/A self inst N/A N/A resp N/A FakeResponse N/A self fake_obj N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci/1 use_admin_context True N/A N/A N/A N/A self stubs Set req get_db_instance fake_get_db_instance N/A N/A N/A N/A self controller show req resp 1 N/A N/A N/A self assertEqual N/A N/A id 1 N/A N/A N/A resp obj N/A server N/A os-pci:pci_devices N/A test_detail N/A N/A self N/A N/A fake_get_db_instance N/A N/A id N/A N/A N/A N/A self inst N/A N/A resp N/A FakeResponse N/A self fake_list N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci/detail use_admin_context True N/A N/A N/A N/A self stubs Set req get_db_instance fake_get_db_instance N/A N/A N/A N/A self controller detail req resp N/A N/A N/A self assertEqual N/A N/A id 1 N/A N/A N/A N/A resp obj N/A servers N/A 0 N/A os-pci:pci_devices N/A N/A PciHypervisorControllerTestV21 N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PciHypervisorControllerTestV21 self setUp N/A N/A self controller N/A N/A pci PciHypervisorController N/A N/A self fake_objs N/A dict hypervisors N/A N/A dict id 1 service N/A dict id 1 host compute1 hypervisor_type xen hypervisor_version 3 hypervisor_hostname hyper1 N/A N/A self fake_obj N/A dict hypervisor N/A dict id 1 service N/A dict id 1 host compute1 hypervisor_type xen hypervisor_version 3 hypervisor_hostname hyper1 N/A test_show N/A N/A self N/A N/A fake_get_db_compute_node N/A N/A id N/A N/A N/A fake_compute_node N/A N/A req N/A N/A N/A fakes HTTPRequest blank /os-hypervisors/1 use_admin_context True N/A resp N/A FakeResponse N/A self fake_obj N/A N/A N/A N/A self stubs Set req get_db_compute_node fake_get_db_compute_node N/A N/A N/A N/A self controller show req resp 1 N/A N/A N/A self assertIn os-pci:pci_stats N/A N/A resp obj N/A hypervisor N/A N/A N/A self assertEqual N/A pci_stats N/A 0 N/A N/A N/A N/A resp obj N/A hypervisor N/A os-pci:pci_stats N/A 0 N/A test_detail N/A N/A self N/A N/A fake_get_db_compute_node N/A N/A id N/A N/A N/A fake_compute_node N/A N/A req N/A N/A N/A fakes HTTPRequest blank /os-hypervisors/detail use_admin_context True N/A resp N/A FakeResponse N/A self fake_objs N/A N/A N/A N/A self stubs Set req get_db_compute_node fake_get_db_compute_node N/A N/A N/A N/A self controller detail req resp N/A N/A N/A self assertIn os-pci:pci_stats N/A N/A N/A resp obj N/A hypervisors N/A 0 N/A N/A N/A self assertEqual N/A pci_stats N/A 0 N/A N/A N/A N/A N/A resp obj N/A hypervisors N/A 0 N/A os-pci:pci_stats N/A 0 N/A N/A PciControlletestV21 N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PciControlletestV21 self setUp N/A N/A self controller N/A N/A pci PciController N/A test_show N/A N/A self N/A N/A fake_pci_device_get_by_id N/A N/A context id N/A N/A N/A N/A test_pci_device fake_db_dev N/A N/A N/A N/A self stub_out nova.db.pci_device_get_by_id fake_pci_device_get_by_id N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci/1 use_admin_context True N/A result N/A N/A N/A self controller show req 1 N/A dist N/A pci_device N/A address compute_node_id dev_id extra_info dev_type id server_uuid label product_id status vendor_id a 1 i N/A N/A N/A fields PciDeviceType STANDARD 1 None l p available v N/A N/A N/A self assertEqual dist result N/A test_show_error_id N/A N/A self N/A N/A fake_pci_device_get_by_id N/A N/A context id N/A N/A N/A N/A N/A exception PciDeviceNotFoundById id id N/A N/A N/A N/A self stub_out nova.db.pci_device_get_by_id fake_pci_device_get_by_id N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci/0 use_admin_context True N/A N/A N/A self assertRaises N/A exc HTTPNotFound N/A N/A self controller show req 0 N/A _fake_compute_node_get_all N/A N/A self context N/A N/A N/A N/A N/A N/A objects ComputeNode id 1 service_id 1 host fake cpu_info cpu_info disk_available_least 100 N/A _fake_pci_device_get_all_by_node N/A N/A self context node N/A N/A N/A N/A N/A test_pci_device fake_db_dev N/A test_pci_device fake_db_dev_1 N/A test_index N/A N/A self N/A N/A N/A N/A N/A N/A self stubs Set N/A N/A self controller host_api compute_node_get_all N/A self _fake_compute_node_get_all N/A N/A N/A self stub_out nova.db.pci_device_get_all_by_node N/A self _fake_pci_device_get_all_by_node N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci use_admin_context True N/A result N/A N/A N/A self controller index req N/A dist N/A pci_devices N/A N/A test_pci_device fake_db_dev N/A test_pci_device fake_db_dev_1 N/A i N/A range N/A len N/A result N/A pci_devices N/A N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A vendor_id N/A N/A N/A result N/A pci_devices N/A i N/A vendor_id N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A id N/A N/A N/A result N/A pci_devices N/A i N/A id N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A status N/A N/A N/A result N/A pci_devices N/A i N/A status N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A address N/A N/A N/A result N/A pci_devices N/A i N/A address N/A test_detail N/A N/A self N/A N/A N/A N/A N/A N/A self stubs Set N/A N/A self controller host_api compute_node_get_all N/A self _fake_compute_node_get_all N/A N/A N/A self stub_out nova.db.pci_device_get_all_by_node N/A self _fake_pci_device_get_all_by_node N/A req N/A N/A N/A fakes HTTPRequest blank /os-pci/detail use_admin_context True N/A result N/A N/A N/A self controller detail req N/A dist N/A pci_devices N/A N/A test_pci_device fake_db_dev N/A test_pci_device fake_db_dev_1 N/A i N/A range N/A len N/A result N/A pci_devices N/A N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A vendor_id N/A N/A N/A result N/A pci_devices N/A i N/A vendor_id N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A id N/A N/A N/A result N/A pci_devices N/A i N/A id N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A label N/A N/A N/A result N/A pci_devices N/A i N/A label N/A N/A N/A self assertEqual N/A N/A N/A dist N/A pci_devices N/A i N/A dev_id N/A N/A N/A result N/A pci_devices N/A i N/A dev_id N/A N/A PciControllerPolicyEnforcementV21 N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PciControllerPolicyEnforcementV21 self setUp N/A N/A self controller N/A N/A pci PciController N/A N/A self req N/A N/A N/A fakes HTTPRequest blank N/A _test_policy_failed N/A N/A self action N/A args N/A N/A rule_name N/A os_compute_api:os-pci:%s action N/A rule N/A rule_name project:non_fake N/A N/A N/A N/A self policy set_rules rule N/A exc N/A N/A self assertRaises N/A exception PolicyNotAuthorized N/A getattr N/A self controller action N/A self req args N/A N/A N/A self assertEqual N/A Policy doesn't allow %s to be performed. rule_name N/A N/A exc format_message N/A test_index_policy_failed N/A N/A self N/A N/A N/A N/A N/A self _test_policy_failed index N/A test_detail_policy_failed N/A N/A self N/A N/A N/A N/A N/A self _test_policy_failed detail N/A test_show_policy_failed N/A N/A self N/A N/A N/A N/A N/A self _test_policy_failed show 1 N/A N/A