2025-08-15 16:32:31,810 - INFO - Domain Default found not creating
2025-08-15 16:32:31,942 - INFO - Project ctest-TestBasicPolicy-91370464 not found, creating it
2025-08-15 16:32:32,369 - INFO - Created Project:ctest-TestBasicPolicy-91370464, ID : 1d5fb2e9-94fb-4349-891d-2177233fb424
2025-08-15 16:32:33,766 - INFO - ================================================================================
2025-08-15 16:32:33,766 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 16:32:33,766 - 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-15 16:32:34,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-08-15 16:32:34,016 - INFO - Initial checks done. Running the testcase now
2025-08-15 16:32:34,017 - INFO -
2025-08-15 16:32:34,529 - DEBUG - Response for create_network : {'network': {'id': 'fce0a404-e48c-411d-ac87-9a361c93a9bc', 'name': 'ctest-vn-64306309', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'project_id': '1d5fb2e994fb4349891d2177233fb424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-vn-64306309'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 16:32:34,678 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af70ffd7-d6f3-4914-a72f-698c3d8d28e3', 'name': '', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'network_id': 'fce0a404-e48c-411d-ac87-9a361c93a9bc', 'ip_version': 4, 'cidr': '143.2.202.64/26', 'allocation_pools': [{'start': '143.2.202.66', 'end': '143.2.202.126'}], 'gateway_ip': '143.2.202.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.2.202.66', 'tags': [], 'project_id': '1d5fb2e994fb4349891d2177233fb424'}}
2025-08-15 16:32:34,693 - INFO - Created VN ctest-vn-64306309
2025-08-15 16:32:34,744 - DEBUG - VN ctest-vn-64306309 UUID is fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:35,063 - DEBUG - Response for create_network : {'network': {'id': 'ccce1491-5478-4f6f-966e-bed6896dfb33', 'name': 'ctest-vn-22486642', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'project_id': '1d5fb2e994fb4349891d2177233fb424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-vn-22486642'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 16:32:35,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '06a1fc4b-1704-4149-abf3-bd5218cea3c1', 'name': '', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'network_id': 'ccce1491-5478-4f6f-966e-bed6896dfb33', 'ip_version': 4, 'cidr': '123.143.56.64/26', 'allocation_pools': [{'start': '123.143.56.66', 'end': '123.143.56.126'}], 'gateway_ip': '123.143.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.143.56.66', 'tags': [], 'project_id': '1d5fb2e994fb4349891d2177233fb424'}}
2025-08-15 16:32:35,227 - INFO - Created VN ctest-vn-22486642
2025-08-15 16:32:35,280 - DEBUG - VN ctest-vn-22486642 UUID is ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:35,431 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309, 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-91370464:ctest-vn-22486642, 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-15 16:32:35,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fce0a404-e48c-411d-ac87-9a361c93a9bc', 'name': 'ctest-vn-64306309', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'project_id': '1d5fb2e994fb4349891d2177233fb424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af70ffd7-d6f3-4914-a72f-698c3d8d28e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-vn-64306309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-policy-allow-all-28912103']], 'subnet_ipam': [{'subnet_cidr': '143.2.202.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 16:32:35,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ccce1491-5478-4f6f-966e-bed6896dfb33', 'name': 'ctest-vn-22486642', 'tenant_id': '1d5fb2e994fb4349891d2177233fb424', 'project_id': '1d5fb2e994fb4349891d2177233fb424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06a1fc4b-1704-4149-abf3-bd5218cea3c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-vn-22486642'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-policy-allow-all-28912103']], 'subnet_ipam': [{'subnet_cidr': '123.143.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 16:32:36,096 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-15 16:32:36,387 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-15 16:32:36,412 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4
2025-08-15 16:32:36,424 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d5fb2e9-94fb-4349-891d-2177233fb424
2025-08-15 16:32:36,494 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,504 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,514 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76d1c146-10b8-4c93-a21b-bbe65382b298
2025-08-15 16:32:36,521 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76d1c146-10b8-4c93-a21b-bbe65382b298
2025-08-15 16:32:36,528 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ab0764f1-a5a5-4db7-a5d7-c8c578020d82
2025-08-15 16:32:36,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 16:32:36,534 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,543 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76d1c146-10b8-4c93-a21b-bbe65382b298
2025-08-15 16:32:36,556 - INFO - Verified VN network id 11 for VN fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,556 - INFO - Verifications in API Server for VN ctest-vn-64306309 passed
2025-08-15 16:32:36,556 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,567 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76d1c146-10b8-4c93-a21b-bbe65382b298
2025-08-15 16:32:36,574 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76d1c146-10b8-4c93-a21b-bbe65382b298
2025-08-15 16:32:36,580 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ab0764f1-a5a5-4db7-a5d7-c8c578020d82
2025-08-15 16:32:36,592 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91370464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18221744433262248221', 'uuid-lslong': '12432074853577894332'}, 'enable': 'true', 'created': '2025-08-15T16:32:34', 'last-modified': '2025-08-15T16:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888993'}
2025-08-15 16:32:36,598 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 16:32:36,598 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64306309 passed
2025-08-15 16:32:36,598 - DEBUG - ====Verifying policy data for ctest-vn-64306309 in API_Server ======
2025-08-15 16:32:36,598 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-15 16:32:36,604 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4
2025-08-15 16:32:36,615 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d5fb2e9-94fb-4349-891d-2177233fb424
2025-08-15 16:32:36,686 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fce0a404-e48c-411d-ac87-9a361c93a9bc
2025-08-15 16:32:36,696 - DEBUG - ==>Verifying data for policy with id: e3dca397-4fca-4665-8ac7-687188f66665, fqn: ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-policy-allow-all-28912103']
2025-08-15 16:32:36,696 - INFO - VN ctest-vn-64306309 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 16:32:36,696 - DEBUG - Verifying the vn in opserver
2025-08-15 16:32:36,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309 virtual network link through opserver 10.0.0.249
2025-08-15 16:32:36,697 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-15 16:32:36,986 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-15 16:32:37,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309?flat'}
2025-08-15 16:32:37,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-64306309 is found in opserver
2025-08-15 16:32:37,045 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 16:32:37,050 - DEBUG - VRF ids for VN ctest-vn-64306309: {}
2025-08-15 16:32:37,050 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-15 16:32:37,055 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4
2025-08-15 16:32:37,067 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d5fb2e9-94fb-4349-891d-2177233fb424
2025-08-15 16:32:37,151 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,163 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,172 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a827a426-2c85-4958-bb80-5b9c7b91959b
2025-08-15 16:32:37,179 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a827a426-2c85-4958-bb80-5b9c7b91959b
2025-08-15 16:32:37,185 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/17b17137-7016-4e56-9850-3dce8ebd8b93
2025-08-15 16:32:37,191 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 16:32:37,191 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,199 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a827a426-2c85-4958-bb80-5b9c7b91959b
2025-08-15 16:32:37,211 - INFO - Verified VN network id 12 for VN ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,211 - INFO - Verifications in API Server for VN ctest-vn-22486642 passed
2025-08-15 16:32:37,211 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,221 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a827a426-2c85-4958-bb80-5b9c7b91959b
2025-08-15 16:32:37,227 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a827a426-2c85-4958-bb80-5b9c7b91959b
2025-08-15 16:32:37,235 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/17b17137-7016-4e56-9850-3dce8ebd8b93
2025-08-15 16:32:37,246 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-22486642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91370464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14757755643359678319', 'uuid-lslong': '10839811181765327667'}, 'enable': 'true', 'created': '2025-08-15T16:32:35', 'last-modified': '2025-08-15T16:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316054'}
2025-08-15 16:32:37,251 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 16:32:37,251 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22486642 passed
2025-08-15 16:32:37,252 - DEBUG - ====Verifying policy data for ctest-vn-22486642 in API_Server ======
2025-08-15 16:32:37,252 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-15 16:32:37,256 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4
2025-08-15 16:32:37,266 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d5fb2e9-94fb-4349-891d-2177233fb424
2025-08-15 16:32:37,337 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ccce1491-5478-4f6f-966e-bed6896dfb33
2025-08-15 16:32:37,348 - DEBUG - ==>Verifying data for policy with id: e3dca397-4fca-4665-8ac7-687188f66665, fqn: ['default-domain', 'ctest-TestBasicPolicy-91370464', 'ctest-policy-allow-all-28912103']
2025-08-15 16:32:37,348 - INFO - VN ctest-vn-22486642 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 16:32:37,348 - DEBUG - Verifying the vn in opserver
2025-08-15 16:32:37,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-22486642 virtual network link through opserver 10.0.0.249
2025-08-15 16:32:37,348 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-15 16:32:37,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-22486642', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-22486642?flat'}
2025-08-15 16:32:37,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91370464:ctest-vn-22486642 is found in opserver
2025-08-15 16:32:37,368 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 16:32:37,372 - DEBUG - VRF ids for VN ctest-vn-22486642: {}
2025-08-15 16:32:37,422 - DEBUG - Services list from nova: [