2025-08-10 20:43:00,223 - INFO - Domain Default found not creating
2025-08-10 20:43:00,332 - INFO - Project ctest-TestBasicPolicy-54661723 not found, creating it
2025-08-10 20:43:00,832 - INFO - Created Project:ctest-TestBasicPolicy-54661723, ID : a1b778a0-3cd9-4564-b17b-2d99ca8fea23
2025-08-10 20:43:02,193 - INFO - ================================================================================
2025-08-10 20:43:02,193 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-10 20:43:02,193 - 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-10 20:43:02,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with
2025-08-10 20:43:02,440 - INFO - Initial checks done. Running the testcase now
2025-08-10 20:43:02,440 - INFO -
2025-08-10 20:43:02,953 - DEBUG - Response for create_network : {'network': {'id': 'e00fc3a2-92e3-4812-bbb9-86a00f73b6bc', 'name': 'ctest-vn-76611390', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-vn-76611390'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 20:43:03,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab73e402-985f-4af3-8d1a-17a74a945af7', 'name': '', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'network_id': 'e00fc3a2-92e3-4812-bbb9-86a00f73b6bc', 'ip_version': 4, 'cidr': '158.246.35.192/26', 'allocation_pools': [{'start': '158.246.35.194', 'end': '158.246.35.254'}], 'gateway_ip': '158.246.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.246.35.194', 'tags': [], 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23'}}
2025-08-10 20:43:03,110 - INFO - Created VN ctest-vn-76611390
2025-08-10 20:43:03,160 - DEBUG - VN ctest-vn-76611390 UUID is e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:03,454 - DEBUG - Response for create_network : {'network': {'id': '94240b36-0743-43ac-a513-3d8710377830', 'name': 'ctest-vn-21213699', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-vn-21213699'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 20:43:03,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '691143e8-0f4f-4596-a4d1-97e6fa7bb6bc', 'name': '', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'network_id': '94240b36-0743-43ac-a513-3d8710377830', 'ip_version': 4, 'cidr': '48.31.13.192/26', 'allocation_pools': [{'start': '48.31.13.194', 'end': '48.31.13.254'}], 'gateway_ip': '48.31.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.31.13.194', 'tags': [], 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23'}}
2025-08-10 20:43:03,630 - INFO - Created VN ctest-vn-21213699
2025-08-10 20:43:03,684 - DEBUG - VN ctest-vn-21213699 UUID is 94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:03,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390, 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-54661723:ctest-vn-21213699, 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-10 20:43:04,107 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e00fc3a2-92e3-4812-bbb9-86a00f73b6bc', 'name': 'ctest-vn-76611390', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab73e402-985f-4af3-8d1a-17a74a945af7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-vn-76611390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-policy-allow-all-43341635']], 'subnet_ipam': [{'subnet_cidr': '158.246.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 20:43:04,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94240b36-0743-43ac-a513-3d8710377830', 'name': 'ctest-vn-21213699', 'tenant_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'project_id': 'a1b778a03cd94564b17b2d99ca8fea23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['691143e8-0f4f-4596-a4d1-97e6fa7bb6bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-vn-21213699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-policy-allow-all-43341635']], 'subnet_ipam': [{'subnet_cidr': '48.31.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 20:43:04,496 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 20:43:04,785 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 20:43:04,811 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a
2025-08-10 20:43:04,822 - DEBUG - Requesting: http://10.0.0.57:8082/project/a1b778a0-3cd9-4564-b17b-2d99ca8fea23
2025-08-10 20:43:04,895 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:04,905 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:04,913 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1fa7e02f-8d98-4945-81ff-33ac7e12dbb1
2025-08-10 20:43:04,919 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1fa7e02f-8d98-4945-81ff-33ac7e12dbb1
2025-08-10 20:43:04,925 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f07da330-2eba-4781-9851-84f49028492b
2025-08-10 20:43:04,931 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 20:43:04,931 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:04,939 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1fa7e02f-8d98-4945-81ff-33ac7e12dbb1
2025-08-10 20:43:04,952 - INFO - Verified VN network id 12 for VN e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:04,952 - INFO - Verifications in API Server for VN ctest-vn-76611390 passed
2025-08-10 20:43:04,952 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:04,961 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1fa7e02f-8d98-4945-81ff-33ac7e12dbb1
2025-08-10 20:43:04,966 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1fa7e02f-8d98-4945-81ff-33ac7e12dbb1
2025-08-10 20:43:04,972 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f07da330-2eba-4781-9851-84f49028492b
2025-08-10 20:43:04,983 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54661723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16145338292163004434', 'uuid-lslong': '13526990977796126396'}, 'enable': 'true', 'created': '2025-08-10T20:43:02', 'last-modified': '2025-08-10T20:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897047'}
2025-08-10 20:43:04,988 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 20:43:04,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76611390 passed
2025-08-10 20:43:04,989 - DEBUG - ====Verifying policy data for ctest-vn-76611390 in API_Server ======
2025-08-10 20:43:04,989 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 20:43:04,993 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a
2025-08-10 20:43:05,003 - DEBUG - Requesting: http://10.0.0.57:8082/project/a1b778a0-3cd9-4564-b17b-2d99ca8fea23
2025-08-10 20:43:05,069 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e00fc3a2-92e3-4812-bbb9-86a00f73b6bc
2025-08-10 20:43:05,078 - DEBUG - ==>Verifying data for policy with id: dcbe9c19-f6dd-4aab-9885-773ace82b31a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-policy-allow-all-43341635']
2025-08-10 20:43:05,078 - INFO - VN ctest-vn-76611390 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 20:43:05,078 - DEBUG - Verifying the vn in opserver
2025-08-10 20:43:05,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390 virtual network link through opserver 10.0.0.57
2025-08-10 20:43:05,079 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 20:43:05,364 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 20:43:05,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390?flat'}
2025-08-10 20:43:05,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-76611390 is found in opserver
2025-08-10 20:43:05,420 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 20:43:05,425 - DEBUG - VRF ids for VN ctest-vn-76611390: {}
2025-08-10 20:43:05,425 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 20:43:05,430 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a
2025-08-10 20:43:05,440 - DEBUG - Requesting: http://10.0.0.57:8082/project/a1b778a0-3cd9-4564-b17b-2d99ca8fea23
2025-08-10 20:43:05,508 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,519 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,527 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3389c942-db17-4b4c-80a9-6efc82fa552a
2025-08-10 20:43:05,533 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3389c942-db17-4b4c-80a9-6efc82fa552a
2025-08-10 20:43:05,539 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/785b170d-ee51-4254-929d-8574df2435b8
2025-08-10 20:43:05,545 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 20:43:05,545 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,553 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3389c942-db17-4b4c-80a9-6efc82fa552a
2025-08-10 20:43:05,565 - INFO - Verified VN network id 13 for VN 94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,565 - INFO - Verifications in API Server for VN ctest-vn-21213699 passed
2025-08-10 20:43:05,565 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,573 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3389c942-db17-4b4c-80a9-6efc82fa552a
2025-08-10 20:43:05,579 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3389c942-db17-4b4c-80a9-6efc82fa552a
2025-08-10 20:43:05,585 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/785b170d-ee51-4254-929d-8574df2435b8
2025-08-10 20:43:05,595 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-21213699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54661723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10674669343452906412', 'uuid-lslong': '11894918691117561904'}, 'enable': 'true', 'created': '2025-08-10T20:43:03', 'last-modified': '2025-08-10T20:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.285011'}
2025-08-10 20:43:05,601 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 20:43:05,601 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21213699 passed
2025-08-10 20:43:05,601 - DEBUG - ====Verifying policy data for ctest-vn-21213699 in API_Server ======
2025-08-10 20:43:05,601 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 20:43:05,605 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a
2025-08-10 20:43:05,615 - DEBUG - Requesting: http://10.0.0.57:8082/project/a1b778a0-3cd9-4564-b17b-2d99ca8fea23
2025-08-10 20:43:05,684 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94240b36-0743-43ac-a513-3d8710377830
2025-08-10 20:43:05,693 - DEBUG - ==>Verifying data for policy with id: dcbe9c19-f6dd-4aab-9885-773ace82b31a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54661723', 'ctest-policy-allow-all-43341635']
2025-08-10 20:43:05,693 - INFO - VN ctest-vn-21213699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 20:43:05,693 - DEBUG - Verifying the vn in opserver
2025-08-10 20:43:05,694 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-21213699 virtual network link through opserver 10.0.0.57
2025-08-10 20:43:05,694 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 20:43:05,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-21213699', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-21213699?flat'}
2025-08-10 20:43:05,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54661723:ctest-vn-21213699 is found in opserver
2025-08-10 20:43:05,713 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 20:43:05,718 - DEBUG - VRF ids for VN ctest-vn-21213699: {}
2025-08-10 20:43:05,770 - DEBUG - Services list from nova: [