2025-03-31 11:46:52,585 - INFO - Domain Default found not creating
2025-03-31 11:46:53,054 - INFO - Project ctest-TestBasicPolicy-38870792 not found, creating it
2025-03-31 11:46:53,853 - INFO - Created Project:ctest-TestBasicPolicy-38870792, ID : 36d2f0b0-ccfb-4716-962e-11138f86f441
2025-03-31 11:46:55,349 - INFO - ================================================================================
2025-03-31 11:46:55,349 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-31 11:46:55,349 - 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-03-31 11:46:55,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.23': '0'}} with
2025-03-31 11:46:55,614 - INFO - Initial checks done. Running the testcase now
2025-03-31 11:46:55,614 - INFO -
2025-03-31 11:46:56,199 - DEBUG - Response for create_network : {'network': {'id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'name': 'ctest-vn-98674386', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-98674386'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 11:46:56,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cf9a584-4953-402d-95b9-b1e4fba149b5', 'name': '', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'network_id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'ip_version': 4, 'cidr': '15.227.68.0/26', 'allocation_pools': [{'start': '15.227.68.2', 'end': '15.227.68.62'}], 'gateway_ip': '15.227.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.227.68.2', 'tags': [], 'project_id': '36d2f0b0ccfb4716962e11138f86f441'}}
2025-03-31 11:46:56,390 - INFO - Created VN ctest-vn-98674386
2025-03-31 11:46:56,443 - DEBUG - VN ctest-vn-98674386 UUID is 71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:56,769 - DEBUG - Response for create_network : {'network': {'id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'name': 'ctest-vn-33145758', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-33145758'], 'port_security_enabled': True, 'description': ''}}
2025-03-31 11:46:57,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5c5324-7292-4cb1-a9ec-7f9c1f1e8f2b', 'name': '', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'network_id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'ip_version': 4, 'cidr': '155.133.248.0/26', 'allocation_pools': [{'start': '155.133.248.2', 'end': '155.133.248.62'}], 'gateway_ip': '155.133.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.133.248.2', 'tags': [], 'project_id': '36d2f0b0ccfb4716962e11138f86f441'}}
2025-03-31 11:46:57,025 - INFO - Created VN ctest-vn-33145758
2025-03-31 11:46:57,079 - DEBUG - VN ctest-vn-33145758 UUID is 59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:57,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386, 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-38870792:ctest-vn-33145758, 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-03-31 11:46:57,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'name': 'ctest-vn-98674386', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cf9a584-4953-402d-95b9-b1e4fba149b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-98674386'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']], 'subnet_ipam': [{'subnet_cidr': '15.227.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 11:46:57,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'name': 'ctest-vn-33145758', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5c5324-7292-4cb1-a9ec-7f9c1f1e8f2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-33145758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']], 'subnet_ipam': [{'subnet_cidr': '155.133.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-31 11:46:57,955 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 11:46:58,257 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 11:46:58,287 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1
2025-03-31 11:46:58,300 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441
2025-03-31 11:46:58,379 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,393 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,404 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c
2025-03-31 11:46:58,412 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c
2025-03-31 11:46:58,420 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a239c107-893b-4c39-a1c2-13eecc9b5344
2025-03-31 11:46:58,428 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 11:46:58,428 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c
2025-03-31 11:46:58,455 - INFO - Verified VN network id 8 for VN 71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,456 - INFO - Verifications in API Server for VN ctest-vn-98674386 passed
2025-03-31 11:46:58,456 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,469 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c
2025-03-31 11:46:58,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c
2025-03-31 11:46:58,484 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a239c107-893b-4c39-a1c2-13eecc9b5344
2025-03-31 11:46:58,497 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38870792', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8191827508438320363', 'uuid-lslong': '13387662659565856662'}, 'enable': 'true', 'created': '2025-03-31T11:46:56', 'last-modified': '2025-03-31T11:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004362'}
2025-03-31 11:46:58,505 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-31 11:46:58,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98674386 passed
2025-03-31 11:46:58,505 - DEBUG - ====Verifying policy data for ctest-vn-98674386 in API_Server ======
2025-03-31 11:46:58,505 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 11:46:58,511 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1
2025-03-31 11:46:58,523 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441
2025-03-31 11:46:58,596 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796
2025-03-31 11:46:58,609 - DEBUG - ==>Verifying data for policy with id: bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']
2025-03-31 11:46:58,609 - INFO - VN ctest-vn-98674386 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 11:46:58,609 - DEBUG - Verifying the vn in opserver
2025-03-31 11:46:58,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386 virtual network link through opserver 10.0.0.27
2025-03-31 11:46:58,610 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 11:46:58,904 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 11:46:58,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386?flat'}
2025-03-31 11:46:58,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386 is found in opserver
2025-03-31 11:46:58,970 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 11:46:58,976 - DEBUG - VRF ids for VN ctest-vn-98674386: {}
2025-03-31 11:46:58,976 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 11:46:58,982 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1
2025-03-31 11:46:58,994 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441
2025-03-31 11:46:59,067 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,090 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96
2025-03-31 11:46:59,099 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96
2025-03-31 11:46:59,106 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5b41afdf-0a53-40fa-8bdc-f575ccf5ae25
2025-03-31 11:46:59,114 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 11:46:59,114 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,124 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96
2025-03-31 11:46:59,141 - INFO - Verified VN network id 9 for VN 59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,141 - INFO - Verifications in API Server for VN ctest-vn-33145758 passed
2025-03-31 11:46:59,142 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,154 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96
2025-03-31 11:46:59,161 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96
2025-03-31 11:46:59,170 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5b41afdf-0a53-40fa-8bdc-f575ccf5ae25
2025-03-31 11:46:59,183 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38870792', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6479581078684913467', 'uuid-lslong': '9795847633392508934'}, 'enable': 'true', 'created': '2025-03-31T11:46:56', 'last-modified': '2025-03-31T11:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437327'}
2025-03-31 11:46:59,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-31 11:46:59,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33145758 passed
2025-03-31 11:46:59,190 - DEBUG - ====Verifying policy data for ctest-vn-33145758 in API_Server ======
2025-03-31 11:46:59,190 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-31 11:46:59,197 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1
2025-03-31 11:46:59,208 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441
2025-03-31 11:46:59,283 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006
2025-03-31 11:46:59,294 - DEBUG - ==>Verifying data for policy with id: bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']
2025-03-31 11:46:59,294 - INFO - VN ctest-vn-33145758 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-31 11:46:59,294 - DEBUG - Verifying the vn in opserver
2025-03-31 11:46:59,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758 virtual network link through opserver 10.0.0.27
2025-03-31 11:46:59,294 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-31 11:46:59,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758?flat'}
2025-03-31 11:46:59,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758 is found in opserver
2025-03-31 11:46:59,320 - DEBUG - Do not have enough data to verify VN in agent
2025-03-31 11:46:59,328 - DEBUG - VRF ids for VN ctest-vn-33145758: {}
2025-03-31 11:46:59,405 - DEBUG - Services list from nova: [