2025-07-31 02:40:30,460 - INFO - Domain Default found not creating
2025-07-31 02:40:30,710 - INFO - Project ctest-TestBasicPolicy-97617009 not found, creating it
2025-07-31 02:40:31,506 - INFO - Created Project:ctest-TestBasicPolicy-97617009, ID : e5eb5a81-1ebb-431f-8c4d-744a7dbc348e
2025-07-31 02:40:33,466 - INFO - ================================================================================
2025-07-31 02:40:33,466 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 02:40:33,466 - 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-31 02:40:33,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with
2025-07-31 02:40:33,785 - INFO - Initial checks done. Running the testcase now
2025-07-31 02:40:33,785 - INFO -
2025-07-31 02:40:34,568 - DEBUG - Response for create_network : {'network': {'id': 'dc0d7f81-786a-4fbd-9d1c-77a046c87731', 'name': 'ctest-vn-68494251', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-vn-68494251'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:40:34,759 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae00efb5-5c2f-4c4c-ae2b-df719466062a', 'name': '', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'network_id': 'dc0d7f81-786a-4fbd-9d1c-77a046c87731', 'ip_version': 4, 'cidr': '191.240.244.0/26', 'allocation_pools': [{'start': '191.240.244.2', 'end': '191.240.244.62'}], 'gateway_ip': '191.240.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.240.244.2', 'tags': [], 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e'}}
2025-07-31 02:40:34,784 - INFO - Created VN ctest-vn-68494251
2025-07-31 02:40:34,839 - DEBUG - VN ctest-vn-68494251 UUID is dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:35,267 - DEBUG - Response for create_network : {'network': {'id': '835601a4-24d4-4c7b-a85a-568a0c0865f9', 'name': 'ctest-vn-15181906', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-vn-15181906'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:40:35,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '74ce3033-a3ba-4506-b057-a320b3aab825', 'name': '', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'network_id': '835601a4-24d4-4c7b-a85a-568a0c0865f9', 'ip_version': 4, 'cidr': '69.164.229.128/26', 'allocation_pools': [{'start': '69.164.229.130', 'end': '69.164.229.190'}], 'gateway_ip': '69.164.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.164.229.130', 'tags': [], 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e'}}
2025-07-31 02:40:35,521 - INFO - Created VN ctest-vn-15181906
2025-07-31 02:40:35,575 - DEBUG - VN ctest-vn-15181906 UUID is 835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:35,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251, 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-97617009:ctest-vn-15181906, 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-31 02:40:36,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc0d7f81-786a-4fbd-9d1c-77a046c87731', 'name': 'ctest-vn-68494251', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae00efb5-5c2f-4c4c-ae2b-df719466062a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-vn-68494251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-policy-allow-all-73036663']], 'subnet_ipam': [{'subnet_cidr': '191.240.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:40:36,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '835601a4-24d4-4c7b-a85a-568a0c0865f9', 'name': 'ctest-vn-15181906', 'tenant_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'project_id': 'e5eb5a811ebb431f8c4d744a7dbc348e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74ce3033-a3ba-4506-b057-a320b3aab825'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-vn-15181906'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-policy-allow-all-73036663']], 'subnet_ipam': [{'subnet_cidr': '69.164.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:40:36,739 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-31 02:40:37,052 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-31 02:40:37,100 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7
2025-07-31 02:40:37,125 - DEBUG - Requesting: http://10.0.0.19:8082/project/e5eb5a81-1ebb-431f-8c4d-744a7dbc348e
2025-07-31 02:40:37,246 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,284 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,319 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9dbdecc5-5c75-482a-beae-1a8cb88ef5ff
2025-07-31 02:40:37,343 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9dbdecc5-5c75-482a-beae-1a8cb88ef5ff
2025-07-31 02:40:37,371 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2285d443-f1f6-4d31-934a-8c5fb14daf97
2025-07-31 02:40:37,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:40:37,398 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,431 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9dbdecc5-5c75-482a-beae-1a8cb88ef5ff
2025-07-31 02:40:37,463 - INFO - Verified VN network id 11 for VN dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,463 - INFO - Verifications in API Server for VN ctest-vn-68494251 passed
2025-07-31 02:40:37,463 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,490 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9dbdecc5-5c75-482a-beae-1a8cb88ef5ff
2025-07-31 02:40:37,513 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9dbdecc5-5c75-482a-beae-1a8cb88ef5ff
2025-07-31 02:40:37,530 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2285d443-f1f6-4d31-934a-8c5fb14daf97
2025-07-31 02:40:37,567 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97617009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15856470057089126333', 'uuid-lslong': '11321055093568599857'}, 'enable': 'true', 'created': '2025-07-31T02:40:34', 'last-modified': '2025-07-31T02:40:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383750'}
2025-07-31 02:40:37,595 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:40:37,596 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68494251 passed
2025-07-31 02:40:37,596 - DEBUG - ====Verifying policy data for ctest-vn-68494251 in API_Server ======
2025-07-31 02:40:37,596 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-31 02:40:37,614 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7
2025-07-31 02:40:37,650 - DEBUG - Requesting: http://10.0.0.19:8082/project/e5eb5a81-1ebb-431f-8c4d-744a7dbc348e
2025-07-31 02:40:37,777 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dc0d7f81-786a-4fbd-9d1c-77a046c87731
2025-07-31 02:40:37,793 - DEBUG - ==>Verifying data for policy with id: 12e35eba-0941-4ad5-b673-59d70a8ad7b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-policy-allow-all-73036663']
2025-07-31 02:40:37,793 - INFO - VN ctest-vn-68494251 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:40:37,793 - DEBUG - Verifying the vn in opserver
2025-07-31 02:40:37,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251 virtual network link through opserver 10.0.0.19
2025-07-31 02:40:37,794 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-31 02:40:38,111 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-31 02:40:38,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251?flat'}
2025-07-31 02:40:38,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-68494251 is found in opserver
2025-07-31 02:40:38,311 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:40:38,330 - DEBUG - VRF ids for VN ctest-vn-68494251: {}
2025-07-31 02:40:38,331 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-31 02:40:38,348 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7
2025-07-31 02:40:38,386 - DEBUG - Requesting: http://10.0.0.19:8082/project/e5eb5a81-1ebb-431f-8c4d-744a7dbc348e
2025-07-31 02:40:38,516 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,545 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,563 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e17b7e08-f485-4e26-b1f3-e82f5a0289ba
2025-07-31 02:40:38,578 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e17b7e08-f485-4e26-b1f3-e82f5a0289ba
2025-07-31 02:40:38,591 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6b8bbe8b-3671-4cde-b288-d90b524d041b
2025-07-31 02:40:38,606 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:40:38,607 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,627 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e17b7e08-f485-4e26-b1f3-e82f5a0289ba
2025-07-31 02:40:38,662 - INFO - Verified VN network id 12 for VN 835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,663 - INFO - Verifications in API Server for VN ctest-vn-15181906 passed
2025-07-31 02:40:38,663 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,693 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e17b7e08-f485-4e26-b1f3-e82f5a0289ba
2025-07-31 02:40:38,711 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e17b7e08-f485-4e26-b1f3-e82f5a0289ba
2025-07-31 02:40:38,729 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6b8bbe8b-3671-4cde-b288-d90b524d041b
2025-07-31 02:40:38,762 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-15181906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97617009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9463753471469833339', 'uuid-lslong': '12131103697183204857'}, 'enable': 'true', 'created': '2025-07-31T02:40:35', 'last-modified': '2025-07-31T02:40:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.256163'}
2025-07-31 02:40:38,781 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:40:38,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15181906 passed
2025-07-31 02:40:38,782 - DEBUG - ====Verifying policy data for ctest-vn-15181906 in API_Server ======
2025-07-31 02:40:38,782 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-31 02:40:38,791 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7
2025-07-31 02:40:38,808 - DEBUG - Requesting: http://10.0.0.19:8082/project/e5eb5a81-1ebb-431f-8c4d-744a7dbc348e
2025-07-31 02:40:38,899 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/835601a4-24d4-4c7b-a85a-568a0c0865f9
2025-07-31 02:40:38,919 - DEBUG - ==>Verifying data for policy with id: 12e35eba-0941-4ad5-b673-59d70a8ad7b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-97617009', 'ctest-policy-allow-all-73036663']
2025-07-31 02:40:38,919 - INFO - VN ctest-vn-15181906 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:40:38,920 - DEBUG - Verifying the vn in opserver
2025-07-31 02:40:38,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-15181906 virtual network link through opserver 10.0.0.19
2025-07-31 02:40:38,920 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-31 02:40:38,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-15181906', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-15181906?flat'}
2025-07-31 02:40:38,949 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97617009:ctest-vn-15181906 is found in opserver
2025-07-31 02:40:38,976 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:40:38,989 - DEBUG - VRF ids for VN ctest-vn-15181906: {}
2025-07-31 02:40:39,143 - DEBUG - Services list from nova: [