2026-08-20 10:53:46,738 - INFO - Domain Default found not creating
2026-08-20 10:53:46,931 - INFO - Project ctest-TestBasicPolicy-36212429 not found, creating it
2026-08-20 10:53:47,453 - INFO - Created Project:ctest-TestBasicPolicy-36212429, ID : 02427243-c1a5-4fe0-b8f1-c74f9478d6d9
2026-08-20 10:53:49,204 - INFO - ================================================================================
2026-08-20 10:53:49,204 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 10:53:49,204 - 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-08-20 10:53:49,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.14': '0'}} with
2026-08-20 10:53:49,476 - INFO - Initial checks done. Running the testcase now
2026-08-20 10:53:49,476 - INFO -
2026-08-20 10:53:50,123 - DEBUG - Response for create_network : {'network': {'id': 'ab51fd7c-2eec-4c18-938b-a1e1d130fbca', 'name': 'ctest-vn-05922020', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-vn-05922020'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:53:50,353 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbf3102f-e61d-4ce1-92c3-ad1bb4030fc9', 'name': '', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'network_id': 'ab51fd7c-2eec-4c18-938b-a1e1d130fbca', 'ip_version': 4, 'cidr': '66.5.235.0/26', 'allocation_pools': [{'start': '66.5.235.2', 'end': '66.5.235.62'}], 'gateway_ip': '66.5.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.5.235.2', 'tags': [], 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9'}}
2026-08-20 10:53:50,373 - INFO - Created VN ctest-vn-05922020
2026-08-20 10:53:50,426 - DEBUG - VN ctest-vn-05922020 UUID is ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:50,771 - DEBUG - Response for create_network : {'network': {'id': 'ffb768f6-cb3f-4576-9119-ee7872615685', 'name': 'ctest-vn-37682331', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-vn-37682331'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:53:50,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '591e36e4-8b91-4df4-8f99-b7c6afe66c54', 'name': '', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'network_id': 'ffb768f6-cb3f-4576-9119-ee7872615685', 'ip_version': 4, 'cidr': '35.219.63.192/26', 'allocation_pools': [{'start': '35.219.63.194', 'end': '35.219.63.254'}], 'gateway_ip': '35.219.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.219.63.194', 'tags': [], 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9'}}
2026-08-20 10:53:50,968 - INFO - Created VN ctest-vn-37682331
2026-08-20 10:53:51,018 - DEBUG - VN ctest-vn-37682331 UUID is ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:51,174 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020, 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-36212429:ctest-vn-37682331, 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-08-20 10:53:51,482 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab51fd7c-2eec-4c18-938b-a1e1d130fbca', 'name': 'ctest-vn-05922020', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbf3102f-e61d-4ce1-92c3-ad1bb4030fc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-vn-05922020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-policy-allow-all-30882290']], 'subnet_ipam': [{'subnet_cidr': '66.5.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:53:51,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffb768f6-cb3f-4576-9119-ee7872615685', 'name': 'ctest-vn-37682331', 'tenant_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'project_id': '02427243c1a54fe0b8f1c74f9478d6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['591e36e4-8b91-4df4-8f99-b7c6afe66c54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-vn-37682331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-policy-allow-all-30882290']], 'subnet_ipam': [{'subnet_cidr': '35.219.63.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 10:53:51,902 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-20 10:53:52,264 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-20 10:53:52,291 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0
2026-08-20 10:53:52,304 - DEBUG - Requesting: http://10.0.0.177:8082/project/02427243-c1a5-4fe0-b8f1-c74f9478d6d9
2026-08-20 10:53:52,390 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,403 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,414 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3043fe8f-7260-488e-b4f4-608022b19f94
2026-08-20 10:53:52,422 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3043fe8f-7260-488e-b4f4-608022b19f94
2026-08-20 10:53:52,429 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/e3e6a2bd-f09a-4bf6-8817-cd8f6a100272
2026-08-20 10:53:52,438 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:53:52,438 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,448 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3043fe8f-7260-488e-b4f4-608022b19f94
2026-08-20 10:53:52,463 - INFO - Verified VN network id 11 for VN ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,464 - INFO - Verifications in API Server for VN ctest-vn-05922020 passed
2026-08-20 10:53:52,464 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,475 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3043fe8f-7260-488e-b4f4-608022b19f94
2026-08-20 10:53:52,484 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3043fe8f-7260-488e-b4f4-608022b19f94
2026-08-20 10:53:52,492 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/e3e6a2bd-f09a-4bf6-8817-cd8f6a100272
2026-08-20 10:53:52,506 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36212429', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12344926763404250136', 'uuid-lslong': '10631769336587549642'}, 'enable': 'true', 'created': '2026-08-20T10:53:50', 'last-modified': '2026-08-20T10:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046569'}
2026-08-20 10:53:52,513 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 10:53:52,513 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05922020 passed
2026-08-20 10:53:52,514 - DEBUG - ====Verifying policy data for ctest-vn-05922020 in API_Server ======
2026-08-20 10:53:52,514 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-20 10:53:52,521 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0
2026-08-20 10:53:52,533 - DEBUG - Requesting: http://10.0.0.177:8082/project/02427243-c1a5-4fe0-b8f1-c74f9478d6d9
2026-08-20 10:53:52,613 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ab51fd7c-2eec-4c18-938b-a1e1d130fbca
2026-08-20 10:53:52,623 - DEBUG - ==>Verifying data for policy with id: ec138f41-0b76-4d5a-86c5-66cf73286671, fqn: ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-policy-allow-all-30882290']
2026-08-20 10:53:52,623 - INFO - VN ctest-vn-05922020 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:53:52,623 - DEBUG - Verifying the vn in opserver
2026-08-20 10:53:52,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020 virtual network link through opserver 10.0.0.177
2026-08-20 10:53:52,624 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-20 10:53:52,996 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-20 10:53:53,054 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020?flat'}
2026-08-20 10:53:53,054 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-05922020 is found in opserver
2026-08-20 10:53:53,065 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:53:53,071 - DEBUG - VRF ids for VN ctest-vn-05922020: {}
2026-08-20 10:53:53,071 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-20 10:53:53,078 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0
2026-08-20 10:53:53,089 - DEBUG - Requesting: http://10.0.0.177:8082/project/02427243-c1a5-4fe0-b8f1-c74f9478d6d9
2026-08-20 10:53:53,165 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,177 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,187 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/56a14dc6-790e-4039-b607-288f5adc3d12
2026-08-20 10:53:53,195 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/56a14dc6-790e-4039-b607-288f5adc3d12
2026-08-20 10:53:53,201 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/97b82c88-0bea-4caf-b7e4-2ac995a6b810
2026-08-20 10:53:53,209 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:53:53,209 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,219 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/56a14dc6-790e-4039-b607-288f5adc3d12
2026-08-20 10:53:53,233 - INFO - Verified VN network id 12 for VN ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,233 - INFO - Verifications in API Server for VN ctest-vn-37682331 passed
2026-08-20 10:53:53,233 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,242 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/56a14dc6-790e-4039-b607-288f5adc3d12
2026-08-20 10:53:53,249 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/56a14dc6-790e-4039-b607-288f5adc3d12
2026-08-20 10:53:53,256 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/97b82c88-0bea-4caf-b7e4-2ac995a6b810
2026-08-20 10:53:53,269 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-37682331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36212429', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18426311809590838646', 'uuid-lslong': '10455650210999785093'}, 'enable': 'true', 'created': '2026-08-20T10:53:50', 'last-modified': '2026-08-20T10:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573155'}
2026-08-20 10:53:53,275 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 10:53:53,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37682331 passed
2026-08-20 10:53:53,276 - DEBUG - ====Verifying policy data for ctest-vn-37682331 in API_Server ======
2026-08-20 10:53:53,276 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-20 10:53:53,281 - DEBUG - Requesting: http://10.0.0.177:8082/domain/74d629f6-c250-46e5-ad00-d05ee3889da0
2026-08-20 10:53:53,293 - DEBUG - Requesting: http://10.0.0.177:8082/project/02427243-c1a5-4fe0-b8f1-c74f9478d6d9
2026-08-20 10:53:53,368 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/ffb768f6-cb3f-4576-9119-ee7872615685
2026-08-20 10:53:53,380 - DEBUG - ==>Verifying data for policy with id: ec138f41-0b76-4d5a-86c5-66cf73286671, fqn: ['default-domain', 'ctest-TestBasicPolicy-36212429', 'ctest-policy-allow-all-30882290']
2026-08-20 10:53:53,380 - INFO - VN ctest-vn-37682331 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 10:53:53,380 - DEBUG - Verifying the vn in opserver
2026-08-20 10:53:53,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-37682331 virtual network link through opserver 10.0.0.177
2026-08-20 10:53:53,380 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-20 10:53:53,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-37682331', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-37682331?flat'}
2026-08-20 10:53:53,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36212429:ctest-vn-37682331 is found in opserver
2026-08-20 10:53:53,403 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 10:53:53,408 - DEBUG - VRF ids for VN ctest-vn-37682331: {}
2026-08-20 10:53:53,482 - DEBUG - Services list from nova: [