2025-12-29 02:25:03,565 - INFO - Domain Default found not creating
2025-12-29 02:25:03,748 - INFO - Project ctest-TestBasicPolicy-42213170 not found, creating it
2025-12-29 02:25:04,455 - INFO - Created Project:ctest-TestBasicPolicy-42213170, ID : 41602ce2-5001-4ec7-b68f-4907b84c18a1
2025-12-29 02:25:05,960 - INFO - ================================================================================
2025-12-29 02:25:05,960 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-29 02:25:05,960 - 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-12-29 02:25:06,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.249': '0'}} with
2025-12-29 02:25:06,214 - INFO - Initial checks done. Running the testcase now
2025-12-29 02:25:06,214 - INFO -
2025-12-29 02:25:06,810 - DEBUG - Response for create_network : {'network': {'id': 'a37680b5-da6d-4fec-91bd-b5da39c7aeea', 'name': 'ctest-vn-42877982', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'project_id': '41602ce250014ec7b68f4907b84c18a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-vn-42877982'], 'port_security_enabled': True, 'description': ''}}
2025-12-29 02:25:06,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f98f2afc-2dec-4a43-b831-b0e5612ce216', 'name': '', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'network_id': 'a37680b5-da6d-4fec-91bd-b5da39c7aeea', 'ip_version': 4, 'cidr': '5.189.129.64/26', 'allocation_pools': [{'start': '5.189.129.66', 'end': '5.189.129.126'}], 'gateway_ip': '5.189.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.189.129.66', 'tags': [], 'project_id': '41602ce250014ec7b68f4907b84c18a1'}}
2025-12-29 02:25:07,003 - INFO - Created VN ctest-vn-42877982
2025-12-29 02:25:07,053 - DEBUG - VN ctest-vn-42877982 UUID is a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:07,362 - DEBUG - Response for create_network : {'network': {'id': 'cf6a2726-a320-4ccb-aa33-2c345ae19019', 'name': 'ctest-vn-36818241', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'project_id': '41602ce250014ec7b68f4907b84c18a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-vn-36818241'], 'port_security_enabled': True, 'description': ''}}
2025-12-29 02:25:07,541 - DEBUG - Response for create_subnet : {'subnet': {'id': '73af60af-86cb-4a09-9a5a-8c99c1c3868e', 'name': '', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'network_id': 'cf6a2726-a320-4ccb-aa33-2c345ae19019', 'ip_version': 4, 'cidr': '169.125.18.0/26', 'allocation_pools': [{'start': '169.125.18.2', 'end': '169.125.18.62'}], 'gateway_ip': '169.125.18.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.125.18.2', 'tags': [], 'project_id': '41602ce250014ec7b68f4907b84c18a1'}}
2025-12-29 02:25:07,558 - INFO - Created VN ctest-vn-36818241
2025-12-29 02:25:07,609 - DEBUG - VN ctest-vn-36818241 UUID is cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:07,757 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982, 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-42213170:ctest-vn-36818241, 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-12-29 02:25:08,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a37680b5-da6d-4fec-91bd-b5da39c7aeea', 'name': 'ctest-vn-42877982', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'project_id': '41602ce250014ec7b68f4907b84c18a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f98f2afc-2dec-4a43-b831-b0e5612ce216'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-vn-42877982'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-policy-allow-all-56995365']], 'subnet_ipam': [{'subnet_cidr': '5.189.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-29 02:25:08,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf6a2726-a320-4ccb-aa33-2c345ae19019', 'name': 'ctest-vn-36818241', 'tenant_id': '41602ce250014ec7b68f4907b84c18a1', 'project_id': '41602ce250014ec7b68f4907b84c18a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73af60af-86cb-4a09-9a5a-8c99c1c3868e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-vn-36818241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-policy-allow-all-56995365']], 'subnet_ipam': [{'subnet_cidr': '169.125.18.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-29 02:25:08,409 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-12-29 02:25:08,705 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-12-29 02:25:09,013 - DEBUG - Requesting: http://10.0.0.23:8082/domain/d180cc61-627f-419e-b966-85e514e3af0d
2025-12-29 02:25:09,023 - DEBUG - Requesting: http://10.0.0.23:8082/project/41602ce2-5001-4ec7-b68f-4907b84c18a1
2025-12-29 02:25:09,103 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,112 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,120 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f31f4986-a6eb-43a0-8819-c6a0579aa9c3
2025-12-29 02:25:09,126 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f31f4986-a6eb-43a0-8819-c6a0579aa9c3
2025-12-29 02:25:09,131 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0eaf3b95-9bf3-4d6f-8393-5eafc2e3be59
2025-12-29 02:25:09,135 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-29 02:25:09,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,142 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f31f4986-a6eb-43a0-8819-c6a0579aa9c3
2025-12-29 02:25:09,155 - INFO - Verified VN network id 9 for VN a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,155 - INFO - Verifications in API Server for VN ctest-vn-42877982 passed
2025-12-29 02:25:09,155 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,164 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f31f4986-a6eb-43a0-8819-c6a0579aa9c3
2025-12-29 02:25:09,170 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f31f4986-a6eb-43a0-8819-c6a0579aa9c3
2025-12-29 02:25:09,176 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0eaf3b95-9bf3-4d6f-8393-5eafc2e3be59
2025-12-29 02:25:09,190 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42213170', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11778743393976143852', 'uuid-lslong': '10501749854974750442'}, 'enable': 'true', 'created': '2025-12-29T02:25:06', 'last-modified': '2025-12-29T02:25:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.172093'}
2025-12-29 02:25:09,196 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-29 02:25:09,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42877982 passed
2025-12-29 02:25:09,196 - DEBUG - ====Verifying policy data for ctest-vn-42877982 in API_Server ======
2025-12-29 02:25:09,196 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-12-29 02:25:09,202 - DEBUG - Requesting: http://10.0.0.23:8082/domain/d180cc61-627f-419e-b966-85e514e3af0d
2025-12-29 02:25:09,213 - DEBUG - Requesting: http://10.0.0.23:8082/project/41602ce2-5001-4ec7-b68f-4907b84c18a1
2025-12-29 02:25:09,284 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a37680b5-da6d-4fec-91bd-b5da39c7aeea
2025-12-29 02:25:09,292 - DEBUG - ==>Verifying data for policy with id: b685094b-a6f5-43f4-9451-2ed34743b54c, fqn: ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-policy-allow-all-56995365']
2025-12-29 02:25:09,292 - INFO - VN ctest-vn-42877982 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-29 02:25:09,292 - DEBUG - Verifying the vn in opserver
2025-12-29 02:25:09,292 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982 virtual network link through opserver 10.0.0.23
2025-12-29 02:25:09,293 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-12-29 02:25:09,643 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-12-29 02:25:09,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982?flat'}
2025-12-29 02:25:09,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-42877982 is found in opserver
2025-12-29 02:25:09,726 - DEBUG - Do not have enough data to verify VN in agent
2025-12-29 02:25:09,731 - DEBUG - VRF ids for VN ctest-vn-42877982: {}
2025-12-29 02:25:09,731 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-12-29 02:25:09,736 - DEBUG - Requesting: http://10.0.0.23:8082/domain/d180cc61-627f-419e-b966-85e514e3af0d
2025-12-29 02:25:09,745 - DEBUG - Requesting: http://10.0.0.23:8082/project/41602ce2-5001-4ec7-b68f-4907b84c18a1
2025-12-29 02:25:09,815 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:09,825 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:09,833 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/68ce1acc-09cd-488a-9d26-868056395a4c
2025-12-29 02:25:09,839 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/68ce1acc-09cd-488a-9d26-868056395a4c
2025-12-29 02:25:09,844 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6e5489a4-023f-48a9-85f8-57a7d6844d26
2025-12-29 02:25:09,849 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-29 02:25:09,849 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:09,857 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/68ce1acc-09cd-488a-9d26-868056395a4c
2025-12-29 02:25:09,868 - INFO - Verified VN network id 10 for VN cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:09,868 - INFO - Verifications in API Server for VN ctest-vn-36818241 passed
2025-12-29 02:25:09,868 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:09,886 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/68ce1acc-09cd-488a-9d26-868056395a4c
2025-12-29 02:25:09,893 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/68ce1acc-09cd-488a-9d26-868056395a4c
2025-12-29 02:25:09,899 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6e5489a4-023f-48a9-85f8-57a7d6844d26
2025-12-29 02:25:09,908 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-36818241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42213170', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14945801360281455819', 'uuid-lslong': '12264194813634646041'}, 'enable': 'true', 'created': '2025-12-29T02:25:07', 'last-modified': '2025-12-29T02:25:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.676558'}
2025-12-29 02:25:09,914 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-29 02:25:09,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36818241 passed
2025-12-29 02:25:09,914 - DEBUG - ====Verifying policy data for ctest-vn-36818241 in API_Server ======
2025-12-29 02:25:09,914 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-12-29 02:25:09,918 - DEBUG - Requesting: http://10.0.0.23:8082/domain/d180cc61-627f-419e-b966-85e514e3af0d
2025-12-29 02:25:09,927 - DEBUG - Requesting: http://10.0.0.23:8082/project/41602ce2-5001-4ec7-b68f-4907b84c18a1
2025-12-29 02:25:09,993 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cf6a2726-a320-4ccb-aa33-2c345ae19019
2025-12-29 02:25:10,001 - DEBUG - ==>Verifying data for policy with id: b685094b-a6f5-43f4-9451-2ed34743b54c, fqn: ['default-domain', 'ctest-TestBasicPolicy-42213170', 'ctest-policy-allow-all-56995365']
2025-12-29 02:25:10,001 - INFO - VN ctest-vn-36818241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-29 02:25:10,001 - DEBUG - Verifying the vn in opserver
2025-12-29 02:25:10,001 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-36818241 virtual network link through opserver 10.0.0.23
2025-12-29 02:25:10,001 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-12-29 02:25:10,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-36818241', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-36818241?flat'}
2025-12-29 02:25:10,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42213170:ctest-vn-36818241 is found in opserver
2025-12-29 02:25:10,019 - DEBUG - Do not have enough data to verify VN in agent
2025-12-29 02:25:10,023 - DEBUG - VRF ids for VN ctest-vn-36818241: {}
2025-12-29 02:25:10,078 - DEBUG - Services list from nova: [