2025-11-24 18:29:41,840 - INFO - Domain Default found not creating
2025-11-24 18:29:42,022 - INFO - Project ctest-TestBasicPolicy-55904996 not found, creating it
2025-11-24 18:29:42,486 - INFO - Created Project:ctest-TestBasicPolicy-55904996, ID : 5bf61689-1271-4b0c-a14d-d88724156cf1
2025-11-24 18:29:43,915 - INFO - ================================================================================
2025-11-24 18:29:43,915 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 18:29:43,916 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-11-24 18:29:44,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-11-24 18:29:44,170 - INFO - Initial checks done. Running the testcase now
2025-11-24 18:29:44,170 - INFO -
2025-11-24 18:29:44,758 - DEBUG - Response for create_network : {'network': {'id': 'aefd3649-f6b5-4bce-b2ad-0edd74e70fe2', 'name': 'ctest-vn-72926008', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'project_id': '5bf6168912714b0ca14dd88724156cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-vn-72926008'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:29:44,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c9d8ee5-a00c-4137-86b4-5d4b34913ead', 'name': '', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'network_id': 'aefd3649-f6b5-4bce-b2ad-0edd74e70fe2', 'ip_version': 4, 'cidr': '114.91.176.64/26', 'allocation_pools': [{'start': '114.91.176.66', 'end': '114.91.176.126'}], 'gateway_ip': '114.91.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.91.176.66', 'tags': [], 'project_id': '5bf6168912714b0ca14dd88724156cf1'}}
2025-11-24 18:29:44,966 - INFO - Created VN ctest-vn-72926008
2025-11-24 18:29:45,018 - DEBUG - VN ctest-vn-72926008 UUID is aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:45,323 - DEBUG - Response for create_network : {'network': {'id': 'cfd4113c-c07b-4434-ae0c-0b9617e4a709', 'name': 'ctest-vn-08873199', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'project_id': '5bf6168912714b0ca14dd88724156cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-vn-08873199'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:29:45,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '62dd8cd0-bc3d-46e7-955d-8a360999429c', 'name': '', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'network_id': 'cfd4113c-c07b-4434-ae0c-0b9617e4a709', 'ip_version': 4, 'cidr': '144.228.44.64/26', 'allocation_pools': [{'start': '144.228.44.66', 'end': '144.228.44.126'}], 'gateway_ip': '144.228.44.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.228.44.66', 'tags': [], 'project_id': '5bf6168912714b0ca14dd88724156cf1'}}
2025-11-24 18:29:45,522 - INFO - Created VN ctest-vn-08873199
2025-11-24 18:29:45,573 - DEBUG - VN ctest-vn-08873199 UUID is cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:45,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-11-24 18:29:46,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aefd3649-f6b5-4bce-b2ad-0edd74e70fe2', 'name': 'ctest-vn-72926008', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'project_id': '5bf6168912714b0ca14dd88724156cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c9d8ee5-a00c-4137-86b4-5d4b34913ead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-vn-72926008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-policy-allow-all-94331100']], 'subnet_ipam': [{'subnet_cidr': '114.91.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:29:46,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfd4113c-c07b-4434-ae0c-0b9617e4a709', 'name': 'ctest-vn-08873199', 'tenant_id': '5bf6168912714b0ca14dd88724156cf1', 'project_id': '5bf6168912714b0ca14dd88724156cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62dd8cd0-bc3d-46e7-955d-8a360999429c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-vn-08873199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-policy-allow-all-94331100']], 'subnet_ipam': [{'subnet_cidr': '144.228.44.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:29:46,398 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 18:29:46,694 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 18:29:46,722 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4
2025-11-24 18:29:46,733 - DEBUG - Requesting: http://10.0.0.33:8082/project/5bf61689-1271-4b0c-a14d-d88724156cf1
2025-11-24 18:29:46,804 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,813 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,823 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7428e1a2-39f7-43b1-9a02-0f08d7bc7c07
2025-11-24 18:29:46,830 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7428e1a2-39f7-43b1-9a02-0f08d7bc7c07
2025-11-24 18:29:46,836 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dfa37a01-3be9-473b-93ee-1efbaf6c27e3
2025-11-24 18:29:46,842 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:29:46,842 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,850 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7428e1a2-39f7-43b1-9a02-0f08d7bc7c07
2025-11-24 18:29:46,864 - INFO - Verified VN network id 11 for VN aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,864 - INFO - Verifications in API Server for VN ctest-vn-72926008 passed
2025-11-24 18:29:46,864 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,872 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7428e1a2-39f7-43b1-9a02-0f08d7bc7c07
2025-11-24 18:29:46,878 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7428e1a2-39f7-43b1-9a02-0f08d7bc7c07
2025-11-24 18:29:46,884 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dfa37a01-3be9-473b-93ee-1efbaf6c27e3
2025-11-24 18:29:46,893 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55904996', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12609294223006845902', 'uuid-lslong': '12874963254033977314'}, 'enable': 'true', 'created': '2025-11-24T18:29:44', 'last-modified': '2025-11-24T18:29:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909044'}
2025-11-24 18:29:46,899 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:29:46,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72926008 passed
2025-11-24 18:29:46,901 - DEBUG - ====Verifying policy data for ctest-vn-72926008 in API_Server ======
2025-11-24 18:29:46,901 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 18:29:46,906 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4
2025-11-24 18:29:46,916 - DEBUG - Requesting: http://10.0.0.33:8082/project/5bf61689-1271-4b0c-a14d-d88724156cf1
2025-11-24 18:29:46,983 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aefd3649-f6b5-4bce-b2ad-0edd74e70fe2
2025-11-24 18:29:46,991 - DEBUG - ==>Verifying data for policy with id: 9f29e745-c243-4bf3-834d-0d861a67124e, fqn: ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-policy-allow-all-94331100']
2025-11-24 18:29:46,991 - INFO - VN ctest-vn-72926008 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:29:46,991 - DEBUG - Verifying the vn in opserver
2025-11-24 18:29:46,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008 virtual network link through opserver 10.0.0.33
2025-11-24 18:29:46,992 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 18:29:47,283 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 18:29:47,346 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008?flat'}
2025-11-24 18:29:47,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-72926008 is found in opserver
2025-11-24 18:29:47,354 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:29:47,358 - DEBUG - VRF ids for VN ctest-vn-72926008: {}
2025-11-24 18:29:47,358 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 18:29:47,363 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4
2025-11-24 18:29:47,372 - DEBUG - Requesting: http://10.0.0.33:8082/project/5bf61689-1271-4b0c-a14d-d88724156cf1
2025-11-24 18:29:47,440 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,449 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57bd0a0d-b319-45f2-b090-f89ca5baf541
2025-11-24 18:29:47,463 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57bd0a0d-b319-45f2-b090-f89ca5baf541
2025-11-24 18:29:47,468 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3849db59-3ade-486d-806f-4531877747e3
2025-11-24 18:29:47,473 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:29:47,473 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,481 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57bd0a0d-b319-45f2-b090-f89ca5baf541
2025-11-24 18:29:47,492 - INFO - Verified VN network id 12 for VN cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,492 - INFO - Verifications in API Server for VN ctest-vn-08873199 passed
2025-11-24 18:29:47,492 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,499 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57bd0a0d-b319-45f2-b090-f89ca5baf541
2025-11-24 18:29:47,505 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57bd0a0d-b319-45f2-b090-f89ca5baf541
2025-11-24 18:29:47,511 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3849db59-3ade-486d-806f-4531877747e3
2025-11-24 18:29:47,520 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55904996', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14975613613538755636', 'uuid-lslong': '12541411801593849609'}, 'enable': 'true', 'created': '2025-11-24T18:29:45', 'last-modified': '2025-11-24T18:29:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316370'}
2025-11-24 18:29:47,527 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:29:47,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08873199 passed
2025-11-24 18:29:47,527 - DEBUG - ====Verifying policy data for ctest-vn-08873199 in API_Server ======
2025-11-24 18:29:47,527 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 18:29:47,532 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4
2025-11-24 18:29:47,543 - DEBUG - Requesting: http://10.0.0.33:8082/project/5bf61689-1271-4b0c-a14d-d88724156cf1
2025-11-24 18:29:47,610 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cfd4113c-c07b-4434-ae0c-0b9617e4a709
2025-11-24 18:29:47,618 - DEBUG - ==>Verifying data for policy with id: 9f29e745-c243-4bf3-834d-0d861a67124e, fqn: ['default-domain', 'ctest-TestBasicPolicy-55904996', 'ctest-policy-allow-all-94331100']
2025-11-24 18:29:47,618 - INFO - VN ctest-vn-08873199 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:29:47,618 - DEBUG - Verifying the vn in opserver
2025-11-24 18:29:47,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199 virtual network link through opserver 10.0.0.33
2025-11-24 18:29:47,618 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 18:29:47,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199?flat'}
2025-11-24 18:29:47,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55904996:ctest-vn-08873199 is found in opserver
2025-11-24 18:29:47,635 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:29:47,639 - DEBUG - VRF ids for VN ctest-vn-08873199: {}
2025-11-24 18:29:47,705 - DEBUG - Services list from nova: [