2025-07-07 08:50:32,670 - INFO - Domain Default found not creating
2025-07-07 08:50:32,814 - INFO - Project ctest-TestBasicPolicy-25652928 not found, creating it
2025-07-07 08:50:33,267 - INFO - Created Project:ctest-TestBasicPolicy-25652928, ID : 37d561f9-a8e9-498e-8991-31e71f0b695c
2025-07-07 08:50:34,811 - INFO - ================================================================================
2025-07-07 08:50:34,812 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 08:50:34,812 - 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-07 08:50:35,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-07-07 08:50:35,068 - INFO - Initial checks done. Running the testcase now
2025-07-07 08:50:35,068 - INFO -
2025-07-07 08:50:35,665 - DEBUG - Response for create_network : {'network': {'id': '1aa2d546-3d01-440f-9d1f-4c6644ea68c8', 'name': 'ctest-vn-52273695', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'project_id': '37d561f9a8e9498e899131e71f0b695c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-vn-52273695'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 08:50:35,882 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd2a3e0e-6347-4e48-a88e-3e28f7c5d0ee', 'name': '', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'network_id': '1aa2d546-3d01-440f-9d1f-4c6644ea68c8', 'ip_version': 4, 'cidr': '125.127.51.0/26', 'allocation_pools': [{'start': '125.127.51.2', 'end': '125.127.51.62'}], 'gateway_ip': '125.127.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.127.51.2', 'tags': [], 'project_id': '37d561f9a8e9498e899131e71f0b695c'}}
2025-07-07 08:50:35,901 - INFO - Created VN ctest-vn-52273695
2025-07-07 08:50:35,958 - DEBUG - VN ctest-vn-52273695 UUID is 1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:36,300 - DEBUG - Response for create_network : {'network': {'id': '4762f5bf-e65a-4780-a4ae-c75819aebe44', 'name': 'ctest-vn-45373081', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'project_id': '37d561f9a8e9498e899131e71f0b695c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-vn-45373081'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 08:50:36,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8058e7e-e89e-4dab-84d0-6bb95d219ef9', 'name': '', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'network_id': '4762f5bf-e65a-4780-a4ae-c75819aebe44', 'ip_version': 4, 'cidr': '174.164.73.192/26', 'allocation_pools': [{'start': '174.164.73.194', 'end': '174.164.73.254'}], 'gateway_ip': '174.164.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.164.73.194', 'tags': [], 'project_id': '37d561f9a8e9498e899131e71f0b695c'}}
2025-07-07 08:50:36,531 - INFO - Created VN ctest-vn-45373081
2025-07-07 08:50:36,585 - DEBUG - VN ctest-vn-45373081 UUID is 4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:36,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695, 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-25652928:ctest-vn-45373081, 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-07 08:50:36,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aa2d546-3d01-440f-9d1f-4c6644ea68c8', 'name': 'ctest-vn-52273695', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'project_id': '37d561f9a8e9498e899131e71f0b695c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd2a3e0e-6347-4e48-a88e-3e28f7c5d0ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-vn-52273695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-policy-allow-all-16459752']], 'subnet_ipam': [{'subnet_cidr': '125.127.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 08:50:37,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4762f5bf-e65a-4780-a4ae-c75819aebe44', 'name': 'ctest-vn-45373081', 'tenant_id': '37d561f9a8e9498e899131e71f0b695c', 'project_id': '37d561f9a8e9498e899131e71f0b695c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8058e7e-e89e-4dab-84d0-6bb95d219ef9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-vn-45373081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-policy-allow-all-16459752']], 'subnet_ipam': [{'subnet_cidr': '174.164.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 08:50:37,410 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-07 08:50:37,753 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-07 08:50:37,781 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dbcad863-5002-48bc-bb9e-d39fee579bb9
2025-07-07 08:50:37,794 - DEBUG - Requesting: http://10.0.0.48:8082/project/37d561f9-a8e9-498e-8991-31e71f0b695c
2025-07-07 08:50:37,867 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:37,878 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:37,890 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/42a9f237-8a63-4654-961d-9fde6629f8cb
2025-07-07 08:50:37,898 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/42a9f237-8a63-4654-961d-9fde6629f8cb
2025-07-07 08:50:37,905 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a86a9bc1-b2f5-4863-8a6e-3c648c9b4bc6
2025-07-07 08:50:37,912 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 08:50:37,912 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:37,922 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/42a9f237-8a63-4654-961d-9fde6629f8cb
2025-07-07 08:50:37,936 - INFO - Verified VN network id 8 for VN 1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:37,936 - INFO - Verifications in API Server for VN ctest-vn-52273695 passed
2025-07-07 08:50:37,936 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:37,946 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/42a9f237-8a63-4654-961d-9fde6629f8cb
2025-07-07 08:50:37,953 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/42a9f237-8a63-4654-961d-9fde6629f8cb
2025-07-07 08:50:37,960 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a86a9bc1-b2f5-4863-8a6e-3c648c9b4bc6
2025-07-07 08:50:37,972 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25652928', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1919330888861172751', 'uuid-lslong': '11321851990359304392'}, 'enable': 'true', 'created': '2025-07-07T08:50:35', 'last-modified': '2025-07-07T08:50:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006503'}
2025-07-07 08:50:37,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 08:50:37,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52273695 passed
2025-07-07 08:50:37,980 - DEBUG - ====Verifying policy data for ctest-vn-52273695 in API_Server ======
2025-07-07 08:50:37,980 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-07 08:50:37,985 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dbcad863-5002-48bc-bb9e-d39fee579bb9
2025-07-07 08:50:37,997 - DEBUG - Requesting: http://10.0.0.48:8082/project/37d561f9-a8e9-498e-8991-31e71f0b695c
2025-07-07 08:50:38,070 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1aa2d546-3d01-440f-9d1f-4c6644ea68c8
2025-07-07 08:50:38,080 - DEBUG - ==>Verifying data for policy with id: ce2fb09d-1db4-4939-b6d4-e0c076346921, fqn: ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-policy-allow-all-16459752']
2025-07-07 08:50:38,081 - INFO - VN ctest-vn-52273695 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 08:50:38,081 - DEBUG - Verifying the vn in opserver
2025-07-07 08:50:38,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695 virtual network link through opserver 10.0.0.48
2025-07-07 08:50:38,081 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-07 08:50:38,412 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-07 08:50:38,467 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695?flat'}
2025-07-07 08:50:38,467 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-52273695 is found in opserver
2025-07-07 08:50:38,479 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 08:50:38,484 - DEBUG - VRF ids for VN ctest-vn-52273695: {}
2025-07-07 08:50:38,484 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-07 08:50:38,490 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dbcad863-5002-48bc-bb9e-d39fee579bb9
2025-07-07 08:50:38,502 - DEBUG - Requesting: http://10.0.0.48:8082/project/37d561f9-a8e9-498e-8991-31e71f0b695c
2025-07-07 08:50:38,576 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,596 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,607 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fff0ffa9-92ac-49a7-8473-b2fcbccb3d37
2025-07-07 08:50:38,615 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fff0ffa9-92ac-49a7-8473-b2fcbccb3d37
2025-07-07 08:50:38,622 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/550f70fd-8662-4cb9-b6b3-5d92b858f68d
2025-07-07 08:50:38,629 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 08:50:38,629 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,638 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fff0ffa9-92ac-49a7-8473-b2fcbccb3d37
2025-07-07 08:50:38,653 - INFO - Verified VN network id 9 for VN 4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,653 - INFO - Verifications in API Server for VN ctest-vn-45373081 passed
2025-07-07 08:50:38,653 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,663 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fff0ffa9-92ac-49a7-8473-b2fcbccb3d37
2025-07-07 08:50:38,670 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fff0ffa9-92ac-49a7-8473-b2fcbccb3d37
2025-07-07 08:50:38,676 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/550f70fd-8662-4cb9-b6b3-5d92b858f68d
2025-07-07 08:50:38,688 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-45373081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25652928', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5143943928962762624', 'uuid-lslong': '11866641249369767492'}, 'enable': 'true', 'created': '2025-07-07T08:50:36', 'last-modified': '2025-07-07T08:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.468378'}
2025-07-07 08:50:38,695 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 08:50:38,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45373081 passed
2025-07-07 08:50:38,695 - DEBUG - ====Verifying policy data for ctest-vn-45373081 in API_Server ======
2025-07-07 08:50:38,696 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-07 08:50:38,701 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dbcad863-5002-48bc-bb9e-d39fee579bb9
2025-07-07 08:50:38,714 - DEBUG - Requesting: http://10.0.0.48:8082/project/37d561f9-a8e9-498e-8991-31e71f0b695c
2025-07-07 08:50:38,793 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4762f5bf-e65a-4780-a4ae-c75819aebe44
2025-07-07 08:50:38,804 - DEBUG - ==>Verifying data for policy with id: ce2fb09d-1db4-4939-b6d4-e0c076346921, fqn: ['default-domain', 'ctest-TestBasicPolicy-25652928', 'ctest-policy-allow-all-16459752']
2025-07-07 08:50:38,804 - INFO - VN ctest-vn-45373081 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 08:50:38,804 - DEBUG - Verifying the vn in opserver
2025-07-07 08:50:38,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-45373081 virtual network link through opserver 10.0.0.48
2025-07-07 08:50:38,804 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-07 08:50:38,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-45373081', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-45373081?flat'}
2025-07-07 08:50:38,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25652928:ctest-vn-45373081 is found in opserver
2025-07-07 08:50:38,827 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 08:50:38,832 - DEBUG - VRF ids for VN ctest-vn-45373081: {}
2025-07-07 08:50:38,893 - DEBUG - Services list from nova: [