2026-05-30 07:09:15,921 - INFO - Domain Default found not creating
2026-05-30 07:09:16,116 - INFO - Project ctest-TestBasicPolicy-91414866 not found, creating it
2026-05-30 07:09:16,591 - INFO - Created Project:ctest-TestBasicPolicy-91414866, ID : cc372b7e-9cd0-4237-825f-d196fd776191
2026-05-30 07:09:18,114 - INFO - ================================================================================
2026-05-30 07:09:18,114 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-30 07:09:18,114 - 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-05-30 07:09:18,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-05-30 07:09:18,372 - INFO - Initial checks done. Running the testcase now
2026-05-30 07:09:18,372 - INFO -
2026-05-30 07:09:18,941 - DEBUG - Response for create_network : {'network': {'id': 'da4e88df-b7d7-43ed-b44c-fedbfb00107c', 'name': 'ctest-vn-49351535', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'project_id': 'cc372b7e9cd04237825fd196fd776191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-vn-49351535'], 'port_security_enabled': True, 'description': ''}}
2026-05-30 07:09:19,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '30e7101f-d155-4d0e-acd7-8124fa683034', 'name': '', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'network_id': 'da4e88df-b7d7-43ed-b44c-fedbfb00107c', 'ip_version': 4, 'cidr': '41.185.121.64/26', 'allocation_pools': [{'start': '41.185.121.66', 'end': '41.185.121.126'}], 'gateway_ip': '41.185.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.185.121.66', 'tags': [], 'project_id': 'cc372b7e9cd04237825fd196fd776191'}}
2026-05-30 07:09:19,122 - INFO - Created VN ctest-vn-49351535
2026-05-30 07:09:19,177 - DEBUG - VN ctest-vn-49351535 UUID is da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:19,505 - DEBUG - Response for create_network : {'network': {'id': '9e2232d0-e535-4f05-962e-12b27d19745b', 'name': 'ctest-vn-93178088', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'project_id': 'cc372b7e9cd04237825fd196fd776191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-vn-93178088'], 'port_security_enabled': True, 'description': ''}}
2026-05-30 07:09:19,699 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5841e09-e49e-4612-9412-129c912e4ea3', 'name': '', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'network_id': '9e2232d0-e535-4f05-962e-12b27d19745b', 'ip_version': 4, 'cidr': '104.17.46.0/26', 'allocation_pools': [{'start': '104.17.46.2', 'end': '104.17.46.62'}], 'gateway_ip': '104.17.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.17.46.2', 'tags': [], 'project_id': 'cc372b7e9cd04237825fd196fd776191'}}
2026-05-30 07:09:19,720 - INFO - Created VN ctest-vn-93178088
2026-05-30 07:09:19,773 - DEBUG - VN ctest-vn-93178088 UUID is 9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:19,900 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535, 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-91414866:ctest-vn-93178088, 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-05-30 07:09:20,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da4e88df-b7d7-43ed-b44c-fedbfb00107c', 'name': 'ctest-vn-49351535', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'project_id': 'cc372b7e9cd04237825fd196fd776191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30e7101f-d155-4d0e-acd7-8124fa683034'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-vn-49351535'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-policy-allow-all-14795455']], 'subnet_ipam': [{'subnet_cidr': '41.185.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-30 07:09:20,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e2232d0-e535-4f05-962e-12b27d19745b', 'name': 'ctest-vn-93178088', 'tenant_id': 'cc372b7e9cd04237825fd196fd776191', 'project_id': 'cc372b7e9cd04237825fd196fd776191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5841e09-e49e-4612-9412-129c912e4ea3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-vn-93178088'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-policy-allow-all-14795455']], 'subnet_ipam': [{'subnet_cidr': '104.17.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-30 07:09:20,601 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-30 07:09:20,898 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-30 07:09:20,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76
2026-05-30 07:09:20,946 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc372b7e-9cd0-4237-825f-d196fd776191
2026-05-30 07:09:21,018 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7dbc94f-2602-41a4-8f6a-6f548598e2c4
2026-05-30 07:09:21,046 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7dbc94f-2602-41a4-8f6a-6f548598e2c4
2026-05-30 07:09:21,054 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3e726b2d-cd4e-4906-9a1e-7699ea58fa27
2026-05-30 07:09:21,060 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-30 07:09:21,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7dbc94f-2602-41a4-8f6a-6f548598e2c4
2026-05-30 07:09:21,084 - INFO - Verified VN network id 11 for VN da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,084 - INFO - Verifications in API Server for VN ctest-vn-49351535 passed
2026-05-30 07:09:21,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7dbc94f-2602-41a4-8f6a-6f548598e2c4
2026-05-30 07:09:21,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7dbc94f-2602-41a4-8f6a-6f548598e2c4
2026-05-30 07:09:21,108 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3e726b2d-cd4e-4906-9a1e-7699ea58fa27
2026-05-30 07:09:21,124 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91414866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15730661042895143917', 'uuid-lslong': '12992039245819416700'}, 'enable': 'true', 'created': '2026-05-30T07:09:18', 'last-modified': '2026-05-30T07:09:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951148'}
2026-05-30 07:09:21,131 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-30 07:09:21,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49351535 passed
2026-05-30 07:09:21,131 - DEBUG - ====Verifying policy data for ctest-vn-49351535 in API_Server ======
2026-05-30 07:09:21,131 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-30 07:09:21,137 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76
2026-05-30 07:09:21,151 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc372b7e-9cd0-4237-825f-d196fd776191
2026-05-30 07:09:21,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da4e88df-b7d7-43ed-b44c-fedbfb00107c
2026-05-30 07:09:21,234 - DEBUG - ==>Verifying data for policy with id: 3f4f4a6d-e391-4f50-9e99-fc867f3db2b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-policy-allow-all-14795455']
2026-05-30 07:09:21,234 - INFO - VN ctest-vn-49351535 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-30 07:09:21,235 - DEBUG - Verifying the vn in opserver
2026-05-30 07:09:21,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535 virtual network link through opserver 10.0.0.38
2026-05-30 07:09:21,235 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-30 07:09:21,532 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-30 07:09:21,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535?flat'}
2026-05-30 07:09:21,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-49351535 is found in opserver
2026-05-30 07:09:21,612 - DEBUG - Do not have enough data to verify VN in agent
2026-05-30 07:09:21,617 - DEBUG - VRF ids for VN ctest-vn-49351535: {}
2026-05-30 07:09:21,617 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-30 07:09:21,623 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76
2026-05-30 07:09:21,635 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc372b7e-9cd0-4237-825f-d196fd776191
2026-05-30 07:09:21,708 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/221c2dad-a446-479d-ba04-66b01a7154ed
2026-05-30 07:09:21,738 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/221c2dad-a446-479d-ba04-66b01a7154ed
2026-05-30 07:09:21,745 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/beab1b31-3e4e-43bc-94e4-db360f8bf7db
2026-05-30 07:09:21,752 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-30 07:09:21,752 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/221c2dad-a446-479d-ba04-66b01a7154ed
2026-05-30 07:09:21,778 - INFO - Verified VN network id 12 for VN 9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,778 - INFO - Verifications in API Server for VN ctest-vn-93178088 passed
2026-05-30 07:09:21,778 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/221c2dad-a446-479d-ba04-66b01a7154ed
2026-05-30 07:09:21,795 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/221c2dad-a446-479d-ba04-66b01a7154ed
2026-05-30 07:09:21,804 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/beab1b31-3e4e-43bc-94e4-db360f8bf7db
2026-05-30 07:09:21,819 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-93178088', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91414866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11394725879980838661', 'uuid-lslong': '10821607512430179419'}, 'enable': 'true', 'created': '2026-05-30T07:09:19', 'last-modified': '2026-05-30T07:09:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414526'}
2026-05-30 07:09:21,826 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-30 07:09:21,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93178088 passed
2026-05-30 07:09:21,827 - DEBUG - ====Verifying policy data for ctest-vn-93178088 in API_Server ======
2026-05-30 07:09:21,827 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-30 07:09:21,832 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76
2026-05-30 07:09:21,847 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc372b7e-9cd0-4237-825f-d196fd776191
2026-05-30 07:09:21,920 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9e2232d0-e535-4f05-962e-12b27d19745b
2026-05-30 07:09:21,930 - DEBUG - ==>Verifying data for policy with id: 3f4f4a6d-e391-4f50-9e99-fc867f3db2b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-91414866', 'ctest-policy-allow-all-14795455']
2026-05-30 07:09:21,930 - INFO - VN ctest-vn-93178088 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-30 07:09:21,930 - DEBUG - Verifying the vn in opserver
2026-05-30 07:09:21,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-93178088 virtual network link through opserver 10.0.0.38
2026-05-30 07:09:21,930 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-30 07:09:21,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-93178088', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-93178088?flat'}
2026-05-30 07:09:21,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91414866:ctest-vn-93178088 is found in opserver
2026-05-30 07:09:21,949 - DEBUG - Do not have enough data to verify VN in agent
2026-05-30 07:09:21,954 - DEBUG - VRF ids for VN ctest-vn-93178088: {}
2026-05-30 07:09:22,012 - DEBUG - Services list from nova: [