2025-07-21 10:19:26,218 - INFO - Domain Default found not creating
2025-07-21 10:19:26,601 - INFO - Project ctest-TestBasicPolicy-56935529 not found, creating it
2025-07-21 10:19:27,414 - INFO - Created Project:ctest-TestBasicPolicy-56935529, ID : 3c6577ed-a296-4a5d-89bf-c343746c39c7
2025-07-21 10:19:29,422 - INFO - ================================================================================
2025-07-21 10:19:29,422 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 10:19:29,423 - 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-07-21 10:19:29,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-21 10:19:29,768 - INFO - Initial checks done. Running the testcase now
2025-07-21 10:19:29,769 - INFO -
2025-07-21 10:19:30,494 - DEBUG - Response for create_network : {'network': {'id': '553c7ce9-1de4-41ce-912e-4849917e4345', 'name': 'ctest-vn-74376831', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'project_id': '3c6577eda2964a5d89bfc343746c39c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-vn-74376831'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 10:19:30,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '3357f3df-8667-47d8-92c5-36182e9d8022', 'name': '', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'network_id': '553c7ce9-1de4-41ce-912e-4849917e4345', 'ip_version': 4, 'cidr': '28.86.151.64/26', 'allocation_pools': [{'start': '28.86.151.66', 'end': '28.86.151.126'}], 'gateway_ip': '28.86.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.86.151.66', 'tags': [], 'project_id': '3c6577eda2964a5d89bfc343746c39c7'}}
2025-07-21 10:19:30,781 - INFO - Created VN ctest-vn-74376831
2025-07-21 10:19:30,841 - DEBUG - VN ctest-vn-74376831 UUID is 553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:31,442 - DEBUG - Response for create_network : {'network': {'id': '6fa43e9c-0593-40dc-a78b-3e9ede800f68', 'name': 'ctest-vn-00924053', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'project_id': '3c6577eda2964a5d89bfc343746c39c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-vn-00924053'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 10:19:31,730 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b96228a7-3532-4c2f-a700-0c94efb2bbdb', 'name': '', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'network_id': '6fa43e9c-0593-40dc-a78b-3e9ede800f68', 'ip_version': 4, 'cidr': '62.56.196.192/26', 'allocation_pools': [{'start': '62.56.196.194', 'end': '62.56.196.254'}], 'gateway_ip': '62.56.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.56.196.194', 'tags': [], 'project_id': '3c6577eda2964a5d89bfc343746c39c7'}}
2025-07-21 10:19:31,759 - INFO - Created VN ctest-vn-00924053
2025-07-21 10:19:31,825 - DEBUG - VN ctest-vn-00924053 UUID is 6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:32,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831, 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-56935529:ctest-vn-00924053, 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-07-21 10:19:32,517 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '553c7ce9-1de4-41ce-912e-4849917e4345', 'name': 'ctest-vn-74376831', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'project_id': '3c6577eda2964a5d89bfc343746c39c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3357f3df-8667-47d8-92c5-36182e9d8022'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-vn-74376831'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-policy-allow-all-71604150']], 'subnet_ipam': [{'subnet_cidr': '28.86.151.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 10:19:32,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fa43e9c-0593-40dc-a78b-3e9ede800f68', 'name': 'ctest-vn-00924053', 'tenant_id': '3c6577eda2964a5d89bfc343746c39c7', 'project_id': '3c6577eda2964a5d89bfc343746c39c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b96228a7-3532-4c2f-a700-0c94efb2bbdb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-vn-00924053'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-policy-allow-all-71604150']], 'subnet_ipam': [{'subnet_cidr': '62.56.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 10:19:32,953 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 10:19:33,321 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 10:19:33,374 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 10:19:33,399 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c6577ed-a296-4a5d-89bf-c343746c39c7
2025-07-21 10:19:33,526 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:33,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:33,580 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/98b93b9f-4059-4e99-af4e-b6dc14d6a7ff
2025-07-21 10:19:33,600 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/98b93b9f-4059-4e99-af4e-b6dc14d6a7ff
2025-07-21 10:19:33,620 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2d3f0fe7-68ce-47c7-91a2-20386826136c
2025-07-21 10:19:33,638 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 10:19:33,639 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:33,665 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/98b93b9f-4059-4e99-af4e-b6dc14d6a7ff
2025-07-21 10:19:33,711 - INFO - Verified VN network id 9 for VN 553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:33,711 - INFO - Verifications in API Server for VN ctest-vn-74376831 passed
2025-07-21 10:19:33,712 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:33,755 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/98b93b9f-4059-4e99-af4e-b6dc14d6a7ff
2025-07-21 10:19:33,782 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/98b93b9f-4059-4e99-af4e-b6dc14d6a7ff
2025-07-21 10:19:33,801 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2d3f0fe7-68ce-47c7-91a2-20386826136c
2025-07-21 10:19:33,838 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56935529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6141921332497236430', 'uuid-lslong': '10461378465239024453'}, 'enable': 'true', 'created': '2025-07-21T10:19:30', 'last-modified': '2025-07-21T10:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368699'}
2025-07-21 10:19:33,864 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 10:19:33,865 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74376831 passed
2025-07-21 10:19:33,865 - DEBUG - ====Verifying policy data for ctest-vn-74376831 in API_Server ======
2025-07-21 10:19:33,866 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 10:19:33,883 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 10:19:33,918 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c6577ed-a296-4a5d-89bf-c343746c39c7
2025-07-21 10:19:34,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/553c7ce9-1de4-41ce-912e-4849917e4345
2025-07-21 10:19:34,073 - DEBUG - ==>Verifying data for policy with id: 2d6110e7-3f60-42d9-9634-2f788318131d, fqn: ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-policy-allow-all-71604150']
2025-07-21 10:19:34,073 - INFO - VN ctest-vn-74376831 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 10:19:34,074 - DEBUG - Verifying the vn in opserver
2025-07-21 10:19:34,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831 virtual network link through opserver 10.0.0.254
2025-07-21 10:19:34,074 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 10:19:34,441 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 10:19:34,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831?flat'}
2025-07-21 10:19:34,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-74376831 is found in opserver
2025-07-21 10:19:34,584 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 10:19:34,604 - DEBUG - VRF ids for VN ctest-vn-74376831: {}
2025-07-21 10:19:34,604 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 10:19:34,623 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 10:19:34,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c6577ed-a296-4a5d-89bf-c343746c39c7
2025-07-21 10:19:34,809 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:34,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:34,867 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79f2f300-5c95-48ca-9d8b-9a1f9e44bc23
2025-07-21 10:19:34,884 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79f2f300-5c95-48ca-9d8b-9a1f9e44bc23
2025-07-21 10:19:34,902 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/367a5724-2890-4e93-b1d7-d19f34f87277
2025-07-21 10:19:34,921 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 10:19:34,921 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:34,948 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79f2f300-5c95-48ca-9d8b-9a1f9e44bc23
2025-07-21 10:19:34,999 - INFO - Verified VN network id 10 for VN 6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:35,000 - INFO - Verifications in API Server for VN ctest-vn-00924053 passed
2025-07-21 10:19:35,000 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:35,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79f2f300-5c95-48ca-9d8b-9a1f9e44bc23
2025-07-21 10:19:35,037 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/79f2f300-5c95-48ca-9d8b-9a1f9e44bc23
2025-07-21 10:19:35,049 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/367a5724-2890-4e93-b1d7-d19f34f87277
2025-07-21 10:19:35,082 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-00924053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56935529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8044623674219905244', 'uuid-lslong': '12072812078155435880'}, 'enable': 'true', 'created': '2025-07-21T10:19:31', 'last-modified': '2025-07-21T10:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.317897'}
2025-07-21 10:19:35,101 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 10:19:35,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00924053 passed
2025-07-21 10:19:35,102 - DEBUG - ====Verifying policy data for ctest-vn-00924053 in API_Server ======
2025-07-21 10:19:35,102 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 10:19:35,116 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33
2025-07-21 10:19:35,145 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c6577ed-a296-4a5d-89bf-c343746c39c7
2025-07-21 10:19:35,267 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa43e9c-0593-40dc-a78b-3e9ede800f68
2025-07-21 10:19:35,292 - DEBUG - ==>Verifying data for policy with id: 2d6110e7-3f60-42d9-9634-2f788318131d, fqn: ['default-domain', 'ctest-TestBasicPolicy-56935529', 'ctest-policy-allow-all-71604150']
2025-07-21 10:19:35,292 - INFO - VN ctest-vn-00924053 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 10:19:35,292 - DEBUG - Verifying the vn in opserver
2025-07-21 10:19:35,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-00924053 virtual network link through opserver 10.0.0.254
2025-07-21 10:19:35,293 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 10:19:35,325 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-00924053', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-00924053?flat'}
2025-07-21 10:19:35,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56935529:ctest-vn-00924053 is found in opserver
2025-07-21 10:19:35,363 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 10:19:35,382 - DEBUG - VRF ids for VN ctest-vn-00924053: {}
2025-07-21 10:19:35,511 - DEBUG - Services list from nova: [