2025-10-23 20:59:50,721 - INFO - Domain Default found not creating
2025-10-23 20:59:50,882 - INFO - Project ctest-TestBasicPolicy-71366668 not found, creating it
2025-10-23 20:59:51,329 - INFO - Created Project:ctest-TestBasicPolicy-71366668, ID : 13146952-691d-4b85-81ca-e4ca695e59eb
2025-10-23 20:59:52,904 - INFO - ================================================================================
2025-10-23 20:59:52,904 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 20:59:52,904 - 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-10-23 20:59:53,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.17': '0'}} with
2025-10-23 20:59:53,160 - INFO - Initial checks done. Running the testcase now
2025-10-23 20:59:53,160 - INFO -
2025-10-23 20:59:53,767 - DEBUG - Response for create_network : {'network': {'id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'name': 'ctest-vn-18771928', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-18771928'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 20:59:53,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a396eab-3126-434f-bd49-393f400c4ce1', 'name': '', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'network_id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'ip_version': 4, 'cidr': '191.235.132.192/26', 'allocation_pools': [{'start': '191.235.132.194', 'end': '191.235.132.254'}], 'gateway_ip': '191.235.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.235.132.194', 'tags': [], 'project_id': '13146952691d4b8581cae4ca695e59eb'}}
2025-10-23 20:59:53,947 - INFO - Created VN ctest-vn-18771928
2025-10-23 20:59:54,002 - DEBUG - VN ctest-vn-18771928 UUID is 2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:54,295 - DEBUG - Response for create_network : {'network': {'id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'name': 'ctest-vn-38406680', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-38406680'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 20:59:54,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '1825ed60-cd1d-40aa-ab42-99b3d04942c4', 'name': '', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'network_id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'ip_version': 4, 'cidr': '167.9.203.64/26', 'allocation_pools': [{'start': '167.9.203.66', 'end': '167.9.203.126'}], 'gateway_ip': '167.9.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.9.203.66', 'tags': [], 'project_id': '13146952691d4b8581cae4ca695e59eb'}}
2025-10-23 20:59:54,490 - INFO - Created VN ctest-vn-38406680
2025-10-23 20:59:54,542 - DEBUG - VN ctest-vn-38406680 UUID is 88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:54,658 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928, 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-71366668:ctest-vn-38406680, 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-10-23 20:59:55,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'name': 'ctest-vn-18771928', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a396eab-3126-434f-bd49-393f400c4ce1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-18771928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']], 'subnet_ipam': [{'subnet_cidr': '191.235.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 20:59:55,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'name': 'ctest-vn-38406680', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1825ed60-cd1d-40aa-ab42-99b3d04942c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-38406680'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']], 'subnet_ipam': [{'subnet_cidr': '167.9.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 20:59:55,382 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-23 20:59:55,722 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-23 20:59:55,751 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262
2025-10-23 20:59:55,764 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb
2025-10-23 20:59:55,834 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:55,845 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:55,854 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d
2025-10-23 20:59:55,862 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d
2025-10-23 20:59:55,869 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f24c63fa-1dd6-4cae-9f2c-e5f28d641399
2025-10-23 20:59:55,876 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 20:59:55,877 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:55,886 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d
2025-10-23 20:59:55,899 - INFO - Verified VN network id 11 for VN 2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:55,899 - INFO - Verifications in API Server for VN ctest-vn-18771928 passed
2025-10-23 20:59:55,900 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:55,909 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d
2025-10-23 20:59:55,916 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d
2025-10-23 20:59:55,923 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f24c63fa-1dd6-4cae-9f2c-e5f28d641399
2025-10-23 20:59:55,934 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71366668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3457401536892260291', 'uuid-lslong': '9311489719456543120'}, 'enable': 'true', 'created': '2025-10-23T20:59:53', 'last-modified': '2025-10-23T20:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957007'}
2025-10-23 20:59:55,940 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 20:59:55,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18771928 passed
2025-10-23 20:59:55,940 - DEBUG - ====Verifying policy data for ctest-vn-18771928 in API_Server ======
2025-10-23 20:59:55,940 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-23 20:59:55,945 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262
2025-10-23 20:59:55,957 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb
2025-10-23 20:59:56,029 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190
2025-10-23 20:59:56,038 - DEBUG - ==>Verifying data for policy with id: 7b428ff6-2304-407b-88aa-dcbf74d70ba9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']
2025-10-23 20:59:56,038 - INFO - VN ctest-vn-18771928 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 20:59:56,038 - DEBUG - Verifying the vn in opserver
2025-10-23 20:59:56,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928 virtual network link through opserver 10.0.0.137
2025-10-23 20:59:56,039 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-23 20:59:56,375 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-23 20:59:56,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928?flat'}
2025-10-23 20:59:56,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928 is found in opserver
2025-10-23 20:59:56,441 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 20:59:56,445 - DEBUG - VRF ids for VN ctest-vn-18771928: {}
2025-10-23 20:59:56,445 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-23 20:59:56,451 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262
2025-10-23 20:59:56,462 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb
2025-10-23 20:59:56,535 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,547 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,556 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5
2025-10-23 20:59:56,564 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5
2025-10-23 20:59:56,571 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5c9a9300-a863-419c-8855-686855c16c4e
2025-10-23 20:59:56,577 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 20:59:56,578 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,586 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5
2025-10-23 20:59:56,599 - INFO - Verified VN network id 12 for VN 88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,599 - INFO - Verifications in API Server for VN ctest-vn-38406680 passed
2025-10-23 20:59:56,599 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,607 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5
2025-10-23 20:59:56,613 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5
2025-10-23 20:59:56,619 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5c9a9300-a863-419c-8855-686855c16c4e
2025-10-23 20:59:56,629 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71366668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9802121150433675685', 'uuid-lslong': '10189469991091153094'}, 'enable': 'true', 'created': '2025-10-23T20:59:54', 'last-modified': '2025-10-23T20:59:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412821'}
2025-10-23 20:59:56,635 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 20:59:56,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38406680 passed
2025-10-23 20:59:56,635 - DEBUG - ====Verifying policy data for ctest-vn-38406680 in API_Server ======
2025-10-23 20:59:56,635 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-23 20:59:56,640 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262
2025-10-23 20:59:56,650 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb
2025-10-23 20:59:56,722 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6
2025-10-23 20:59:56,732 - DEBUG - ==>Verifying data for policy with id: 7b428ff6-2304-407b-88aa-dcbf74d70ba9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']
2025-10-23 20:59:56,732 - INFO - VN ctest-vn-38406680 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 20:59:56,732 - DEBUG - Verifying the vn in opserver
2025-10-23 20:59:56,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680 virtual network link through opserver 10.0.0.137
2025-10-23 20:59:56,732 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-23 20:59:56,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680?flat'}
2025-10-23 20:59:56,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680 is found in opserver
2025-10-23 20:59:56,752 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 20:59:56,757 - DEBUG - VRF ids for VN ctest-vn-38406680: {}
2025-10-23 20:59:56,818 - DEBUG - Services list from nova: [