2025-12-03 16:13:49,738 - INFO - Domain Default found not creating
2025-12-03 16:13:49,924 - INFO - Project ctest-TestBasicPolicy-28932398 not found, creating it
2025-12-03 16:13:50,405 - INFO - Created Project:ctest-TestBasicPolicy-28932398, ID : 4cfc3155-9ec4-4d12-a825-f38877d4382d
2025-12-03 16:13:52,045 - INFO - ================================================================================
2025-12-03 16:13:52,045 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-03 16:13:52,045 - 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-12-03 16:13:52,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-12-03 16:13:52,299 - INFO - Initial checks done. Running the testcase now
2025-12-03 16:13:52,300 - INFO -
2025-12-03 16:13:52,907 - DEBUG - Response for create_network : {'network': {'id': 'b920da4a-f2e8-4003-82dd-6a408dc51daa', 'name': 'ctest-vn-87907190', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'project_id': '4cfc31559ec44d12a825f38877d4382d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-vn-87907190'], 'port_security_enabled': True, 'description': ''}}
2025-12-03 16:13:53,118 - DEBUG - Response for create_subnet : {'subnet': {'id': '13ac25cf-076e-476e-8464-de363eff8c0d', 'name': '', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'network_id': 'b920da4a-f2e8-4003-82dd-6a408dc51daa', 'ip_version': 4, 'cidr': '220.133.127.64/26', 'allocation_pools': [{'start': '220.133.127.66', 'end': '220.133.127.126'}], 'gateway_ip': '220.133.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.133.127.66', 'tags': [], 'project_id': '4cfc31559ec44d12a825f38877d4382d'}}
2025-12-03 16:13:53,135 - INFO - Created VN ctest-vn-87907190
2025-12-03 16:13:53,186 - DEBUG - VN ctest-vn-87907190 UUID is b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:53,510 - DEBUG - Response for create_network : {'network': {'id': '7270dcfd-9654-4279-a8e1-1559ebdef75e', 'name': 'ctest-vn-62413852', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'project_id': '4cfc31559ec44d12a825f38877d4382d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-vn-62413852'], 'port_security_enabled': True, 'description': ''}}
2025-12-03 16:13:53,720 - DEBUG - Response for create_subnet : {'subnet': {'id': '95d1a0c9-f264-4a62-84ca-1eb2d26e6575', 'name': '', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'network_id': '7270dcfd-9654-4279-a8e1-1559ebdef75e', 'ip_version': 4, 'cidr': '219.149.76.0/26', 'allocation_pools': [{'start': '219.149.76.2', 'end': '219.149.76.62'}], 'gateway_ip': '219.149.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.149.76.2', 'tags': [], 'project_id': '4cfc31559ec44d12a825f38877d4382d'}}
2025-12-03 16:13:53,738 - INFO - Created VN ctest-vn-62413852
2025-12-03 16:13:53,798 - DEBUG - VN ctest-vn-62413852 UUID is 7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:53,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190, 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-28932398:ctest-vn-62413852, 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-12-03 16:13:54,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b920da4a-f2e8-4003-82dd-6a408dc51daa', 'name': 'ctest-vn-87907190', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'project_id': '4cfc31559ec44d12a825f38877d4382d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13ac25cf-076e-476e-8464-de363eff8c0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-vn-87907190'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-policy-allow-all-59759476']], 'subnet_ipam': [{'subnet_cidr': '220.133.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-03 16:13:54,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7270dcfd-9654-4279-a8e1-1559ebdef75e', 'name': 'ctest-vn-62413852', 'tenant_id': '4cfc31559ec44d12a825f38877d4382d', 'project_id': '4cfc31559ec44d12a825f38877d4382d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95d1a0c9-f264-4a62-84ca-1eb2d26e6575'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-vn-62413852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-policy-allow-all-59759476']], 'subnet_ipam': [{'subnet_cidr': '219.149.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-03 16:13:54,614 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 16:13:54,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 16:13:54,989 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f77dd78b-3865-45a3-9696-0b2dabce60bd
2025-12-03 16:13:55,004 - DEBUG - Requesting: http://10.0.0.38:8082/project/4cfc3155-9ec4-4d12-a825-f38877d4382d
2025-12-03 16:13:55,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50609958-715c-4b91-9359-6bc9f39f6f1c
2025-12-03 16:13:55,112 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50609958-715c-4b91-9359-6bc9f39f6f1c
2025-12-03 16:13:55,119 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e74d785e-5e65-4ce6-adc7-02b6f2cf0992
2025-12-03 16:13:55,125 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-03 16:13:55,125 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50609958-715c-4b91-9359-6bc9f39f6f1c
2025-12-03 16:13:55,149 - INFO - Verified VN network id 11 for VN b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,149 - INFO - Verifications in API Server for VN ctest-vn-87907190 passed
2025-12-03 16:13:55,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50609958-715c-4b91-9359-6bc9f39f6f1c
2025-12-03 16:13:55,166 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/50609958-715c-4b91-9359-6bc9f39f6f1c
2025-12-03 16:13:55,173 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e74d785e-5e65-4ce6-adc7-02b6f2cf0992
2025-12-03 16:13:55,185 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28932398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13339902111709151235', 'uuid-lslong': '9429810020272643498'}, 'enable': 'true', 'created': '2025-12-03T16:13:52', 'last-modified': '2025-12-03T16:13:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996861'}
2025-12-03 16:13:55,190 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-03 16:13:55,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87907190 passed
2025-12-03 16:13:55,191 - DEBUG - ====Verifying policy data for ctest-vn-87907190 in API_Server ======
2025-12-03 16:13:55,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 16:13:55,196 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f77dd78b-3865-45a3-9696-0b2dabce60bd
2025-12-03 16:13:55,206 - DEBUG - Requesting: http://10.0.0.38:8082/project/4cfc3155-9ec4-4d12-a825-f38877d4382d
2025-12-03 16:13:55,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b920da4a-f2e8-4003-82dd-6a408dc51daa
2025-12-03 16:13:55,287 - DEBUG - ==>Verifying data for policy with id: d31ea95c-f2cd-4274-b87d-ba163a5b16aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-policy-allow-all-59759476']
2025-12-03 16:13:55,287 - INFO - VN ctest-vn-87907190 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-03 16:13:55,287 - DEBUG - Verifying the vn in opserver
2025-12-03 16:13:55,287 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190 virtual network link through opserver 10.0.0.38
2025-12-03 16:13:55,287 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 16:13:55,623 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 16:13:55,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190?flat'}
2025-12-03 16:13:55,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-87907190 is found in opserver
2025-12-03 16:13:55,697 - DEBUG - Do not have enough data to verify VN in agent
2025-12-03 16:13:55,701 - DEBUG - VRF ids for VN ctest-vn-87907190: {}
2025-12-03 16:13:55,701 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 16:13:55,707 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f77dd78b-3865-45a3-9696-0b2dabce60bd
2025-12-03 16:13:55,717 - DEBUG - Requesting: http://10.0.0.38:8082/project/4cfc3155-9ec4-4d12-a825-f38877d4382d
2025-12-03 16:13:55,787 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,797 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e574977-b129-4ca9-bfb3-f7b4aaad6c43
2025-12-03 16:13:55,812 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e574977-b129-4ca9-bfb3-f7b4aaad6c43
2025-12-03 16:13:55,818 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3b5750b-b719-41b8-90bf-3537d2d92ca7
2025-12-03 16:13:55,825 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-03 16:13:55,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,833 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e574977-b129-4ca9-bfb3-f7b4aaad6c43
2025-12-03 16:13:55,847 - INFO - Verified VN network id 12 for VN 7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,847 - INFO - Verifications in API Server for VN ctest-vn-62413852 passed
2025-12-03 16:13:55,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e574977-b129-4ca9-bfb3-f7b4aaad6c43
2025-12-03 16:13:55,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2e574977-b129-4ca9-bfb3-f7b4aaad6c43
2025-12-03 16:13:55,868 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3b5750b-b719-41b8-90bf-3537d2d92ca7
2025-12-03 16:13:55,878 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-62413852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28932398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8246333899422319225', 'uuid-lslong': '12169031144085321566'}, 'enable': 'true', 'created': '2025-12-03T16:13:53', 'last-modified': '2025-12-03T16:13:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454749'}
2025-12-03 16:13:55,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-03 16:13:55,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62413852 passed
2025-12-03 16:13:55,884 - DEBUG - ====Verifying policy data for ctest-vn-62413852 in API_Server ======
2025-12-03 16:13:55,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 16:13:55,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f77dd78b-3865-45a3-9696-0b2dabce60bd
2025-12-03 16:13:55,901 - DEBUG - Requesting: http://10.0.0.38:8082/project/4cfc3155-9ec4-4d12-a825-f38877d4382d
2025-12-03 16:13:55,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7270dcfd-9654-4279-a8e1-1559ebdef75e
2025-12-03 16:13:55,982 - DEBUG - ==>Verifying data for policy with id: d31ea95c-f2cd-4274-b87d-ba163a5b16aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-28932398', 'ctest-policy-allow-all-59759476']
2025-12-03 16:13:55,982 - INFO - VN ctest-vn-62413852 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-03 16:13:55,982 - DEBUG - Verifying the vn in opserver
2025-12-03 16:13:55,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-62413852 virtual network link through opserver 10.0.0.38
2025-12-03 16:13:55,983 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 16:13:55,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-62413852', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-62413852?flat'}
2025-12-03 16:13:55,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28932398:ctest-vn-62413852 is found in opserver
2025-12-03 16:13:56,004 - DEBUG - Do not have enough data to verify VN in agent
2025-12-03 16:13:56,009 - DEBUG - VRF ids for VN ctest-vn-62413852: {}
2025-12-03 16:13:56,069 - DEBUG - Services list from nova: [