2025-07-08 15:42:12,643 - INFO - Domain Default found not creating
2025-07-08 15:42:12,897 - INFO - Project ctest-TestBasicPolicy-61636042 not found, creating it
2025-07-08 15:42:13,557 - INFO - Created Project:ctest-TestBasicPolicy-61636042, ID : 1771fc62-58fb-470a-9ba6-afcabca0c55c
2025-07-08 15:42:15,691 - INFO - ================================================================================
2025-07-08 15:42:15,691 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-08 15:42:15,691 - 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-08 15:42:16,020 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-08 15:42:16,020 - INFO - Initial checks done. Running the testcase now
2025-07-08 15:42:16,021 - INFO -
2025-07-08 15:42:16,881 - DEBUG - Response for create_network : {'network': {'id': '91b7e63a-448b-4133-9ea7-67cc1692fe78', 'name': 'ctest-vn-22404691', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'project_id': '1771fc6258fb470a9ba6afcabca0c55c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-vn-22404691'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 15:42:17,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a26ba9b-2613-4b8c-ae6c-a1d9f12c0fc3', 'name': '', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'network_id': '91b7e63a-448b-4133-9ea7-67cc1692fe78', 'ip_version': 4, 'cidr': '55.90.101.192/26', 'allocation_pools': [{'start': '55.90.101.194', 'end': '55.90.101.254'}], 'gateway_ip': '55.90.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.90.101.194', 'tags': [], 'project_id': '1771fc6258fb470a9ba6afcabca0c55c'}}
2025-07-08 15:42:17,223 - INFO - Created VN ctest-vn-22404691
2025-07-08 15:42:17,289 - DEBUG - VN ctest-vn-22404691 UUID is 91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:17,859 - DEBUG - Response for create_network : {'network': {'id': '75730020-7ea0-492f-a516-00cbf8f67f9f', 'name': 'ctest-vn-30422362', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'project_id': '1771fc6258fb470a9ba6afcabca0c55c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-vn-30422362'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 15:42:18,190 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb0fd47f-8bd3-488b-aed4-faa131d6cbf3', 'name': '', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'network_id': '75730020-7ea0-492f-a516-00cbf8f67f9f', 'ip_version': 4, 'cidr': '99.73.173.0/26', 'allocation_pools': [{'start': '99.73.173.2', 'end': '99.73.173.62'}], 'gateway_ip': '99.73.173.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.73.173.2', 'tags': [], 'project_id': '1771fc6258fb470a9ba6afcabca0c55c'}}
2025-07-08 15:42:18,227 - INFO - Created VN ctest-vn-30422362
2025-07-08 15:42:18,288 - DEBUG - VN ctest-vn-30422362 UUID is 75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:18,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691, 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-61636042:ctest-vn-30422362, 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-08 15:42:18,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91b7e63a-448b-4133-9ea7-67cc1692fe78', 'name': 'ctest-vn-22404691', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'project_id': '1771fc6258fb470a9ba6afcabca0c55c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a26ba9b-2613-4b8c-ae6c-a1d9f12c0fc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-vn-22404691'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-policy-allow-all-35482228']], 'subnet_ipam': [{'subnet_cidr': '55.90.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 15:42:19,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75730020-7ea0-492f-a516-00cbf8f67f9f', 'name': 'ctest-vn-30422362', 'tenant_id': '1771fc6258fb470a9ba6afcabca0c55c', 'project_id': '1771fc6258fb470a9ba6afcabca0c55c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb0fd47f-8bd3-488b-aed4-faa131d6cbf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-vn-30422362'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-policy-allow-all-35482228']], 'subnet_ipam': [{'subnet_cidr': '99.73.173.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 15:42:19,556 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 15:42:19,899 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 15:42:19,956 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69a0b9d8-0a54-4563-925e-43a30f6e3510
2025-07-08 15:42:20,006 - DEBUG - Requesting: http://10.0.0.50:8082/project/1771fc62-58fb-470a-9ba6-afcabca0c55c
2025-07-08 15:42:20,116 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,143 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,171 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f1d0be8-f717-404e-80bc-69f2cd3bdc2d
2025-07-08 15:42:20,189 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f1d0be8-f717-404e-80bc-69f2cd3bdc2d
2025-07-08 15:42:20,211 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/805944c9-334a-4f68-a88d-1e3ff7ed6724
2025-07-08 15:42:20,234 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 15:42:20,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f1d0be8-f717-404e-80bc-69f2cd3bdc2d
2025-07-08 15:42:20,293 - INFO - Verified VN network id 7 for VN 91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,293 - INFO - Verifications in API Server for VN ctest-vn-22404691 passed
2025-07-08 15:42:20,294 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f1d0be8-f717-404e-80bc-69f2cd3bdc2d
2025-07-08 15:42:20,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f1d0be8-f717-404e-80bc-69f2cd3bdc2d
2025-07-08 15:42:20,331 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/805944c9-334a-4f68-a88d-1e3ff7ed6724
2025-07-08 15:42:20,363 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61636042', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10500114194170069299', 'uuid-lslong': '11432220305353014904'}, 'enable': 'true', 'created': '2025-07-08T15:42:16', 'last-modified': '2025-07-08T15:42:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450373'}
2025-07-08 15:42:20,379 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 15:42:20,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22404691 passed
2025-07-08 15:42:20,380 - DEBUG - ====Verifying policy data for ctest-vn-22404691 in API_Server ======
2025-07-08 15:42:20,380 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 15:42:20,393 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69a0b9d8-0a54-4563-925e-43a30f6e3510
2025-07-08 15:42:20,414 - DEBUG - Requesting: http://10.0.0.50:8082/project/1771fc62-58fb-470a-9ba6-afcabca0c55c
2025-07-08 15:42:20,541 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b7e63a-448b-4133-9ea7-67cc1692fe78
2025-07-08 15:42:20,563 - DEBUG - ==>Verifying data for policy with id: ea21ee73-b0e8-425f-acf0-3be8cc378932, fqn: ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-policy-allow-all-35482228']
2025-07-08 15:42:20,563 - INFO - VN ctest-vn-22404691 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 15:42:20,563 - DEBUG - Verifying the vn in opserver
2025-07-08 15:42:20,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691 virtual network link through opserver 10.0.0.50
2025-07-08 15:42:20,563 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 15:42:20,877 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 15:42:20,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691?flat'}
2025-07-08 15:42:20,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-22404691 is found in opserver
2025-07-08 15:42:21,007 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 15:42:21,022 - DEBUG - VRF ids for VN ctest-vn-22404691: {}
2025-07-08 15:42:21,022 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 15:42:21,030 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69a0b9d8-0a54-4563-925e-43a30f6e3510
2025-07-08 15:42:21,048 - DEBUG - Requesting: http://10.0.0.50:8082/project/1771fc62-58fb-470a-9ba6-afcabca0c55c
2025-07-08 15:42:21,158 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,186 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9d7347bd-23ec-4ec1-907e-e317cb580d54
2025-07-08 15:42:21,227 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9d7347bd-23ec-4ec1-907e-e317cb580d54
2025-07-08 15:42:21,245 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a1b6148-e1f2-4a70-999f-c7bbd4fec3af
2025-07-08 15:42:21,265 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 15:42:21,265 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,290 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9d7347bd-23ec-4ec1-907e-e317cb580d54
2025-07-08 15:42:21,319 - INFO - Verified VN network id 8 for VN 75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,320 - INFO - Verifications in API Server for VN ctest-vn-30422362 passed
2025-07-08 15:42:21,320 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,339 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9d7347bd-23ec-4ec1-907e-e317cb580d54
2025-07-08 15:42:21,353 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9d7347bd-23ec-4ec1-907e-e317cb580d54
2025-07-08 15:42:21,366 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a1b6148-e1f2-4a70-999f-c7bbd4fec3af
2025-07-08 15:42:21,385 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-30422362', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61636042', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8463108264322681135', 'uuid-lslong': '11895696341801009055'}, 'enable': 'true', 'created': '2025-07-08T15:42:17', 'last-modified': '2025-07-08T15:42:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.132645'}
2025-07-08 15:42:21,395 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 15:42:21,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30422362 passed
2025-07-08 15:42:21,395 - DEBUG - ====Verifying policy data for ctest-vn-30422362 in API_Server ======
2025-07-08 15:42:21,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 15:42:21,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/69a0b9d8-0a54-4563-925e-43a30f6e3510
2025-07-08 15:42:21,421 - DEBUG - Requesting: http://10.0.0.50:8082/project/1771fc62-58fb-470a-9ba6-afcabca0c55c
2025-07-08 15:42:21,517 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/75730020-7ea0-492f-a516-00cbf8f67f9f
2025-07-08 15:42:21,536 - DEBUG - ==>Verifying data for policy with id: ea21ee73-b0e8-425f-acf0-3be8cc378932, fqn: ['default-domain', 'ctest-TestBasicPolicy-61636042', 'ctest-policy-allow-all-35482228']
2025-07-08 15:42:21,536 - INFO - VN ctest-vn-30422362 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 15:42:21,536 - DEBUG - Verifying the vn in opserver
2025-07-08 15:42:21,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-30422362 virtual network link through opserver 10.0.0.50
2025-07-08 15:42:21,536 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 15:42:21,556 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-30422362', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-30422362?flat'}
2025-07-08 15:42:21,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61636042:ctest-vn-30422362 is found in opserver
2025-07-08 15:42:21,571 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 15:42:21,579 - DEBUG - VRF ids for VN ctest-vn-30422362: {}
2025-07-08 15:42:21,674 - DEBUG - Services list from nova: [