2025-05-08 02:35:22,597 - INFO - Domain Default found not creating
2025-05-08 02:35:22,988 - INFO - Project ctest-TestBasicPolicy-20686070 not found, creating it
2025-05-08 02:35:23,709 - INFO - Created Project:ctest-TestBasicPolicy-20686070, ID : 77c9427a-3d88-4091-8b12-be20c66f6c5c
2025-05-08 02:35:25,871 - INFO - ================================================================================
2025-05-08 02:35:25,871 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 02:35:25,871 - 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-05-08 02:35:26,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with
2025-05-08 02:35:26,145 - INFO - Initial checks done. Running the testcase now
2025-05-08 02:35:26,146 - INFO -
2025-05-08 02:35:26,879 - DEBUG - Response for create_network : {'network': {'id': '5c8ba44c-c941-45b9-856c-62931965323e', 'name': 'ctest-vn-18513103', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'project_id': '77c9427a3d8840918b12be20c66f6c5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-vn-18513103'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:35:27,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d4afd12-4d6a-4da2-aaa0-23fbc3b9514f', 'name': '', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'network_id': '5c8ba44c-c941-45b9-856c-62931965323e', 'ip_version': 4, 'cidr': '166.68.198.192/26', 'allocation_pools': [{'start': '166.68.198.194', 'end': '166.68.198.254'}], 'gateway_ip': '166.68.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.68.198.194', 'tags': [], 'project_id': '77c9427a3d8840918b12be20c66f6c5c'}}
2025-05-08 02:35:27,110 - INFO - Created VN ctest-vn-18513103
2025-05-08 02:35:27,166 - DEBUG - VN ctest-vn-18513103 UUID is 5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:27,748 - DEBUG - Response for create_network : {'network': {'id': 'f691e28d-622a-47c7-96d0-5aa114a767c3', 'name': 'ctest-vn-70828339', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'project_id': '77c9427a3d8840918b12be20c66f6c5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-vn-70828339'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:35:27,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd37207c2-2bc9-4a2d-b832-7ec900ee4b99', 'name': '', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'network_id': 'f691e28d-622a-47c7-96d0-5aa114a767c3', 'ip_version': 4, 'cidr': '34.38.144.0/26', 'allocation_pools': [{'start': '34.38.144.2', 'end': '34.38.144.62'}], 'gateway_ip': '34.38.144.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.38.144.2', 'tags': [], 'project_id': '77c9427a3d8840918b12be20c66f6c5c'}}
2025-05-08 02:35:27,965 - INFO - Created VN ctest-vn-70828339
2025-05-08 02:35:28,022 - DEBUG - VN ctest-vn-70828339 UUID is f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:28,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103, 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-20686070:ctest-vn-70828339, 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-05-08 02:35:28,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c8ba44c-c941-45b9-856c-62931965323e', 'name': 'ctest-vn-18513103', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'project_id': '77c9427a3d8840918b12be20c66f6c5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d4afd12-4d6a-4da2-aaa0-23fbc3b9514f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-vn-18513103'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-policy-allow-all-44730355']], 'subnet_ipam': [{'subnet_cidr': '166.68.198.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:35:29,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f691e28d-622a-47c7-96d0-5aa114a767c3', 'name': 'ctest-vn-70828339', 'tenant_id': '77c9427a3d8840918b12be20c66f6c5c', 'project_id': '77c9427a3d8840918b12be20c66f6c5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d37207c2-2bc9-4a2d-b832-7ec900ee4b99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-vn-70828339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-policy-allow-all-44730355']], 'subnet_ipam': [{'subnet_cidr': '34.38.144.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:35:29,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 02:35:29,595 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 02:35:29,672 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cdfd9c2-b37b-4bfc-aab0-c483ccac200c
2025-05-08 02:35:29,720 - DEBUG - Requesting: http://10.0.0.38:8082/project/77c9427a-3d88-4091-8b12-be20c66f6c5c
2025-05-08 02:35:29,809 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:29,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:29,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4098ad2c-f269-4a38-8674-6f7ea14b8a94
2025-05-08 02:35:29,904 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4098ad2c-f269-4a38-8674-6f7ea14b8a94
2025-05-08 02:35:29,930 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/224aa835-6948-4b20-9dd3-50d17189c498
2025-05-08 02:35:29,954 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 02:35:29,955 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:29,986 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4098ad2c-f269-4a38-8674-6f7ea14b8a94
2025-05-08 02:35:30,036 - INFO - Verified VN network id 8 for VN 5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:30,036 - INFO - Verifications in API Server for VN ctest-vn-18513103 passed
2025-05-08 02:35:30,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:30,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4098ad2c-f269-4a38-8674-6f7ea14b8a94
2025-05-08 02:35:30,093 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4098ad2c-f269-4a38-8674-6f7ea14b8a94
2025-05-08 02:35:30,115 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/224aa835-6948-4b20-9dd3-50d17189c498
2025-05-08 02:35:30,163 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20686070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6668604322953119161', 'uuid-lslong': '9614167688454943294'}, 'enable': 'true', 'created': '2025-05-08T02:35:26', 'last-modified': '2025-05-08T02:35:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541633'}
2025-05-08 02:35:30,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 02:35:30,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18513103 passed
2025-05-08 02:35:30,190 - DEBUG - ====Verifying policy data for ctest-vn-18513103 in API_Server ======
2025-05-08 02:35:30,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 02:35:30,211 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cdfd9c2-b37b-4bfc-aab0-c483ccac200c
2025-05-08 02:35:30,250 - DEBUG - Requesting: http://10.0.0.38:8082/project/77c9427a-3d88-4091-8b12-be20c66f6c5c
2025-05-08 02:35:30,386 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c8ba44c-c941-45b9-856c-62931965323e
2025-05-08 02:35:30,417 - DEBUG - ==>Verifying data for policy with id: 78931848-aa70-41a8-818c-b5e08731e1a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-policy-allow-all-44730355']
2025-05-08 02:35:30,417 - INFO - VN ctest-vn-18513103 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 02:35:30,418 - DEBUG - Verifying the vn in opserver
2025-05-08 02:35:30,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103 virtual network link through opserver 10.0.0.38
2025-05-08 02:35:30,418 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 02:35:30,738 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 02:35:30,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103?flat'}
2025-05-08 02:35:30,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-18513103 is found in opserver
2025-05-08 02:35:30,895 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 02:35:30,908 - DEBUG - VRF ids for VN ctest-vn-18513103: {}
2025-05-08 02:35:30,909 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 02:35:30,924 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cdfd9c2-b37b-4bfc-aab0-c483ccac200c
2025-05-08 02:35:30,950 - DEBUG - Requesting: http://10.0.0.38:8082/project/77c9427a-3d88-4091-8b12-be20c66f6c5c
2025-05-08 02:35:31,087 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,166 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4eb27b14-9f3a-4d7d-906d-b8e922c2d775
2025-05-08 02:35:31,191 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4eb27b14-9f3a-4d7d-906d-b8e922c2d775
2025-05-08 02:35:31,217 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4af13a2-57c7-42d4-a6d9-5a01a545dcfb
2025-05-08 02:35:31,240 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 02:35:31,240 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4eb27b14-9f3a-4d7d-906d-b8e922c2d775
2025-05-08 02:35:31,324 - INFO - Verified VN network id 9 for VN f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,324 - INFO - Verifications in API Server for VN ctest-vn-70828339 passed
2025-05-08 02:35:31,325 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4eb27b14-9f3a-4d7d-906d-b8e922c2d775
2025-05-08 02:35:31,391 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4eb27b14-9f3a-4d7d-906d-b8e922c2d775
2025-05-08 02:35:31,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4af13a2-57c7-42d4-a6d9-5a01a545dcfb
2025-05-08 02:35:31,465 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-70828339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20686070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17767231101818521543', 'uuid-lslong': '10867285548727756739'}, 'enable': 'true', 'created': '2025-05-08T02:35:27', 'last-modified': '2025-05-08T02:35:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.480828'}
2025-05-08 02:35:31,500 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 02:35:31,500 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70828339 passed
2025-05-08 02:35:31,501 - DEBUG - ====Verifying policy data for ctest-vn-70828339 in API_Server ======
2025-05-08 02:35:31,501 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-08 02:35:31,521 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cdfd9c2-b37b-4bfc-aab0-c483ccac200c
2025-05-08 02:35:31,558 - DEBUG - Requesting: http://10.0.0.38:8082/project/77c9427a-3d88-4091-8b12-be20c66f6c5c
2025-05-08 02:35:31,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f691e28d-622a-47c7-96d0-5aa114a767c3
2025-05-08 02:35:31,725 - DEBUG - ==>Verifying data for policy with id: 78931848-aa70-41a8-818c-b5e08731e1a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-20686070', 'ctest-policy-allow-all-44730355']
2025-05-08 02:35:31,726 - INFO - VN ctest-vn-70828339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 02:35:31,726 - DEBUG - Verifying the vn in opserver
2025-05-08 02:35:31,726 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-70828339 virtual network link through opserver 10.0.0.38
2025-05-08 02:35:31,726 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-08 02:35:31,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-70828339', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-70828339?flat'}
2025-05-08 02:35:31,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20686070:ctest-vn-70828339 is found in opserver
2025-05-08 02:35:31,794 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 02:35:31,815 - DEBUG - VRF ids for VN ctest-vn-70828339: {}
2025-05-08 02:35:31,956 - DEBUG - Services list from nova: [