2025-07-23 00:14:10,447 - INFO - Domain Default found not creating
2025-07-23 00:14:10,620 - INFO - Project ctest-TestBasicPolicy-15589075 not found, creating it
2025-07-23 00:14:11,155 - INFO - Created Project:ctest-TestBasicPolicy-15589075, ID : e2b99acd-c709-4e03-b1e0-665b7e1188ca
2025-07-23 00:14:12,743 - INFO - ================================================================================
2025-07-23 00:14:12,743 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 00:14:12,743 - 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-07-23 00:14:13,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-23 00:14:13,006 - INFO - Initial checks done. Running the testcase now
2025-07-23 00:14:13,006 - INFO -
2025-07-23 00:14:13,614 - DEBUG - Response for create_network : {'network': {'id': 'a0c4ad77-dc8a-4b81-8013-78335920ee70', 'name': 'ctest-vn-80018319', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-vn-80018319'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 00:14:13,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '6442da10-84f1-47f3-af19-a235b30e2f44', 'name': '', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'network_id': 'a0c4ad77-dc8a-4b81-8013-78335920ee70', 'ip_version': 4, 'cidr': '66.156.15.64/26', 'allocation_pools': [{'start': '66.156.15.66', 'end': '66.156.15.126'}], 'gateway_ip': '66.156.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.156.15.66', 'tags': [], 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca'}}
2025-07-23 00:14:13,845 - INFO - Created VN ctest-vn-80018319
2025-07-23 00:14:13,902 - DEBUG - VN ctest-vn-80018319 UUID is a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:14,224 - DEBUG - Response for create_network : {'network': {'id': '3721f5f3-7a52-4702-878e-eb0dd9442a64', 'name': 'ctest-vn-06921781', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-vn-06921781'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 00:14:14,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d89a320-6f18-4e69-b27e-1f865fc2c8ee', 'name': '', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'network_id': '3721f5f3-7a52-4702-878e-eb0dd9442a64', 'ip_version': 4, 'cidr': '190.40.151.128/26', 'allocation_pools': [{'start': '190.40.151.130', 'end': '190.40.151.190'}], 'gateway_ip': '190.40.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.40.151.130', 'tags': [], 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca'}}
2025-07-23 00:14:14,488 - INFO - Created VN ctest-vn-06921781
2025-07-23 00:14:14,542 - DEBUG - VN ctest-vn-06921781 UUID is 3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:14,677 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319, 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-15589075:ctest-vn-06921781, 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-07-23 00:14:15,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0c4ad77-dc8a-4b81-8013-78335920ee70', 'name': 'ctest-vn-80018319', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6442da10-84f1-47f3-af19-a235b30e2f44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-vn-80018319'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-policy-allow-all-13664634']], 'subnet_ipam': [{'subnet_cidr': '66.156.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 00:14:15,271 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3721f5f3-7a52-4702-878e-eb0dd9442a64', 'name': 'ctest-vn-06921781', 'tenant_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'project_id': 'e2b99acdc7094e03b1e0665b7e1188ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d89a320-6f18-4e69-b27e-1f865fc2c8ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-vn-06921781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-policy-allow-all-13664634']], 'subnet_ipam': [{'subnet_cidr': '190.40.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 00:14:15,450 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 00:14:15,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 00:14:15,781 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296
2025-07-23 00:14:15,795 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2b99acd-c709-4e03-b1e0-665b7e1188ca
2025-07-23 00:14:15,874 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:15,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:15,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf0c02c-1a25-4b0e-a890-4f3a84d152eb
2025-07-23 00:14:15,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf0c02c-1a25-4b0e-a890-4f3a84d152eb
2025-07-23 00:14:15,920 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1590f972-7934-46ac-8bfc-45dd57ff947d
2025-07-23 00:14:15,929 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 00:14:15,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:15,940 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf0c02c-1a25-4b0e-a890-4f3a84d152eb
2025-07-23 00:14:15,958 - INFO - Verified VN network id 10 for VN a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:15,958 - INFO - Verifications in API Server for VN ctest-vn-80018319 passed
2025-07-23 00:14:15,958 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:15,971 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf0c02c-1a25-4b0e-a890-4f3a84d152eb
2025-07-23 00:14:15,980 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf0c02c-1a25-4b0e-a890-4f3a84d152eb
2025-07-23 00:14:15,989 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1590f972-7934-46ac-8bfc-45dd57ff947d
2025-07-23 00:14:16,005 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15589075', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11584574871816522625', 'uuid-lslong': '9228852223346273904'}, 'enable': 'true', 'created': '2025-07-23T00:14:13', 'last-modified': '2025-07-23T00:14:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024048'}
2025-07-23 00:14:16,013 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 00:14:16,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80018319 passed
2025-07-23 00:14:16,014 - DEBUG - ====Verifying policy data for ctest-vn-80018319 in API_Server ======
2025-07-23 00:14:16,014 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 00:14:16,022 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296
2025-07-23 00:14:16,036 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2b99acd-c709-4e03-b1e0-665b7e1188ca
2025-07-23 00:14:16,114 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0c4ad77-dc8a-4b81-8013-78335920ee70
2025-07-23 00:14:16,127 - DEBUG - ==>Verifying data for policy with id: 9eee8e1c-dae2-40ce-af58-1f57b807a7e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-policy-allow-all-13664634']
2025-07-23 00:14:16,127 - INFO - VN ctest-vn-80018319 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 00:14:16,128 - DEBUG - Verifying the vn in opserver
2025-07-23 00:14:16,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319 virtual network link through opserver 10.0.0.254
2025-07-23 00:14:16,128 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 00:14:16,427 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 00:14:16,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319?flat'}
2025-07-23 00:14:16,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-80018319 is found in opserver
2025-07-23 00:14:16,511 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 00:14:16,517 - DEBUG - VRF ids for VN ctest-vn-80018319: {}
2025-07-23 00:14:16,517 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 00:14:16,523 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296
2025-07-23 00:14:16,536 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2b99acd-c709-4e03-b1e0-665b7e1188ca
2025-07-23 00:14:16,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,630 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,641 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e85f190-6367-4f24-82eb-ff558cf8f34c
2025-07-23 00:14:16,650 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e85f190-6367-4f24-82eb-ff558cf8f34c
2025-07-23 00:14:16,658 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bc71be5c-b130-437c-b6d0-84670578c040
2025-07-23 00:14:16,666 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 00:14:16,666 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e85f190-6367-4f24-82eb-ff558cf8f34c
2025-07-23 00:14:16,695 - INFO - Verified VN network id 11 for VN 3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,695 - INFO - Verifications in API Server for VN ctest-vn-06921781 passed
2025-07-23 00:14:16,695 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,708 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e85f190-6367-4f24-82eb-ff558cf8f34c
2025-07-23 00:14:16,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e85f190-6367-4f24-82eb-ff558cf8f34c
2025-07-23 00:14:16,726 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bc71be5c-b130-437c-b6d0-84670578c040
2025-07-23 00:14:16,744 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-06921781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15589075', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3972726772395558658', 'uuid-lslong': '9768003086525409892'}, 'enable': 'true', 'created': '2025-07-23T00:14:14', 'last-modified': '2025-07-23T00:14:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499159'}
2025-07-23 00:14:16,751 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 00:14:16,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06921781 passed
2025-07-23 00:14:16,752 - DEBUG - ====Verifying policy data for ctest-vn-06921781 in API_Server ======
2025-07-23 00:14:16,752 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 00:14:16,759 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296
2025-07-23 00:14:16,772 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2b99acd-c709-4e03-b1e0-665b7e1188ca
2025-07-23 00:14:16,851 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3721f5f3-7a52-4702-878e-eb0dd9442a64
2025-07-23 00:14:16,862 - DEBUG - ==>Verifying data for policy with id: 9eee8e1c-dae2-40ce-af58-1f57b807a7e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-15589075', 'ctest-policy-allow-all-13664634']
2025-07-23 00:14:16,862 - INFO - VN ctest-vn-06921781 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 00:14:16,862 - DEBUG - Verifying the vn in opserver
2025-07-23 00:14:16,862 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-06921781 virtual network link through opserver 10.0.0.254
2025-07-23 00:14:16,862 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 00:14:16,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-06921781', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-06921781?flat'}
2025-07-23 00:14:16,874 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15589075:ctest-vn-06921781 is found in opserver
2025-07-23 00:14:16,886 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 00:14:16,892 - DEBUG - VRF ids for VN ctest-vn-06921781: {}
2025-07-23 00:14:16,955 - DEBUG - Services list from nova: [