2025-07-09 12:29:46,733 - INFO - Domain Default found not creating
2025-07-09 12:29:46,862 - INFO - Project ctest-TestBasicPolicy-08721825 not found, creating it
2025-07-09 12:29:47,290 - INFO - Created Project:ctest-TestBasicPolicy-08721825, ID : e2ef2ddd-5ecf-4548-81b1-6914d0705de0
2025-07-09 12:29:48,690 - INFO - ================================================================================
2025-07-09 12:29:48,690 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-09 12:29:48,690 - 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-09 12:29:48,945 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-07-09 12:29:48,945 - INFO - Initial checks done. Running the testcase now
2025-07-09 12:29:48,945 - INFO -
2025-07-09 12:29:49,587 - DEBUG - Response for create_network : {'network': {'id': '08e2a6ee-5c64-4cc6-be67-b71ddf9df528', 'name': 'ctest-vn-52859641', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-vn-52859641'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 12:29:49,767 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d1e15ce-9044-4e12-aa4c-58d08f748792', 'name': '', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'network_id': '08e2a6ee-5c64-4cc6-be67-b71ddf9df528', 'ip_version': 4, 'cidr': '201.148.238.0/26', 'allocation_pools': [{'start': '201.148.238.2', 'end': '201.148.238.62'}], 'gateway_ip': '201.148.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.148.238.2', 'tags': [], 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0'}}
2025-07-09 12:29:49,784 - INFO - Created VN ctest-vn-52859641
2025-07-09 12:29:49,835 - DEBUG - VN ctest-vn-52859641 UUID is 08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:50,141 - DEBUG - Response for create_network : {'network': {'id': '40adf860-b09d-41eb-9804-5f58ea368dce', 'name': 'ctest-vn-71060830', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-vn-71060830'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 12:29:50,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5641bc8-799d-4a04-a6c9-1987f075cb44', 'name': '', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'network_id': '40adf860-b09d-41eb-9804-5f58ea368dce', 'ip_version': 4, 'cidr': '80.43.83.0/26', 'allocation_pools': [{'start': '80.43.83.2', 'end': '80.43.83.62'}], 'gateway_ip': '80.43.83.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.43.83.2', 'tags': [], 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0'}}
2025-07-09 12:29:50,363 - INFO - Created VN ctest-vn-71060830
2025-07-09 12:29:50,415 - DEBUG - VN ctest-vn-71060830 UUID is 40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:50,567 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641, 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-08721825:ctest-vn-71060830, 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-09 12:29:50,869 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08e2a6ee-5c64-4cc6-be67-b71ddf9df528', 'name': 'ctest-vn-52859641', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d1e15ce-9044-4e12-aa4c-58d08f748792'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-vn-52859641'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-policy-allow-all-14521182']], 'subnet_ipam': [{'subnet_cidr': '201.148.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 12:29:51,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40adf860-b09d-41eb-9804-5f58ea368dce', 'name': 'ctest-vn-71060830', 'tenant_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'project_id': 'e2ef2ddd5ecf454881b16914d0705de0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5641bc8-799d-4a04-a6c9-1987f075cb44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-vn-71060830'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-policy-allow-all-14521182']], 'subnet_ipam': [{'subnet_cidr': '80.43.83.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 12:29:51,263 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-09 12:29:51,551 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-09 12:29:51,578 - DEBUG - Requesting: http://10.0.0.130:8082/domain/97198991-39fc-4300-b48a-4ecab310a527
2025-07-09 12:29:51,591 - DEBUG - Requesting: http://10.0.0.130:8082/project/e2ef2ddd-5ecf-4548-81b1-6914d0705de0
2025-07-09 12:29:51,667 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,678 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,687 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6ae7c02-a824-4ca6-8eb9-7df6e3001b56
2025-07-09 12:29:51,695 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6ae7c02-a824-4ca6-8eb9-7df6e3001b56
2025-07-09 12:29:51,702 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/98d2ca2b-19c9-4f6e-82db-cadb71ba213f
2025-07-09 12:29:51,708 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 12:29:51,708 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,718 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6ae7c02-a824-4ca6-8eb9-7df6e3001b56
2025-07-09 12:29:51,732 - INFO - Verified VN network id 8 for VN 08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,732 - INFO - Verifications in API Server for VN ctest-vn-52859641 passed
2025-07-09 12:29:51,732 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,743 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6ae7c02-a824-4ca6-8eb9-7df6e3001b56
2025-07-09 12:29:51,752 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6ae7c02-a824-4ca6-8eb9-7df6e3001b56
2025-07-09 12:29:51,761 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/98d2ca2b-19c9-4f6e-82db-cadb71ba213f
2025-07-09 12:29:51,776 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08721825', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '640257639722536134', 'uuid-lslong': '13720136128741111080'}, 'enable': 'true', 'created': '2025-07-09T12:29:49', 'last-modified': '2025-07-09T12:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936154'}
2025-07-09 12:29:51,785 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 12:29:51,785 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52859641 passed
2025-07-09 12:29:51,785 - DEBUG - ====Verifying policy data for ctest-vn-52859641 in API_Server ======
2025-07-09 12:29:51,785 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-09 12:29:51,793 - DEBUG - Requesting: http://10.0.0.130:8082/domain/97198991-39fc-4300-b48a-4ecab310a527
2025-07-09 12:29:51,809 - DEBUG - Requesting: http://10.0.0.130:8082/project/e2ef2ddd-5ecf-4548-81b1-6914d0705de0
2025-07-09 12:29:51,885 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/08e2a6ee-5c64-4cc6-be67-b71ddf9df528
2025-07-09 12:29:51,898 - DEBUG - ==>Verifying data for policy with id: bcf0d40f-65d4-4ad6-b557-52617d2a47d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-policy-allow-all-14521182']
2025-07-09 12:29:51,898 - INFO - VN ctest-vn-52859641 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 12:29:51,898 - DEBUG - Verifying the vn in opserver
2025-07-09 12:29:51,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641 virtual network link through opserver 10.0.0.130
2025-07-09 12:29:51,898 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-09 12:29:52,187 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-09 12:29:52,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641?flat'}
2025-07-09 12:29:52,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-52859641 is found in opserver
2025-07-09 12:29:52,249 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 12:29:52,254 - DEBUG - VRF ids for VN ctest-vn-52859641: {}
2025-07-09 12:29:52,254 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-09 12:29:52,259 - DEBUG - Requesting: http://10.0.0.130:8082/domain/97198991-39fc-4300-b48a-4ecab310a527
2025-07-09 12:29:52,270 - DEBUG - Requesting: http://10.0.0.130:8082/project/e2ef2ddd-5ecf-4548-81b1-6914d0705de0
2025-07-09 12:29:52,340 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,352 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,361 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/de4b3778-7df3-4202-b51d-aa83ddf3ecf3
2025-07-09 12:29:52,368 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/de4b3778-7df3-4202-b51d-aa83ddf3ecf3
2025-07-09 12:29:52,376 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/bd335151-6c07-4e9c-aca5-9de5b275a8a5
2025-07-09 12:29:52,383 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 12:29:52,383 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,392 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/de4b3778-7df3-4202-b51d-aa83ddf3ecf3
2025-07-09 12:29:52,406 - INFO - Verified VN network id 9 for VN 40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,407 - INFO - Verifications in API Server for VN ctest-vn-71060830 passed
2025-07-09 12:29:52,407 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,416 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/de4b3778-7df3-4202-b51d-aa83ddf3ecf3
2025-07-09 12:29:52,424 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/de4b3778-7df3-4202-b51d-aa83ddf3ecf3
2025-07-09 12:29:52,432 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/bd335151-6c07-4e9c-aca5-9de5b275a8a5
2025-07-09 12:29:52,444 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-71060830', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08721825', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4660654283561976299', 'uuid-lslong': '10953985029163093454'}, 'enable': 'true', 'created': '2025-07-09T12:29:50', 'last-modified': '2025-07-09T12:29:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368899'}
2025-07-09 12:29:52,450 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 12:29:52,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71060830 passed
2025-07-09 12:29:52,450 - DEBUG - ====Verifying policy data for ctest-vn-71060830 in API_Server ======
2025-07-09 12:29:52,450 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-07-09 12:29:52,456 - DEBUG - Requesting: http://10.0.0.130:8082/domain/97198991-39fc-4300-b48a-4ecab310a527
2025-07-09 12:29:52,467 - DEBUG - Requesting: http://10.0.0.130:8082/project/e2ef2ddd-5ecf-4548-81b1-6914d0705de0
2025-07-09 12:29:52,538 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/40adf860-b09d-41eb-9804-5f58ea368dce
2025-07-09 12:29:52,547 - DEBUG - ==>Verifying data for policy with id: bcf0d40f-65d4-4ad6-b557-52617d2a47d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-08721825', 'ctest-policy-allow-all-14521182']
2025-07-09 12:29:52,547 - INFO - VN ctest-vn-71060830 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 12:29:52,548 - DEBUG - Verifying the vn in opserver
2025-07-09 12:29:52,548 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-71060830 virtual network link through opserver 10.0.0.130
2025-07-09 12:29:52,548 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-07-09 12:29:52,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-71060830', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-71060830?flat'}
2025-07-09 12:29:52,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08721825:ctest-vn-71060830 is found in opserver
2025-07-09 12:29:52,568 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 12:29:52,573 - DEBUG - VRF ids for VN ctest-vn-71060830: {}
2025-07-09 12:29:52,628 - DEBUG - Services list from nova: [