2025-06-09 10:40:29,358 - INFO - Domain Default found not creating
2025-06-09 10:40:29,509 - INFO - Project ctest-TestBasicPolicy-64370980 not found, creating it
2025-06-09 10:40:30,087 - INFO - Created Project:ctest-TestBasicPolicy-64370980, ID : d6c5b4bf-af37-4eef-9310-7daa6a8ccdf4
2025-06-09 10:40:31,571 - INFO - ================================================================================
2025-06-09 10:40:31,571 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 10:40:31,571 - 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-06-09 10:40:31,837 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-06-09 10:40:31,837 - INFO - Initial checks done. Running the testcase now
2025-06-09 10:40:31,837 - INFO -
2025-06-09 10:40:32,461 - DEBUG - Response for create_network : {'network': {'id': 'a3a4ab94-0a80-49d5-b757-b45ccfb4dd50', 'name': 'ctest-vn-35638427', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-vn-35638427'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 10:40:32,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '2652e8b9-b3b4-4fb3-83d3-b53ed7e23780', 'name': '', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'network_id': 'a3a4ab94-0a80-49d5-b757-b45ccfb4dd50', 'ip_version': 4, 'cidr': '154.33.173.64/26', 'allocation_pools': [{'start': '154.33.173.66', 'end': '154.33.173.126'}], 'gateway_ip': '154.33.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.33.173.66', 'tags': [], 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4'}}
2025-06-09 10:40:32,698 - INFO - Created VN ctest-vn-35638427
2025-06-09 10:40:32,751 - DEBUG - VN ctest-vn-35638427 UUID is a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:33,050 - DEBUG - Response for create_network : {'network': {'id': '7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b', 'name': 'ctest-vn-73856808', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-vn-73856808'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 10:40:33,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '47504245-4e8c-414c-b13a-203b6708fda6', 'name': '', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'network_id': '7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b', 'ip_version': 4, 'cidr': '179.102.132.0/26', 'allocation_pools': [{'start': '179.102.132.2', 'end': '179.102.132.62'}], 'gateway_ip': '179.102.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.102.132.2', 'tags': [], 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4'}}
2025-06-09 10:40:33,276 - INFO - Created VN ctest-vn-73856808
2025-06-09 10:40:33,331 - DEBUG - VN ctest-vn-73856808 UUID is 7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:33,446 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427, 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-64370980:ctest-vn-73856808, 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-06-09 10:40:33,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3a4ab94-0a80-49d5-b757-b45ccfb4dd50', 'name': 'ctest-vn-35638427', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2652e8b9-b3b4-4fb3-83d3-b53ed7e23780'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-vn-35638427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-policy-allow-all-04160788']], 'subnet_ipam': [{'subnet_cidr': '154.33.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 10:40:34,051 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b', 'name': 'ctest-vn-73856808', 'tenant_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'project_id': 'd6c5b4bfaf374eef93107daa6a8ccdf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47504245-4e8c-414c-b13a-203b6708fda6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-vn-73856808'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-policy-allow-all-04160788']], 'subnet_ipam': [{'subnet_cidr': '179.102.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 10:40:34,207 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-09 10:40:34,511 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-09 10:40:34,543 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ab80c7e3-e136-4e39-b866-f05ea8f4e170
2025-06-09 10:40:34,558 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c5b4bf-af37-4eef-9310-7daa6a8ccdf4
2025-06-09 10:40:34,635 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,648 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,659 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e60a1992-f68e-4ef7-8b74-15bcf5b794fc
2025-06-09 10:40:34,668 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e60a1992-f68e-4ef7-8b74-15bcf5b794fc
2025-06-09 10:40:34,676 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/241db9a3-46b9-4e26-bdd2-2d737c216d57
2025-06-09 10:40:34,684 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 10:40:34,684 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,694 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e60a1992-f68e-4ef7-8b74-15bcf5b794fc
2025-06-09 10:40:34,711 - INFO - Verified VN network id 9 for VN a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,711 - INFO - Verifications in API Server for VN ctest-vn-35638427 passed
2025-06-09 10:40:34,711 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,723 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e60a1992-f68e-4ef7-8b74-15bcf5b794fc
2025-06-09 10:40:34,731 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e60a1992-f68e-4ef7-8b74-15bcf5b794fc
2025-06-09 10:40:34,740 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/241db9a3-46b9-4e26-bdd2-2d737c216d57
2025-06-09 10:40:34,754 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64370980', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11791738376682490325', 'uuid-lslong': '13211226342629367120'}, 'enable': 'true', 'created': '2025-06-09T10:40:32', 'last-modified': '2025-06-09T10:40:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030392'}
2025-06-09 10:40:34,761 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 10:40:34,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35638427 passed
2025-06-09 10:40:34,761 - DEBUG - ====Verifying policy data for ctest-vn-35638427 in API_Server ======
2025-06-09 10:40:34,761 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-09 10:40:34,767 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ab80c7e3-e136-4e39-b866-f05ea8f4e170
2025-06-09 10:40:34,780 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c5b4bf-af37-4eef-9310-7daa6a8ccdf4
2025-06-09 10:40:34,857 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a3a4ab94-0a80-49d5-b757-b45ccfb4dd50
2025-06-09 10:40:34,868 - DEBUG - ==>Verifying data for policy with id: 87195b4f-1865-483d-b6f4-7a0c0a760599, fqn: ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-policy-allow-all-04160788']
2025-06-09 10:40:34,868 - INFO - VN ctest-vn-35638427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 10:40:34,868 - DEBUG - Verifying the vn in opserver
2025-06-09 10:40:34,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427 virtual network link through opserver 10.0.0.49
2025-06-09 10:40:34,868 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-09 10:40:35,163 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-09 10:40:35,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427?flat'}
2025-06-09 10:40:35,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-35638427 is found in opserver
2025-06-09 10:40:35,236 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 10:40:35,242 - DEBUG - VRF ids for VN ctest-vn-35638427: {}
2025-06-09 10:40:35,242 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-09 10:40:35,248 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ab80c7e3-e136-4e39-b866-f05ea8f4e170
2025-06-09 10:40:35,262 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c5b4bf-af37-4eef-9310-7daa6a8ccdf4
2025-06-09 10:40:35,397 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,410 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,421 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/511531ba-6ce5-4698-b3b9-e0888e7c46ec
2025-06-09 10:40:35,431 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/511531ba-6ce5-4698-b3b9-e0888e7c46ec
2025-06-09 10:40:35,440 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/06d11077-ad27-4ff0-87a4-10a734856a7d
2025-06-09 10:40:35,448 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 10:40:35,448 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,461 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/511531ba-6ce5-4698-b3b9-e0888e7c46ec
2025-06-09 10:40:35,479 - INFO - Verified VN network id 10 for VN 7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,479 - INFO - Verifications in API Server for VN ctest-vn-73856808 passed
2025-06-09 10:40:35,479 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,490 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/511531ba-6ce5-4698-b3b9-e0888e7c46ec
2025-06-09 10:40:35,499 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/511531ba-6ce5-4698-b3b9-e0888e7c46ec
2025-06-09 10:40:35,507 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/06d11077-ad27-4ff0-87a4-10a734856a7d
2025-06-09 10:40:35,521 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-73856808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64370980', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8909439419097893699', 'uuid-lslong': '11476540363315178299'}, 'enable': 'true', 'created': '2025-06-09T10:40:33', 'last-modified': '2025-06-09T10:40:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542104'}
2025-06-09 10:40:35,528 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 10:40:35,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73856808 passed
2025-06-09 10:40:35,528 - DEBUG - ====Verifying policy data for ctest-vn-73856808 in API_Server ======
2025-06-09 10:40:35,528 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-09 10:40:35,535 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ab80c7e3-e136-4e39-b866-f05ea8f4e170
2025-06-09 10:40:35,550 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c5b4bf-af37-4eef-9310-7daa6a8ccdf4
2025-06-09 10:40:35,629 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7ba4aff2-8b31-4b43-9f44-dca7b5d56b3b
2025-06-09 10:40:35,647 - DEBUG - ==>Verifying data for policy with id: 87195b4f-1865-483d-b6f4-7a0c0a760599, fqn: ['default-domain', 'ctest-TestBasicPolicy-64370980', 'ctest-policy-allow-all-04160788']
2025-06-09 10:40:35,647 - INFO - VN ctest-vn-73856808 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 10:40:35,647 - DEBUG - Verifying the vn in opserver
2025-06-09 10:40:35,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-73856808 virtual network link through opserver 10.0.0.49
2025-06-09 10:40:35,647 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-09 10:40:35,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-73856808', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-73856808?flat'}
2025-06-09 10:40:35,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64370980:ctest-vn-73856808 is found in opserver
2025-06-09 10:40:35,671 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 10:40:35,677 - DEBUG - VRF ids for VN ctest-vn-73856808: {}
2025-06-09 10:40:35,740 - DEBUG - Services list from nova: [