2026-02-26 14:38:31,792 - INFO - Domain Default found not creating
2026-02-26 14:38:31,953 - INFO - Project ctest-TestBasicPolicy-56838721 not found, creating it
2026-02-26 14:38:32,448 - INFO - Created Project:ctest-TestBasicPolicy-56838721, ID : d9542e0f-d347-44c2-86a2-dad2b240e665
2026-02-26 14:38:33,945 - INFO - ================================================================================
2026-02-26 14:38:33,945 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-26 14:38:33,945 - 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
2026-02-26 14:38:34,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-02-26 14:38:34,198 - INFO - Initial checks done. Running the testcase now
2026-02-26 14:38:34,198 - INFO -
2026-02-26 14:38:34,735 - DEBUG - Response for create_network : {'network': {'id': 'c35eadcf-2f36-4d0d-b7f8-d92318836d30', 'name': 'ctest-vn-05558444', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'project_id': 'd9542e0fd34744c286a2dad2b240e665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-vn-05558444'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 14:38:34,907 - DEBUG - Response for create_subnet : {'subnet': {'id': '0046ebe9-0b3d-46f3-a3d5-51593539e769', 'name': '', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'network_id': 'c35eadcf-2f36-4d0d-b7f8-d92318836d30', 'ip_version': 4, 'cidr': '70.54.36.64/26', 'allocation_pools': [{'start': '70.54.36.66', 'end': '70.54.36.126'}], 'gateway_ip': '70.54.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.54.36.66', 'tags': [], 'project_id': 'd9542e0fd34744c286a2dad2b240e665'}}
2026-02-26 14:38:34,929 - INFO - Created VN ctest-vn-05558444
2026-02-26 14:38:34,980 - DEBUG - VN ctest-vn-05558444 UUID is c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:35,261 - DEBUG - Response for create_network : {'network': {'id': 'e2a5c249-8330-4f1e-8b87-1177b83f084e', 'name': 'ctest-vn-42884603', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'project_id': 'd9542e0fd34744c286a2dad2b240e665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-vn-42884603'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 14:38:35,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '2595c3e7-6818-4dad-b188-292264ed1c2e', 'name': '', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'network_id': 'e2a5c249-8330-4f1e-8b87-1177b83f084e', 'ip_version': 4, 'cidr': '202.183.178.128/26', 'allocation_pools': [{'start': '202.183.178.130', 'end': '202.183.178.190'}], 'gateway_ip': '202.183.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.183.178.130', 'tags': [], 'project_id': 'd9542e0fd34744c286a2dad2b240e665'}}
2026-02-26 14:38:35,461 - INFO - Created VN ctest-vn-42884603
2026-02-26 14:38:35,512 - DEBUG - VN ctest-vn-42884603 UUID is e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:35,624 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444, 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-56838721:ctest-vn-42884603, 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]
2026-02-26 14:38:35,925 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c35eadcf-2f36-4d0d-b7f8-d92318836d30', 'name': 'ctest-vn-05558444', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'project_id': 'd9542e0fd34744c286a2dad2b240e665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0046ebe9-0b3d-46f3-a3d5-51593539e769'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-vn-05558444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-policy-allow-all-39440192']], 'subnet_ipam': [{'subnet_cidr': '70.54.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 14:38:36,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2a5c249-8330-4f1e-8b87-1177b83f084e', 'name': 'ctest-vn-42884603', 'tenant_id': 'd9542e0fd34744c286a2dad2b240e665', 'project_id': 'd9542e0fd34744c286a2dad2b240e665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2595c3e7-6818-4dad-b188-292264ed1c2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-vn-42884603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-policy-allow-all-39440192']], 'subnet_ipam': [{'subnet_cidr': '202.183.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 14:38:36,324 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-26 14:38:36,620 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-26 14:38:36,652 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68
2026-02-26 14:38:36,666 - DEBUG - Requesting: http://10.0.0.141:8082/project/d9542e0f-d347-44c2-86a2-dad2b240e665
2026-02-26 14:38:36,741 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,752 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,762 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/28331413-6ce5-4d55-8c03-a37b19adf03d
2026-02-26 14:38:36,770 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/28331413-6ce5-4d55-8c03-a37b19adf03d
2026-02-26 14:38:36,777 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fc81a99e-d7f6-4c4c-bee1-1660a688cc1d
2026-02-26 14:38:36,784 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 14:38:36,784 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,793 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/28331413-6ce5-4d55-8c03-a37b19adf03d
2026-02-26 14:38:36,807 - INFO - Verified VN network id 11 for VN c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,807 - INFO - Verifications in API Server for VN ctest-vn-05558444 passed
2026-02-26 14:38:36,807 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,818 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/28331413-6ce5-4d55-8c03-a37b19adf03d
2026-02-26 14:38:36,827 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/28331413-6ce5-4d55-8c03-a37b19adf03d
2026-02-26 14:38:36,837 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fc81a99e-d7f6-4c4c-bee1-1660a688cc1d
2026-02-26 14:38:36,850 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56838721', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14077880590568672525', 'uuid-lslong': '13256584247923404080'}, 'enable': 'true', 'created': '2026-02-26T14:38:34', 'last-modified': '2026-02-26T14:38:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946654'}
2026-02-26 14:38:36,855 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 14:38:36,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05558444 passed
2026-02-26 14:38:36,855 - DEBUG - ====Verifying policy data for ctest-vn-05558444 in API_Server ======
2026-02-26 14:38:36,855 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-26 14:38:36,861 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68
2026-02-26 14:38:36,873 - DEBUG - Requesting: http://10.0.0.141:8082/project/d9542e0f-d347-44c2-86a2-dad2b240e665
2026-02-26 14:38:36,940 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c35eadcf-2f36-4d0d-b7f8-d92318836d30
2026-02-26 14:38:36,949 - DEBUG - ==>Verifying data for policy with id: 41396fae-039e-4cee-a043-5ebf660aa909, fqn: ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-policy-allow-all-39440192']
2026-02-26 14:38:36,949 - INFO - VN ctest-vn-05558444 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 14:38:36,949 - DEBUG - Verifying the vn in opserver
2026-02-26 14:38:36,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444 virtual network link through opserver 10.0.0.141
2026-02-26 14:38:36,949 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-26 14:38:37,241 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-26 14:38:37,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444?flat'}
2026-02-26 14:38:37,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-05558444 is found in opserver
2026-02-26 14:38:37,312 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 14:38:37,316 - DEBUG - VRF ids for VN ctest-vn-05558444: {}
2026-02-26 14:38:37,316 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-26 14:38:37,321 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68
2026-02-26 14:38:37,332 - DEBUG - Requesting: http://10.0.0.141:8082/project/d9542e0f-d347-44c2-86a2-dad2b240e665
2026-02-26 14:38:37,403 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,414 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,423 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c935a785-997d-41c1-93ef-99af34130d4e
2026-02-26 14:38:37,430 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c935a785-997d-41c1-93ef-99af34130d4e
2026-02-26 14:38:37,437 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d30917c3-5388-43e5-b9c4-c8ee260aa5e4
2026-02-26 14:38:37,443 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 14:38:37,443 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,451 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c935a785-997d-41c1-93ef-99af34130d4e
2026-02-26 14:38:37,465 - INFO - Verified VN network id 12 for VN e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,465 - INFO - Verifications in API Server for VN ctest-vn-42884603 passed
2026-02-26 14:38:37,465 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,476 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c935a785-997d-41c1-93ef-99af34130d4e
2026-02-26 14:38:37,483 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c935a785-997d-41c1-93ef-99af34130d4e
2026-02-26 14:38:37,490 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d30917c3-5388-43e5-b9c4-c8ee260aa5e4
2026-02-26 14:38:37,502 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-42884603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56838721', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16331673244718354206', 'uuid-lslong': '10054023899017840718'}, 'enable': 'true', 'created': '2026-02-26T14:38:35', 'last-modified': '2026-02-26T14:38:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369937'}
2026-02-26 14:38:37,508 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 14:38:37,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42884603 passed
2026-02-26 14:38:37,509 - DEBUG - ====Verifying policy data for ctest-vn-42884603 in API_Server ======
2026-02-26 14:38:37,509 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-26 14:38:37,516 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68
2026-02-26 14:38:37,529 - DEBUG - Requesting: http://10.0.0.141:8082/project/d9542e0f-d347-44c2-86a2-dad2b240e665
2026-02-26 14:38:37,601 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e2a5c249-8330-4f1e-8b87-1177b83f084e
2026-02-26 14:38:37,610 - DEBUG - ==>Verifying data for policy with id: 41396fae-039e-4cee-a043-5ebf660aa909, fqn: ['default-domain', 'ctest-TestBasicPolicy-56838721', 'ctest-policy-allow-all-39440192']
2026-02-26 14:38:37,610 - INFO - VN ctest-vn-42884603 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 14:38:37,610 - DEBUG - Verifying the vn in opserver
2026-02-26 14:38:37,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-42884603 virtual network link through opserver 10.0.0.141
2026-02-26 14:38:37,610 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-26 14:38:37,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-42884603', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-42884603?flat'}
2026-02-26 14:38:37,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56838721:ctest-vn-42884603 is found in opserver
2026-02-26 14:38:37,629 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 14:38:37,633 - DEBUG - VRF ids for VN ctest-vn-42884603: {}
2026-02-26 14:38:37,689 - DEBUG - Services list from nova: [