2025-07-03 02:17:22,417 - INFO - Domain Default found not creating
2025-07-03 02:17:22,584 - INFO - Project ctest-TestBasicPolicy-43406846 not found, creating it
2025-07-03 02:17:23,157 - INFO - Created Project:ctest-TestBasicPolicy-43406846, ID : 68a4d692-b02e-46d4-b5b9-02dc257aecdd
2025-07-03 02:17:24,875 - INFO - ================================================================================
2025-07-03 02:17:24,875 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-03 02:17:24,875 - 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-03 02:17:25,135 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with
2025-07-03 02:17:25,135 - INFO - Initial checks done. Running the testcase now
2025-07-03 02:17:25,135 - INFO -
2025-07-03 02:17:25,762 - DEBUG - Response for create_network : {'network': {'id': '16a9a0c7-cf2d-47b9-b93e-f084fc9e6625', 'name': 'ctest-vn-03973964', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'project_id': '68a4d692b02e46d4b5b902dc257aecdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-vn-03973964'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:17:25,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bd80df4-0e54-4574-9a70-1ddf820b8fbb', 'name': '', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'network_id': '16a9a0c7-cf2d-47b9-b93e-f084fc9e6625', 'ip_version': 4, 'cidr': '77.38.73.0/26', 'allocation_pools': [{'start': '77.38.73.2', 'end': '77.38.73.62'}], 'gateway_ip': '77.38.73.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.38.73.2', 'tags': [], 'project_id': '68a4d692b02e46d4b5b902dc257aecdd'}}
2025-07-03 02:17:25,977 - INFO - Created VN ctest-vn-03973964
2025-07-03 02:17:26,031 - DEBUG - VN ctest-vn-03973964 UUID is 16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:26,341 - DEBUG - Response for create_network : {'network': {'id': '34f40619-d592-47d5-ab0f-b72977561dc9', 'name': 'ctest-vn-23597369', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'project_id': '68a4d692b02e46d4b5b902dc257aecdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-vn-23597369'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:17:26,561 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b89ba3ce-2048-43ff-a23b-2296e9e0fa07', 'name': '', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'network_id': '34f40619-d592-47d5-ab0f-b72977561dc9', 'ip_version': 4, 'cidr': '125.203.210.64/26', 'allocation_pools': [{'start': '125.203.210.66', 'end': '125.203.210.126'}], 'gateway_ip': '125.203.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.203.210.66', 'tags': [], 'project_id': '68a4d692b02e46d4b5b902dc257aecdd'}}
2025-07-03 02:17:26,583 - INFO - Created VN ctest-vn-23597369
2025-07-03 02:17:26,635 - DEBUG - VN ctest-vn-23597369 UUID is 34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:26,766 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964, 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-43406846:ctest-vn-23597369, 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-03 02:17:27,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16a9a0c7-cf2d-47b9-b93e-f084fc9e6625', 'name': 'ctest-vn-03973964', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'project_id': '68a4d692b02e46d4b5b902dc257aecdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bd80df4-0e54-4574-9a70-1ddf820b8fbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-vn-03973964'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-policy-allow-all-38875570']], 'subnet_ipam': [{'subnet_cidr': '77.38.73.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:17:27,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34f40619-d592-47d5-ab0f-b72977561dc9', 'name': 'ctest-vn-23597369', 'tenant_id': '68a4d692b02e46d4b5b902dc257aecdd', 'project_id': '68a4d692b02e46d4b5b902dc257aecdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b89ba3ce-2048-43ff-a23b-2296e9e0fa07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-vn-23597369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-policy-allow-all-38875570']], 'subnet_ipam': [{'subnet_cidr': '125.203.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:17:27,559 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-03 02:17:27,903 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-03 02:17:27,935 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11fdcfb8-5315-4989-9bf6-82a1b2908326
2025-07-03 02:17:27,954 - DEBUG - Requesting: http://10.0.0.130:8082/project/68a4d692-b02e-46d4-b5b9-02dc257aecdd
2025-07-03 02:17:28,035 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,049 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,061 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/612203e3-7de3-48c0-9bac-015acca0e460
2025-07-03 02:17:28,070 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/612203e3-7de3-48c0-9bac-015acca0e460
2025-07-03 02:17:28,079 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/84abfbc9-5bbe-4a46-bd80-80f25e0e686f
2025-07-03 02:17:28,086 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:17:28,086 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,097 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/612203e3-7de3-48c0-9bac-015acca0e460
2025-07-03 02:17:28,113 - INFO - Verified VN network id 8 for VN 16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,113 - INFO - Verifications in API Server for VN ctest-vn-03973964 passed
2025-07-03 02:17:28,113 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,126 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/612203e3-7de3-48c0-9bac-015acca0e460
2025-07-03 02:17:28,136 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/612203e3-7de3-48c0-9bac-015acca0e460
2025-07-03 02:17:28,144 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/84abfbc9-5bbe-4a46-bd80-80f25e0e686f
2025-07-03 02:17:28,158 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43406846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1633013119933302713', 'uuid-lslong': '13348370799537317413'}, 'enable': 'true', 'created': '2025-07-03T02:17:25', 'last-modified': '2025-07-03T02:17:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087879'}
2025-07-03 02:17:28,166 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:17:28,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03973964 passed
2025-07-03 02:17:28,166 - DEBUG - ====Verifying policy data for ctest-vn-03973964 in API_Server ======
2025-07-03 02:17:28,166 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-03 02:17:28,172 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11fdcfb8-5315-4989-9bf6-82a1b2908326
2025-07-03 02:17:28,186 - DEBUG - Requesting: http://10.0.0.130:8082/project/68a4d692-b02e-46d4-b5b9-02dc257aecdd
2025-07-03 02:17:28,265 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/16a9a0c7-cf2d-47b9-b93e-f084fc9e6625
2025-07-03 02:17:28,277 - DEBUG - ==>Verifying data for policy with id: e75c3412-816f-4309-94bd-4bed441efd55, fqn: ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-policy-allow-all-38875570']
2025-07-03 02:17:28,277 - INFO - VN ctest-vn-03973964 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:17:28,277 - DEBUG - Verifying the vn in opserver
2025-07-03 02:17:28,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964 virtual network link through opserver 10.0.0.130
2025-07-03 02:17:28,278 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-03 02:17:28,624 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-03 02:17:28,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964?flat'}
2025-07-03 02:17:28,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-03973964 is found in opserver
2025-07-03 02:17:28,700 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:17:28,707 - DEBUG - VRF ids for VN ctest-vn-03973964: {}
2025-07-03 02:17:28,707 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-03 02:17:28,714 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11fdcfb8-5315-4989-9bf6-82a1b2908326
2025-07-03 02:17:28,728 - DEBUG - Requesting: http://10.0.0.130:8082/project/68a4d692-b02e-46d4-b5b9-02dc257aecdd
2025-07-03 02:17:28,807 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:28,822 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:28,834 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a6b3990f-137e-44f0-832b-d30aef455a69
2025-07-03 02:17:28,843 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a6b3990f-137e-44f0-832b-d30aef455a69
2025-07-03 02:17:28,852 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1dddcf3f-5261-4f0a-9a65-a9bd67fcc8e7
2025-07-03 02:17:28,861 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:17:28,861 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:28,875 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a6b3990f-137e-44f0-832b-d30aef455a69
2025-07-03 02:17:28,894 - INFO - Verified VN network id 9 for VN 34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:28,894 - INFO - Verifications in API Server for VN ctest-vn-23597369 passed
2025-07-03 02:17:28,894 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:28,906 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a6b3990f-137e-44f0-832b-d30aef455a69
2025-07-03 02:17:28,916 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a6b3990f-137e-44f0-832b-d30aef455a69
2025-07-03 02:17:28,926 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1dddcf3f-5261-4f0a-9a65-a9bd67fcc8e7
2025-07-03 02:17:28,941 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-23597369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43406846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3815681492316735445', 'uuid-lslong': '12326272093860011465'}, 'enable': 'true', 'created': '2025-07-03T02:17:26', 'last-modified': '2025-07-03T02:17:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.619450'}
2025-07-03 02:17:28,948 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:17:28,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23597369 passed
2025-07-03 02:17:28,948 - DEBUG - ====Verifying policy data for ctest-vn-23597369 in API_Server ======
2025-07-03 02:17:28,948 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-03 02:17:28,955 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11fdcfb8-5315-4989-9bf6-82a1b2908326
2025-07-03 02:17:28,970 - DEBUG - Requesting: http://10.0.0.130:8082/project/68a4d692-b02e-46d4-b5b9-02dc257aecdd
2025-07-03 02:17:29,054 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/34f40619-d592-47d5-ab0f-b72977561dc9
2025-07-03 02:17:29,070 - DEBUG - ==>Verifying data for policy with id: e75c3412-816f-4309-94bd-4bed441efd55, fqn: ['default-domain', 'ctest-TestBasicPolicy-43406846', 'ctest-policy-allow-all-38875570']
2025-07-03 02:17:29,070 - INFO - VN ctest-vn-23597369 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:17:29,070 - DEBUG - Verifying the vn in opserver
2025-07-03 02:17:29,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-23597369 virtual network link through opserver 10.0.0.130
2025-07-03 02:17:29,071 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-03 02:17:29,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-23597369', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-23597369?flat'}
2025-07-03 02:17:29,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43406846:ctest-vn-23597369 is found in opserver
2025-07-03 02:17:29,100 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:17:29,107 - DEBUG - VRF ids for VN ctest-vn-23597369: {}
2025-07-03 02:17:29,174 - DEBUG - Services list from nova: [