2025-06-19 02:08:17,997 - INFO - Domain Default found not creating
2025-06-19 02:08:18,155 - INFO - Project ctest-TestBasicPolicy-46003076 not found, creating it
2025-06-19 02:08:18,613 - INFO - Created Project:ctest-TestBasicPolicy-46003076, ID : 1fc05439-1171-484e-86dc-f86129cc87d4
2025-06-19 02:08:20,042 - INFO - ================================================================================
2025-06-19 02:08:20,042 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 02:08:20,042 - 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-06-19 02:08:20,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with
2025-06-19 02:08:20,299 - INFO - Initial checks done. Running the testcase now
2025-06-19 02:08:20,299 - INFO -
2025-06-19 02:08:20,854 - DEBUG - Response for create_network : {'network': {'id': '5877e05c-0c02-4874-80f5-4445032eeb0b', 'name': 'ctest-vn-91530910', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'project_id': '1fc054391171484e86dcf86129cc87d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-vn-91530910'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:08:21,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '769beaab-55bd-467d-a09a-6405624ef485', 'name': '', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'network_id': '5877e05c-0c02-4874-80f5-4445032eeb0b', 'ip_version': 4, 'cidr': '31.132.150.0/26', 'allocation_pools': [{'start': '31.132.150.2', 'end': '31.132.150.62'}], 'gateway_ip': '31.132.150.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.132.150.2', 'tags': [], 'project_id': '1fc054391171484e86dcf86129cc87d4'}}
2025-06-19 02:08:21,040 - INFO - Created VN ctest-vn-91530910
2025-06-19 02:08:21,094 - DEBUG - VN ctest-vn-91530910 UUID is 5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:21,392 - DEBUG - Response for create_network : {'network': {'id': '4b925ab5-857c-4d83-a7d7-14ab3ac9b682', 'name': 'ctest-vn-78031074', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'project_id': '1fc054391171484e86dcf86129cc87d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-vn-78031074'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:08:21,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '67b4c8f9-9f8d-4ddf-b420-387dcfcc5bbe', 'name': '', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'network_id': '4b925ab5-857c-4d83-a7d7-14ab3ac9b682', 'ip_version': 4, 'cidr': '191.212.223.0/26', 'allocation_pools': [{'start': '191.212.223.2', 'end': '191.212.223.62'}], 'gateway_ip': '191.212.223.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.212.223.2', 'tags': [], 'project_id': '1fc054391171484e86dcf86129cc87d4'}}
2025-06-19 02:08:21,611 - INFO - Created VN ctest-vn-78031074
2025-06-19 02:08:21,661 - DEBUG - VN ctest-vn-78031074 UUID is 4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:21,813 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910, 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-46003076:ctest-vn-78031074, 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-06-19 02:08:22,120 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5877e05c-0c02-4874-80f5-4445032eeb0b', 'name': 'ctest-vn-91530910', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'project_id': '1fc054391171484e86dcf86129cc87d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['769beaab-55bd-467d-a09a-6405624ef485'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-vn-91530910'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-policy-allow-all-73460815']], 'subnet_ipam': [{'subnet_cidr': '31.132.150.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:08:22,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b925ab5-857c-4d83-a7d7-14ab3ac9b682', 'name': 'ctest-vn-78031074', 'tenant_id': '1fc054391171484e86dcf86129cc87d4', 'project_id': '1fc054391171484e86dcf86129cc87d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67b4c8f9-9f8d-4ddf-b420-387dcfcc5bbe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-vn-78031074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-policy-allow-all-73460815']], 'subnet_ipam': [{'subnet_cidr': '191.212.223.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:08:22,538 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 02:08:22,829 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 02:08:22,863 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ae56ab44-fe87-4d4e-94a6-b512d26d4631
2025-06-19 02:08:22,880 - DEBUG - Requesting: http://10.0.0.130:8082/project/1fc05439-1171-484e-86dc-f86129cc87d4
2025-06-19 02:08:22,951 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:22,966 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:22,979 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/08bbfdad-a1c9-4871-b0ff-c64e6bf1665c
2025-06-19 02:08:22,987 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/08bbfdad-a1c9-4871-b0ff-c64e6bf1665c
2025-06-19 02:08:22,996 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5fdc807c-245e-4257-941d-72716cc205b8
2025-06-19 02:08:23,005 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 02:08:23,005 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:23,018 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/08bbfdad-a1c9-4871-b0ff-c64e6bf1665c
2025-06-19 02:08:23,034 - INFO - Verified VN network id 8 for VN 5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:23,034 - INFO - Verifications in API Server for VN ctest-vn-91530910 passed
2025-06-19 02:08:23,034 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:23,044 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/08bbfdad-a1c9-4871-b0ff-c64e6bf1665c
2025-06-19 02:08:23,052 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/08bbfdad-a1c9-4871-b0ff-c64e6bf1665c
2025-06-19 02:08:23,059 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5fdc807c-245e-4257-941d-72716cc205b8
2025-06-19 02:08:23,070 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46003076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6374810483509315700', 'uuid-lslong': '9292408469345725195'}, 'enable': 'true', 'created': '2025-06-19T02:08:20', 'last-modified': '2025-06-19T02:08:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972901'}
2025-06-19 02:08:23,077 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 02:08:23,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91530910 passed
2025-06-19 02:08:23,077 - DEBUG - ====Verifying policy data for ctest-vn-91530910 in API_Server ======
2025-06-19 02:08:23,077 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 02:08:23,083 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ae56ab44-fe87-4d4e-94a6-b512d26d4631
2025-06-19 02:08:23,096 - DEBUG - Requesting: http://10.0.0.130:8082/project/1fc05439-1171-484e-86dc-f86129cc87d4
2025-06-19 02:08:23,171 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5877e05c-0c02-4874-80f5-4445032eeb0b
2025-06-19 02:08:23,181 - DEBUG - ==>Verifying data for policy with id: e16b5045-9ef1-4734-b673-053530587b95, fqn: ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-policy-allow-all-73460815']
2025-06-19 02:08:23,181 - INFO - VN ctest-vn-91530910 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 02:08:23,181 - DEBUG - Verifying the vn in opserver
2025-06-19 02:08:23,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910 virtual network link through opserver 10.0.0.130
2025-06-19 02:08:23,181 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 02:08:23,470 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 02:08:23,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910?flat'}
2025-06-19 02:08:23,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-91530910 is found in opserver
2025-06-19 02:08:23,536 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 02:08:23,541 - DEBUG - VRF ids for VN ctest-vn-91530910: {}
2025-06-19 02:08:23,541 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 02:08:23,548 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ae56ab44-fe87-4d4e-94a6-b512d26d4631
2025-06-19 02:08:23,563 - DEBUG - Requesting: http://10.0.0.130:8082/project/1fc05439-1171-484e-86dc-f86129cc87d4
2025-06-19 02:08:23,637 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,650 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,660 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6c75653-0087-4f6a-a91e-0a9fae1a3f15
2025-06-19 02:08:23,668 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6c75653-0087-4f6a-a91e-0a9fae1a3f15
2025-06-19 02:08:23,675 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a710f81b-0996-4efe-93d7-f419733c18da
2025-06-19 02:08:23,682 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 02:08:23,682 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,693 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6c75653-0087-4f6a-a91e-0a9fae1a3f15
2025-06-19 02:08:23,707 - INFO - Verified VN network id 9 for VN 4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,708 - INFO - Verifications in API Server for VN ctest-vn-78031074 passed
2025-06-19 02:08:23,708 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,717 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6c75653-0087-4f6a-a91e-0a9fae1a3f15
2025-06-19 02:08:23,725 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6c75653-0087-4f6a-a91e-0a9fae1a3f15
2025-06-19 02:08:23,732 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a710f81b-0996-4efe-93d7-f419733c18da
2025-06-19 02:08:23,744 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-78031074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46003076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5445514635119447427', 'uuid-lslong': '12094158049985017474'}, 'enable': 'true', 'created': '2025-06-19T02:08:21', 'last-modified': '2025-06-19T02:08:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406767'}
2025-06-19 02:08:23,750 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 02:08:23,750 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78031074 passed
2025-06-19 02:08:23,750 - DEBUG - ====Verifying policy data for ctest-vn-78031074 in API_Server ======
2025-06-19 02:08:23,750 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 02:08:23,756 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ae56ab44-fe87-4d4e-94a6-b512d26d4631
2025-06-19 02:08:23,769 - DEBUG - Requesting: http://10.0.0.130:8082/project/1fc05439-1171-484e-86dc-f86129cc87d4
2025-06-19 02:08:23,839 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/4b925ab5-857c-4d83-a7d7-14ab3ac9b682
2025-06-19 02:08:23,849 - DEBUG - ==>Verifying data for policy with id: e16b5045-9ef1-4734-b673-053530587b95, fqn: ['default-domain', 'ctest-TestBasicPolicy-46003076', 'ctest-policy-allow-all-73460815']
2025-06-19 02:08:23,849 - INFO - VN ctest-vn-78031074 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 02:08:23,849 - DEBUG - Verifying the vn in opserver
2025-06-19 02:08:23,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-78031074 virtual network link through opserver 10.0.0.130
2025-06-19 02:08:23,849 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 02:08:23,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-78031074', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-78031074?flat'}
2025-06-19 02:08:23,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46003076:ctest-vn-78031074 is found in opserver
2025-06-19 02:08:23,870 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 02:08:23,875 - DEBUG - VRF ids for VN ctest-vn-78031074: {}
2025-06-19 02:08:23,929 - DEBUG - Services list from nova: [