2025-09-08 18:59:14,885 - INFO - Domain Default found not creating
2025-09-08 18:59:15,011 - INFO - Project ctest-TestBasicPolicy-09044981 not found, creating it
2025-09-08 18:59:15,427 - INFO - Created Project:ctest-TestBasicPolicy-09044981, ID : cdd54756-4092-4f03-a085-657f2abdc5b7
2025-09-08 18:59:16,737 - INFO - ================================================================================
2025-09-08 18:59:16,737 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 18:59:16,737 - 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-09-08 18:59:16,998 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-08 18:59:16,998 - INFO - Initial checks done. Running the testcase now
2025-09-08 18:59:16,998 - INFO -
2025-09-08 18:59:17,503 - DEBUG - Response for create_network : {'network': {'id': '7e323992-da00-4f9b-ae41-72c2c68ac092', 'name': 'ctest-vn-20678731', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'project_id': 'cdd5475640924f03a085657f2abdc5b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-vn-20678731'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 18:59:17,650 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a912aba7-99d2-42fa-b4ba-9f764ff69580', 'name': '', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'network_id': '7e323992-da00-4f9b-ae41-72c2c68ac092', 'ip_version': 4, 'cidr': '11.102.251.128/26', 'allocation_pools': [{'start': '11.102.251.130', 'end': '11.102.251.190'}], 'gateway_ip': '11.102.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.102.251.130', 'tags': [], 'project_id': 'cdd5475640924f03a085657f2abdc5b7'}}
2025-09-08 18:59:17,665 - INFO - Created VN ctest-vn-20678731
2025-09-08 18:59:17,714 - DEBUG - VN ctest-vn-20678731 UUID is 7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:18,010 - DEBUG - Response for create_network : {'network': {'id': '5799a8bf-6c14-42b6-838f-85ffdafe5578', 'name': 'ctest-vn-94980568', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'project_id': 'cdd5475640924f03a085657f2abdc5b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-vn-94980568'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 18:59:18,202 - DEBUG - Response for create_subnet : {'subnet': {'id': '67e4f321-6eb8-4859-a45f-0a51bda6c3a1', 'name': '', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'network_id': '5799a8bf-6c14-42b6-838f-85ffdafe5578', 'ip_version': 4, 'cidr': '4.180.168.0/26', 'allocation_pools': [{'start': '4.180.168.2', 'end': '4.180.168.62'}], 'gateway_ip': '4.180.168.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.180.168.2', 'tags': [], 'project_id': 'cdd5475640924f03a085657f2abdc5b7'}}
2025-09-08 18:59:18,218 - INFO - Created VN ctest-vn-94980568
2025-09-08 18:59:18,270 - DEBUG - VN ctest-vn-94980568 UUID is 5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:18,414 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731, 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-09044981:ctest-vn-94980568, 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-09-08 18:59:18,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e323992-da00-4f9b-ae41-72c2c68ac092', 'name': 'ctest-vn-20678731', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'project_id': 'cdd5475640924f03a085657f2abdc5b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a912aba7-99d2-42fa-b4ba-9f764ff69580'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-vn-20678731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-policy-allow-all-93628502']], 'subnet_ipam': [{'subnet_cidr': '11.102.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 18:59:18,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5799a8bf-6c14-42b6-838f-85ffdafe5578', 'name': 'ctest-vn-94980568', 'tenant_id': 'cdd5475640924f03a085657f2abdc5b7', 'project_id': 'cdd5475640924f03a085657f2abdc5b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67e4f321-6eb8-4859-a45f-0a51bda6c3a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-vn-94980568'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-policy-allow-all-93628502']], 'subnet_ipam': [{'subnet_cidr': '4.180.168.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 18:59:19,078 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 18:59:19,364 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 18:59:19,388 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750
2025-09-08 18:59:19,399 - DEBUG - Requesting: http://10.0.0.22:8082/project/cdd54756-4092-4f03-a085-657f2abdc5b7
2025-09-08 18:59:19,471 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,479 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,487 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/887d5085-5439-42fe-95ed-904fff82e9f7
2025-09-08 18:59:19,493 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/887d5085-5439-42fe-95ed-904fff82e9f7
2025-09-08 18:59:19,498 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/39c7768f-9354-4016-ac87-42d4cfffbf0d
2025-09-08 18:59:19,504 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 18:59:19,504 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,511 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/887d5085-5439-42fe-95ed-904fff82e9f7
2025-09-08 18:59:19,523 - INFO - Verified VN network id 12 for VN 7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,523 - INFO - Verifications in API Server for VN ctest-vn-20678731 passed
2025-09-08 18:59:19,523 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,531 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/887d5085-5439-42fe-95ed-904fff82e9f7
2025-09-08 18:59:19,536 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/887d5085-5439-42fe-95ed-904fff82e9f7
2025-09-08 18:59:19,542 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/39c7768f-9354-4016-ac87-42d4cfffbf0d
2025-09-08 18:59:19,551 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09044981', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9093393900499914651', 'uuid-lslong': '12556443416965857426'}, 'enable': 'true', 'created': '2025-09-08T18:59:17', 'last-modified': '2025-09-08T18:59:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882103'}
2025-09-08 18:59:19,557 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 18:59:19,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20678731 passed
2025-09-08 18:59:19,557 - DEBUG - ====Verifying policy data for ctest-vn-20678731 in API_Server ======
2025-09-08 18:59:19,557 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 18:59:19,562 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750
2025-09-08 18:59:19,572 - DEBUG - Requesting: http://10.0.0.22:8082/project/cdd54756-4092-4f03-a085-657f2abdc5b7
2025-09-08 18:59:19,636 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e323992-da00-4f9b-ae41-72c2c68ac092
2025-09-08 18:59:19,644 - DEBUG - ==>Verifying data for policy with id: 3a7e92d5-1e0e-4170-a331-a512d51aa0bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-policy-allow-all-93628502']
2025-09-08 18:59:19,644 - INFO - VN ctest-vn-20678731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 18:59:19,644 - DEBUG - Verifying the vn in opserver
2025-09-08 18:59:19,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731 virtual network link through opserver 10.0.0.22
2025-09-08 18:59:19,644 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 18:59:19,931 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 18:59:19,977 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731?flat'}
2025-09-08 18:59:19,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-20678731 is found in opserver
2025-09-08 18:59:19,986 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 18:59:19,990 - DEBUG - VRF ids for VN ctest-vn-20678731: {}
2025-09-08 18:59:19,990 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 18:59:19,994 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750
2025-09-08 18:59:20,003 - DEBUG - Requesting: http://10.0.0.22:8082/project/cdd54756-4092-4f03-a085-657f2abdc5b7
2025-09-08 18:59:20,070 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,080 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,087 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d78e7b91-6864-4c8e-acd4-f9d4bfc746f3
2025-09-08 18:59:20,093 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d78e7b91-6864-4c8e-acd4-f9d4bfc746f3
2025-09-08 18:59:20,098 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/36ceb9d3-cfa4-4552-8b20-f950e2b079d0
2025-09-08 18:59:20,103 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 18:59:20,103 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,110 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d78e7b91-6864-4c8e-acd4-f9d4bfc746f3
2025-09-08 18:59:20,120 - INFO - Verified VN network id 13 for VN 5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,120 - INFO - Verifications in API Server for VN ctest-vn-94980568 passed
2025-09-08 18:59:20,120 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,126 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d78e7b91-6864-4c8e-acd4-f9d4bfc746f3
2025-09-08 18:59:20,131 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d78e7b91-6864-4c8e-acd4-f9d4bfc746f3
2025-09-08 18:59:20,136 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/36ceb9d3-cfa4-4552-8b20-f950e2b079d0
2025-09-08 18:59:20,144 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-94980568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09044981', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6312261892841947830', 'uuid-lslong': '9479943074575439224'}, 'enable': 'true', 'created': '2025-09-08T18:59:17', 'last-modified': '2025-09-08T18:59:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.253035'}
2025-09-08 18:59:20,149 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 18:59:20,149 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94980568 passed
2025-09-08 18:59:20,149 - DEBUG - ====Verifying policy data for ctest-vn-94980568 in API_Server ======
2025-09-08 18:59:20,149 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 18:59:20,154 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750
2025-09-08 18:59:20,162 - DEBUG - Requesting: http://10.0.0.22:8082/project/cdd54756-4092-4f03-a085-657f2abdc5b7
2025-09-08 18:59:20,229 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5799a8bf-6c14-42b6-838f-85ffdafe5578
2025-09-08 18:59:20,237 - DEBUG - ==>Verifying data for policy with id: 3a7e92d5-1e0e-4170-a331-a512d51aa0bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-09044981', 'ctest-policy-allow-all-93628502']
2025-09-08 18:59:20,237 - INFO - VN ctest-vn-94980568 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 18:59:20,237 - DEBUG - Verifying the vn in opserver
2025-09-08 18:59:20,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-94980568 virtual network link through opserver 10.0.0.22
2025-09-08 18:59:20,237 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 18:59:20,245 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-94980568', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-94980568?flat'}
2025-09-08 18:59:20,245 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09044981:ctest-vn-94980568 is found in opserver
2025-09-08 18:59:20,252 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 18:59:20,257 - DEBUG - VRF ids for VN ctest-vn-94980568: {}
2025-09-08 18:59:20,303 - DEBUG - Services list from nova: [