2025-08-31 07:22:36,238 - INFO - Domain Default found not creating
2025-08-31 07:22:36,390 - INFO - Project ctest-TestBasicPolicy-71873459 not found, creating it
2025-08-31 07:22:36,852 - INFO - Created Project:ctest-TestBasicPolicy-71873459, ID : 54c472a6-251c-40e9-aa4a-3033bef2fd56
2025-08-31 07:22:38,305 - INFO - ================================================================================
2025-08-31 07:22:38,305 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-31 07:22:38,305 - 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-08-31 07:22:38,558 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-08-31 07:22:38,558 - INFO - Initial checks done. Running the testcase now
2025-08-31 07:22:38,558 - INFO -
2025-08-31 07:22:39,088 - DEBUG - Response for create_network : {'network': {'id': '10d8a8ec-e245-431a-aa20-e74e8163405f', 'name': 'ctest-vn-55949134', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'project_id': '54c472a6251c40e9aa4a3033bef2fd56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-vn-55949134'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 07:22:39,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '974b2202-5c60-4d11-968b-de4269c9c3b7', 'name': '', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'network_id': '10d8a8ec-e245-431a-aa20-e74e8163405f', 'ip_version': 4, 'cidr': '202.28.60.128/26', 'allocation_pools': [{'start': '202.28.60.130', 'end': '202.28.60.190'}], 'gateway_ip': '202.28.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.28.60.130', 'tags': [], 'project_id': '54c472a6251c40e9aa4a3033bef2fd56'}}
2025-08-31 07:22:39,303 - INFO - Created VN ctest-vn-55949134
2025-08-31 07:22:39,357 - DEBUG - VN ctest-vn-55949134 UUID is 10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:39,663 - DEBUG - Response for create_network : {'network': {'id': '00ac8a66-87fd-4b88-bd79-ac2d01238167', 'name': 'ctest-vn-09930498', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'project_id': '54c472a6251c40e9aa4a3033bef2fd56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-vn-09930498'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 07:22:39,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '47fa36eb-636a-4fa8-8008-32aed4d0f35c', 'name': '', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'network_id': '00ac8a66-87fd-4b88-bd79-ac2d01238167', 'ip_version': 4, 'cidr': '63.131.38.128/26', 'allocation_pools': [{'start': '63.131.38.130', 'end': '63.131.38.190'}], 'gateway_ip': '63.131.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.131.38.130', 'tags': [], 'project_id': '54c472a6251c40e9aa4a3033bef2fd56'}}
2025-08-31 07:22:39,849 - INFO - Created VN ctest-vn-09930498
2025-08-31 07:22:39,901 - DEBUG - VN ctest-vn-09930498 UUID is 00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:40,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134, 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-71873459:ctest-vn-09930498, 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-08-31 07:22:40,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10d8a8ec-e245-431a-aa20-e74e8163405f', 'name': 'ctest-vn-55949134', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'project_id': '54c472a6251c40e9aa4a3033bef2fd56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['974b2202-5c60-4d11-968b-de4269c9c3b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-vn-55949134'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-policy-allow-all-98466214']], 'subnet_ipam': [{'subnet_cidr': '202.28.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 07:22:40,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00ac8a66-87fd-4b88-bd79-ac2d01238167', 'name': 'ctest-vn-09930498', 'tenant_id': '54c472a6251c40e9aa4a3033bef2fd56', 'project_id': '54c472a6251c40e9aa4a3033bef2fd56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47fa36eb-636a-4fa8-8008-32aed4d0f35c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-vn-09930498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-policy-allow-all-98466214']], 'subnet_ipam': [{'subnet_cidr': '63.131.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 07:22:40,737 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 07:22:41,031 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 07:22:41,058 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fffad682-d985-4662-b1c5-1b7d3c7bc424
2025-08-31 07:22:41,069 - DEBUG - Requesting: http://10.0.0.33:8082/project/54c472a6-251c-40e9-aa4a-3033bef2fd56
2025-08-31 07:22:41,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,154 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,163 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7b285787-e024-4a35-bb63-bea6b68fac9c
2025-08-31 07:22:41,170 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7b285787-e024-4a35-bb63-bea6b68fac9c
2025-08-31 07:22:41,176 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b200ae55-e521-4dfe-b8c4-a17c7e4f041a
2025-08-31 07:22:41,182 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 07:22:41,182 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,190 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7b285787-e024-4a35-bb63-bea6b68fac9c
2025-08-31 07:22:41,204 - INFO - Verified VN network id 11 for VN 10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,204 - INFO - Verifications in API Server for VN ctest-vn-55949134 passed
2025-08-31 07:22:41,204 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,213 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7b285787-e024-4a35-bb63-bea6b68fac9c
2025-08-31 07:22:41,219 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7b285787-e024-4a35-bb63-bea6b68fac9c
2025-08-31 07:22:41,226 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b200ae55-e521-4dfe-b8c4-a17c7e4f041a
2025-08-31 07:22:41,238 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71873459', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1213905834938286874', 'uuid-lslong': '12259052510066720863'}, 'enable': 'true', 'created': '2025-08-31T07:22:39', 'last-modified': '2025-08-31T07:22:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917896'}
2025-08-31 07:22:41,243 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 07:22:41,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55949134 passed
2025-08-31 07:22:41,244 - DEBUG - ====Verifying policy data for ctest-vn-55949134 in API_Server ======
2025-08-31 07:22:41,244 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 07:22:41,249 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fffad682-d985-4662-b1c5-1b7d3c7bc424
2025-08-31 07:22:41,258 - DEBUG - Requesting: http://10.0.0.33:8082/project/54c472a6-251c-40e9-aa4a-3033bef2fd56
2025-08-31 07:22:41,331 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10d8a8ec-e245-431a-aa20-e74e8163405f
2025-08-31 07:22:41,340 - DEBUG - ==>Verifying data for policy with id: 74318551-8c23-42bc-a663-033e52a37e7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-policy-allow-all-98466214']
2025-08-31 07:22:41,341 - INFO - VN ctest-vn-55949134 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 07:22:41,341 - DEBUG - Verifying the vn in opserver
2025-08-31 07:22:41,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134 virtual network link through opserver 10.0.0.33
2025-08-31 07:22:41,341 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 07:22:41,645 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 07:22:41,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134?flat'}
2025-08-31 07:22:41,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-55949134 is found in opserver
2025-08-31 07:22:41,714 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 07:22:41,719 - DEBUG - VRF ids for VN ctest-vn-55949134: {}
2025-08-31 07:22:41,720 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 07:22:41,725 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fffad682-d985-4662-b1c5-1b7d3c7bc424
2025-08-31 07:22:41,736 - DEBUG - Requesting: http://10.0.0.33:8082/project/54c472a6-251c-40e9-aa4a-3033bef2fd56
2025-08-31 07:22:41,805 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,816 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,824 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3e668296-d9be-4b84-9cb5-864d77475fd7
2025-08-31 07:22:41,831 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3e668296-d9be-4b84-9cb5-864d77475fd7
2025-08-31 07:22:41,837 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2fc26c31-b16a-456f-a157-bd8dad374f8c
2025-08-31 07:22:41,843 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 07:22:41,843 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,851 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3e668296-d9be-4b84-9cb5-864d77475fd7
2025-08-31 07:22:41,864 - INFO - Verified VN network id 12 for VN 00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,864 - INFO - Verifications in API Server for VN ctest-vn-09930498 passed
2025-08-31 07:22:41,865 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,873 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3e668296-d9be-4b84-9cb5-864d77475fd7
2025-08-31 07:22:41,879 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3e668296-d9be-4b84-9cb5-864d77475fd7
2025-08-31 07:22:41,886 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2fc26c31-b16a-456f-a157-bd8dad374f8c
2025-08-31 07:22:41,895 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-09930498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71873459', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '48565868967054216', 'uuid-lslong': '13653133054642979175'}, 'enable': 'true', 'created': '2025-08-31T07:22:39', 'last-modified': '2025-08-31T07:22:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350385'}
2025-08-31 07:22:41,902 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 07:22:41,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09930498 passed
2025-08-31 07:22:41,902 - DEBUG - ====Verifying policy data for ctest-vn-09930498 in API_Server ======
2025-08-31 07:22:41,902 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-31 07:22:41,907 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fffad682-d985-4662-b1c5-1b7d3c7bc424
2025-08-31 07:22:41,917 - DEBUG - Requesting: http://10.0.0.33:8082/project/54c472a6-251c-40e9-aa4a-3033bef2fd56
2025-08-31 07:22:41,987 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00ac8a66-87fd-4b88-bd79-ac2d01238167
2025-08-31 07:22:41,995 - DEBUG - ==>Verifying data for policy with id: 74318551-8c23-42bc-a663-033e52a37e7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-71873459', 'ctest-policy-allow-all-98466214']
2025-08-31 07:22:41,995 - INFO - VN ctest-vn-09930498 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 07:22:41,995 - DEBUG - Verifying the vn in opserver
2025-08-31 07:22:41,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-09930498 virtual network link through opserver 10.0.0.33
2025-08-31 07:22:41,995 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-31 07:22:42,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-09930498', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-09930498?flat'}
2025-08-31 07:22:42,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71873459:ctest-vn-09930498 is found in opserver
2025-08-31 07:22:42,015 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 07:22:42,019 - DEBUG - VRF ids for VN ctest-vn-09930498: {}
2025-08-31 07:22:42,072 - DEBUG - Services list from nova: [