2025-04-15 12:15:52,746 - INFO - Domain Default found not creating
2025-04-15 12:15:52,906 - INFO - Project ctest-TestBasicPolicy-13923170 not found, creating it
2025-04-15 12:15:53,393 - INFO - Created Project:ctest-TestBasicPolicy-13923170, ID : fb21011f-c0a8-487c-a936-744d94cb7d56
2025-04-15 12:15:54,950 - INFO - ================================================================================
2025-04-15 12:15:54,950 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 12:15:54,950 - 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-04-15 12:15:55,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-15 12:15:55,208 - INFO - Initial checks done. Running the testcase now
2025-04-15 12:15:55,208 - INFO -
2025-04-15 12:15:55,795 - DEBUG - Response for create_network : {'network': {'id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'name': 'ctest-vn-49799817', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-49799817'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:15:55,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '488e01be-dec9-4132-ba06-90753cdc0cb3', 'name': '', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'network_id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'ip_version': 4, 'cidr': '15.167.81.64/26', 'allocation_pools': [{'start': '15.167.81.66', 'end': '15.167.81.126'}], 'gateway_ip': '15.167.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.167.81.66', 'tags': [], 'project_id': 'fb21011fc0a8487ca936744d94cb7d56'}}
2025-04-15 12:15:56,001 - INFO - Created VN ctest-vn-49799817
2025-04-15 12:15:56,059 - DEBUG - VN ctest-vn-49799817 UUID is 8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:56,373 - DEBUG - Response for create_network : {'network': {'id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'name': 'ctest-vn-04208360', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-04208360'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:15:56,550 - DEBUG - Response for create_subnet : {'subnet': {'id': '95847328-eae1-43ac-9d1d-c709531d37ee', 'name': '', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'network_id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'ip_version': 4, 'cidr': '160.114.80.64/26', 'allocation_pools': [{'start': '160.114.80.66', 'end': '160.114.80.126'}], 'gateway_ip': '160.114.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.114.80.66', 'tags': [], 'project_id': 'fb21011fc0a8487ca936744d94cb7d56'}}
2025-04-15 12:15:56,573 - INFO - Created VN ctest-vn-04208360
2025-04-15 12:15:56,631 - DEBUG - VN ctest-vn-04208360 UUID is 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:56,759 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817, 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-13923170:ctest-vn-04208360, 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-04-15 12:15:57,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'name': 'ctest-vn-49799817', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['488e01be-dec9-4132-ba06-90753cdc0cb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-49799817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']], 'subnet_ipam': [{'subnet_cidr': '15.167.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:15:57,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'name': 'ctest-vn-04208360', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95847328-eae1-43ac-9d1d-c709531d37ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-04208360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']], 'subnet_ipam': [{'subnet_cidr': '160.114.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:15:57,456 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 12:15:57,755 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 12:15:57,791 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3
2025-04-15 12:15:57,807 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56
2025-04-15 12:15:57,891 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:57,904 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:57,916 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b
2025-04-15 12:15:57,925 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b
2025-04-15 12:15:57,934 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fd175d56-97ff-454c-998a-209049341fee
2025-04-15 12:15:57,943 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 12:15:57,943 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:57,954 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b
2025-04-15 12:15:57,972 - INFO - Verified VN network id 8 for VN 8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:57,972 - INFO - Verifications in API Server for VN ctest-vn-49799817 passed
2025-04-15 12:15:57,973 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:57,983 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b
2025-04-15 12:15:57,992 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b
2025-04-15 12:15:58,000 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fd175d56-97ff-454c-998a-209049341fee
2025-04-15 12:15:58,014 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13923170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10015980273986064342', 'uuid-lslong': '11628799799256010758'}, 'enable': 'true', 'created': '2025-04-15T12:15:55', 'last-modified': '2025-04-15T12:15:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978420'}
2025-04-15 12:15:58,021 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 12:15:58,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49799817 passed
2025-04-15 12:15:58,021 - DEBUG - ====Verifying policy data for ctest-vn-49799817 in API_Server ======
2025-04-15 12:15:58,021 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 12:15:58,028 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3
2025-04-15 12:15:58,041 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56
2025-04-15 12:15:58,121 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006
2025-04-15 12:15:58,131 - DEBUG - ==>Verifying data for policy with id: 3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']
2025-04-15 12:15:58,131 - INFO - VN ctest-vn-49799817 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 12:15:58,131 - DEBUG - Verifying the vn in opserver
2025-04-15 12:15:58,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817 virtual network link through opserver 10.0.0.65
2025-04-15 12:15:58,132 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 12:15:58,424 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 12:15:58,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817?flat'}
2025-04-15 12:15:58,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817 is found in opserver
2025-04-15 12:15:58,500 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 12:15:58,506 - DEBUG - VRF ids for VN ctest-vn-49799817: {}
2025-04-15 12:15:58,506 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 12:15:58,515 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3
2025-04-15 12:15:58,530 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56
2025-04-15 12:15:58,611 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,624 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,635 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2
2025-04-15 12:15:58,645 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2
2025-04-15 12:15:58,654 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c4920bf-a02c-4cf6-86cb-9d36da7d6069
2025-04-15 12:15:58,662 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 12:15:58,662 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,673 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2
2025-04-15 12:15:58,693 - INFO - Verified VN network id 9 for VN 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,693 - INFO - Verifications in API Server for VN ctest-vn-04208360 passed
2025-04-15 12:15:58,693 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,705 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2
2025-04-15 12:15:58,714 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2
2025-04-15 12:15:58,725 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c4920bf-a02c-4cf6-86cb-9d36da7d6069
2025-04-15 12:15:58,740 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13923170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6927414130721574492', 'uuid-lslong': '12967208087077993119'}, 'enable': 'true', 'created': '2025-04-15T12:15:56', 'last-modified': '2025-04-15T12:15:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464295'}
2025-04-15 12:15:58,747 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 12:15:58,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04208360 passed
2025-04-15 12:15:58,748 - DEBUG - ====Verifying policy data for ctest-vn-04208360 in API_Server ======
2025-04-15 12:15:58,748 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 12:15:58,754 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3
2025-04-15 12:15:58,768 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56
2025-04-15 12:15:58,841 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f
2025-04-15 12:15:58,855 - DEBUG - ==>Verifying data for policy with id: 3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']
2025-04-15 12:15:58,856 - INFO - VN ctest-vn-04208360 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 12:15:58,856 - DEBUG - Verifying the vn in opserver
2025-04-15 12:15:58,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360 virtual network link through opserver 10.0.0.65
2025-04-15 12:15:58,856 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 12:15:58,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360?flat'}
2025-04-15 12:15:58,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360 is found in opserver
2025-04-15 12:15:58,883 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 12:15:58,889 - DEBUG - VRF ids for VN ctest-vn-04208360: {}
2025-04-15 12:15:58,952 - DEBUG - Services list from nova: [