2026-03-27 14:57:09,042 - INFO - Domain Default found not creating
2026-03-27 14:57:09,308 - INFO - Project ctest-TestBasicPolicy-07616344 not found, creating it
2026-03-27 14:57:09,825 - INFO - Created Project:ctest-TestBasicPolicy-07616344, ID : e22d178c-afba-4cdd-9580-75205697ab62
2026-03-27 14:57:11,864 - INFO - ================================================================================
2026-03-27 14:57:11,865 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-27 14:57:11,865 - 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-03-27 14:57:12,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-03-27 14:57:12,158 - INFO - Initial checks done. Running the testcase now
2026-03-27 14:57:12,158 - INFO -
2026-03-27 14:57:12,852 - DEBUG - Response for create_network : {'network': {'id': 'e2fcf95b-2dc5-4c30-92be-cb37597add7e', 'name': 'ctest-vn-23098135', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'project_id': 'e22d178cafba4cdd958075205697ab62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-vn-23098135'], 'port_security_enabled': True, 'description': ''}}
2026-03-27 14:57:13,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '0567feaf-d326-4432-8227-364cedbda2f2', 'name': '', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'network_id': 'e2fcf95b-2dc5-4c30-92be-cb37597add7e', 'ip_version': 4, 'cidr': '15.146.245.64/26', 'allocation_pools': [{'start': '15.146.245.66', 'end': '15.146.245.126'}], 'gateway_ip': '15.146.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.146.245.66', 'tags': [], 'project_id': 'e22d178cafba4cdd958075205697ab62'}}
2026-03-27 14:57:13,123 - INFO - Created VN ctest-vn-23098135
2026-03-27 14:57:13,178 - DEBUG - VN ctest-vn-23098135 UUID is e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:13,525 - DEBUG - Response for create_network : {'network': {'id': 'e924662e-af77-40a5-9a91-5804b1301128', 'name': 'ctest-vn-75751627', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'project_id': 'e22d178cafba4cdd958075205697ab62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-vn-75751627'], 'port_security_enabled': True, 'description': ''}}
2026-03-27 14:57:13,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '807e7143-1d97-4961-8142-be061a6b1901', 'name': '', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'network_id': 'e924662e-af77-40a5-9a91-5804b1301128', 'ip_version': 4, 'cidr': '13.73.61.64/26', 'allocation_pools': [{'start': '13.73.61.66', 'end': '13.73.61.126'}], 'gateway_ip': '13.73.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.73.61.66', 'tags': [], 'project_id': 'e22d178cafba4cdd958075205697ab62'}}
2026-03-27 14:57:13,717 - INFO - Created VN ctest-vn-75751627
2026-03-27 14:57:13,770 - DEBUG - VN ctest-vn-75751627 UUID is e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:13,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135, 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-07616344:ctest-vn-75751627, 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-03-27 14:57:14,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2fcf95b-2dc5-4c30-92be-cb37597add7e', 'name': 'ctest-vn-23098135', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'project_id': 'e22d178cafba4cdd958075205697ab62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0567feaf-d326-4432-8227-364cedbda2f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-vn-23098135'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-policy-allow-all-49003901']], 'subnet_ipam': [{'subnet_cidr': '15.146.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-27 14:57:14,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e924662e-af77-40a5-9a91-5804b1301128', 'name': 'ctest-vn-75751627', 'tenant_id': 'e22d178cafba4cdd958075205697ab62', 'project_id': 'e22d178cafba4cdd958075205697ab62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['807e7143-1d97-4961-8142-be061a6b1901'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-vn-75751627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-policy-allow-all-49003901']], 'subnet_ipam': [{'subnet_cidr': '13.73.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-27 14:57:14,698 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-27 14:57:15,026 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-27 14:57:15,110 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a6c6215d-220f-4fc1-b385-dc637161bd4f
2026-03-27 14:57:15,135 - DEBUG - Requesting: http://10.0.0.22:8082/project/e22d178c-afba-4cdd-9580-75205697ab62
2026-03-27 14:57:15,228 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,244 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,258 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0ac0bef-627a-4975-b351-5d69b8ab3949
2026-03-27 14:57:15,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0ac0bef-627a-4975-b351-5d69b8ab3949
2026-03-27 14:57:15,274 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/851fde6e-1c79-480a-8415-749d2f3c52c5
2026-03-27 14:57:15,282 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-27 14:57:15,282 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,293 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0ac0bef-627a-4975-b351-5d69b8ab3949
2026-03-27 14:57:15,310 - INFO - Verified VN network id 9 for VN e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,310 - INFO - Verifications in API Server for VN ctest-vn-23098135 passed
2026-03-27 14:57:15,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,321 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0ac0bef-627a-4975-b351-5d69b8ab3949
2026-03-27 14:57:15,331 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0ac0bef-627a-4975-b351-5d69b8ab3949
2026-03-27 14:57:15,340 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/851fde6e-1c79-480a-8415-749d2f3c52c5
2026-03-27 14:57:15,359 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07616344', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16356222116708043824', 'uuid-lslong': '10574112413697367422'}, 'enable': 'true', 'created': '2026-03-27T14:57:12', 'last-modified': '2026-03-27T14:57:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138136'}
2026-03-27 14:57:15,367 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-27 14:57:15,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23098135 passed
2026-03-27 14:57:15,367 - DEBUG - ====Verifying policy data for ctest-vn-23098135 in API_Server ======
2026-03-27 14:57:15,367 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-27 14:57:15,374 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a6c6215d-220f-4fc1-b385-dc637161bd4f
2026-03-27 14:57:15,390 - DEBUG - Requesting: http://10.0.0.22:8082/project/e22d178c-afba-4cdd-9580-75205697ab62
2026-03-27 14:57:15,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e2fcf95b-2dc5-4c30-92be-cb37597add7e
2026-03-27 14:57:15,482 - DEBUG - ==>Verifying data for policy with id: 42823755-d6b8-4e6e-b14f-653e9740ee57, fqn: ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-policy-allow-all-49003901']
2026-03-27 14:57:15,483 - INFO - VN ctest-vn-23098135 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-27 14:57:15,483 - DEBUG - Verifying the vn in opserver
2026-03-27 14:57:15,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135 virtual network link through opserver 10.0.0.22
2026-03-27 14:57:15,484 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-27 14:57:15,817 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-27 14:57:15,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135?flat'}
2026-03-27 14:57:15,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-23098135 is found in opserver
2026-03-27 14:57:15,914 - DEBUG - Do not have enough data to verify VN in agent
2026-03-27 14:57:15,920 - DEBUG - VRF ids for VN ctest-vn-23098135: {}
2026-03-27 14:57:15,920 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-27 14:57:15,927 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a6c6215d-220f-4fc1-b385-dc637161bd4f
2026-03-27 14:57:15,939 - DEBUG - Requesting: http://10.0.0.22:8082/project/e22d178c-afba-4cdd-9580-75205697ab62
2026-03-27 14:57:16,030 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,051 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,067 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45cecb1d-2ce5-4ce3-a63c-b4f787a66bec
2026-03-27 14:57:16,078 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45cecb1d-2ce5-4ce3-a63c-b4f787a66bec
2026-03-27 14:57:16,087 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e48b5d87-b127-4564-9098-65c3bb16961a
2026-03-27 14:57:16,098 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-27 14:57:16,098 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,109 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45cecb1d-2ce5-4ce3-a63c-b4f787a66bec
2026-03-27 14:57:16,130 - INFO - Verified VN network id 10 for VN e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,130 - INFO - Verifications in API Server for VN ctest-vn-75751627 passed
2026-03-27 14:57:16,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,146 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45cecb1d-2ce5-4ce3-a63c-b4f787a66bec
2026-03-27 14:57:16,160 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45cecb1d-2ce5-4ce3-a63c-b4f787a66bec
2026-03-27 14:57:16,171 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e48b5d87-b127-4564-9098-65c3bb16961a
2026-03-27 14:57:16,191 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-75751627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07616344', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16799664860697149605', 'uuid-lslong': '11137780130639778088'}, 'enable': 'true', 'created': '2026-03-27T14:57:13', 'last-modified': '2026-03-27T14:57:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.713834'}
2026-03-27 14:57:16,199 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-27 14:57:16,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75751627 passed
2026-03-27 14:57:16,200 - DEBUG - ====Verifying policy data for ctest-vn-75751627 in API_Server ======
2026-03-27 14:57:16,200 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-27 14:57:16,210 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a6c6215d-220f-4fc1-b385-dc637161bd4f
2026-03-27 14:57:16,231 - DEBUG - Requesting: http://10.0.0.22:8082/project/e22d178c-afba-4cdd-9580-75205697ab62
2026-03-27 14:57:16,314 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e924662e-af77-40a5-9a91-5804b1301128
2026-03-27 14:57:16,325 - DEBUG - ==>Verifying data for policy with id: 42823755-d6b8-4e6e-b14f-653e9740ee57, fqn: ['default-domain', 'ctest-TestBasicPolicy-07616344', 'ctest-policy-allow-all-49003901']
2026-03-27 14:57:16,325 - INFO - VN ctest-vn-75751627 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-27 14:57:16,325 - DEBUG - Verifying the vn in opserver
2026-03-27 14:57:16,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-75751627 virtual network link through opserver 10.0.0.22
2026-03-27 14:57:16,325 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-27 14:57:16,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-75751627', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-75751627?flat'}
2026-03-27 14:57:16,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07616344:ctest-vn-75751627 is found in opserver
2026-03-27 14:57:16,349 - DEBUG - Do not have enough data to verify VN in agent
2026-03-27 14:57:16,355 - DEBUG - VRF ids for VN ctest-vn-75751627: {}
2026-03-27 14:57:16,427 - DEBUG - Services list from nova: [