2026-09-29 18:09:49,523 - INFO - Domain Default found not creating
2026-09-29 18:09:49,759 - INFO - Project ctest-TestBasicPolicy-40898220 not found, creating it
2026-09-29 18:09:50,321 - INFO - Created Project:ctest-TestBasicPolicy-40898220, ID : 7f2b953e-0603-4b70-8a22-1e50e7732942
2026-09-29 18:09:52,333 - INFO - ================================================================================
2026-09-29 18:09:52,333 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-29 18:09:52,333 - 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
2026-09-29 18:09:52,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with
2026-09-29 18:09:52,611 - INFO - Initial checks done. Running the testcase now
2026-09-29 18:09:52,611 - INFO -
2026-09-29 18:09:53,425 - DEBUG - Response for create_network : {'network': {'id': '9015c3d2-d543-404a-b626-d456f8db8d0a', 'name': 'ctest-vn-20022245', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'project_id': '7f2b953e06034b708a221e50e7732942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-vn-20022245'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 18:09:53,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f0709a5-3ddd-4f57-8538-70e4fb37bd27', 'name': '', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'network_id': '9015c3d2-d543-404a-b626-d456f8db8d0a', 'ip_version': 4, 'cidr': '3.34.40.0/26', 'allocation_pools': [{'start': '3.34.40.2', 'end': '3.34.40.62'}], 'gateway_ip': '3.34.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.34.40.2', 'tags': [], 'project_id': '7f2b953e06034b708a221e50e7732942'}}
2026-09-29 18:09:53,703 - INFO - Created VN ctest-vn-20022245
2026-09-29 18:09:53,757 - DEBUG - VN ctest-vn-20022245 UUID is 9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:54,146 - DEBUG - Response for create_network : {'network': {'id': 'b81ce2c5-c6f2-45aa-9bd2-cb61327a585a', 'name': 'ctest-vn-57206763', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'project_id': '7f2b953e06034b708a221e50e7732942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-vn-57206763'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 18:09:54,440 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ec7121d-355d-4c2f-b480-5c8ae1261840', 'name': '', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'network_id': 'b81ce2c5-c6f2-45aa-9bd2-cb61327a585a', 'ip_version': 4, 'cidr': '28.193.66.64/26', 'allocation_pools': [{'start': '28.193.66.66', 'end': '28.193.66.126'}], 'gateway_ip': '28.193.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.193.66.66', 'tags': [], 'project_id': '7f2b953e06034b708a221e50e7732942'}}
2026-09-29 18:09:54,464 - INFO - Created VN ctest-vn-57206763
2026-09-29 18:09:54,522 - DEBUG - VN ctest-vn-57206763 UUID is b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:54,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245, 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-40898220:ctest-vn-57206763, 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]
2026-09-29 18:09:55,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9015c3d2-d543-404a-b626-d456f8db8d0a', 'name': 'ctest-vn-20022245', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'project_id': '7f2b953e06034b708a221e50e7732942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0f0709a5-3ddd-4f57-8538-70e4fb37bd27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-vn-20022245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-policy-allow-all-26861442']], 'subnet_ipam': [{'subnet_cidr': '3.34.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 18:09:55,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b81ce2c5-c6f2-45aa-9bd2-cb61327a585a', 'name': 'ctest-vn-57206763', 'tenant_id': '7f2b953e06034b708a221e50e7732942', 'project_id': '7f2b953e06034b708a221e50e7732942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7ec7121d-355d-4c2f-b480-5c8ae1261840'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-vn-57206763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-policy-allow-all-26861442']], 'subnet_ipam': [{'subnet_cidr': '28.193.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 18:09:55,482 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 18:09:55,863 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 18:09:55,900 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1
2026-09-29 18:09:55,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f2b953e-0603-4b70-8a22-1e50e7732942
2026-09-29 18:09:56,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,028 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fb798ce1-7ee5-4516-ba41-01a20727b11c
2026-09-29 18:09:56,053 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fb798ce1-7ee5-4516-ba41-01a20727b11c
2026-09-29 18:09:56,062 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0aecb76b-2eb4-431c-9544-61f4a338603c
2026-09-29 18:09:56,072 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 18:09:56,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,084 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fb798ce1-7ee5-4516-ba41-01a20727b11c
2026-09-29 18:09:56,107 - INFO - Verified VN network id 10 for VN 9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,107 - INFO - Verifications in API Server for VN ctest-vn-20022245 passed
2026-09-29 18:09:56,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,119 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fb798ce1-7ee5-4516-ba41-01a20727b11c
2026-09-29 18:09:56,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fb798ce1-7ee5-4516-ba41-01a20727b11c
2026-09-29 18:09:56,140 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0aecb76b-2eb4-431c-9544-61f4a338603c
2026-09-29 18:09:56,159 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40898220', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10382419826261049418', 'uuid-lslong': '13125411634025303306'}, 'enable': 'true', 'created': '2026-09-29T18:09:53', 'last-modified': '2026-09-29T18:09:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.180501'}
2026-09-29 18:09:56,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 18:09:56,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20022245 passed
2026-09-29 18:09:56,169 - DEBUG - ====Verifying policy data for ctest-vn-20022245 in API_Server ======
2026-09-29 18:09:56,169 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 18:09:56,177 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1
2026-09-29 18:09:56,191 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f2b953e-0603-4b70-8a22-1e50e7732942
2026-09-29 18:09:56,294 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9015c3d2-d543-404a-b626-d456f8db8d0a
2026-09-29 18:09:56,308 - DEBUG - ==>Verifying data for policy with id: 84738355-5fad-4f9b-9d7d-d023e9b2b07a, fqn: ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-policy-allow-all-26861442']
2026-09-29 18:09:56,309 - INFO - VN ctest-vn-20022245 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 18:09:56,309 - DEBUG - Verifying the vn in opserver
2026-09-29 18:09:56,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245 virtual network link through opserver 10.0.0.38
2026-09-29 18:09:56,309 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 18:09:56,696 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 18:09:56,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245?flat'}
2026-09-29 18:09:56,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-20022245 is found in opserver
2026-09-29 18:09:56,789 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 18:09:56,796 - DEBUG - VRF ids for VN ctest-vn-20022245: {}
2026-09-29 18:09:56,796 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 18:09:56,804 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1
2026-09-29 18:09:56,819 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f2b953e-0603-4b70-8a22-1e50e7732942
2026-09-29 18:09:56,910 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:56,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:56,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47a011f1-0091-4277-9e09-2272e3fbccec
2026-09-29 18:09:56,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47a011f1-0091-4277-9e09-2272e3fbccec
2026-09-29 18:09:56,965 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9d7be865-4565-4b2a-bd90-525a31b44de7
2026-09-29 18:09:56,975 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 18:09:56,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:56,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47a011f1-0091-4277-9e09-2272e3fbccec
2026-09-29 18:09:57,009 - INFO - Verified VN network id 11 for VN b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:57,009 - INFO - Verifications in API Server for VN ctest-vn-57206763 passed
2026-09-29 18:09:57,009 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:57,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47a011f1-0091-4277-9e09-2272e3fbccec
2026-09-29 18:09:57,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47a011f1-0091-4277-9e09-2272e3fbccec
2026-09-29 18:09:57,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9d7be865-4565-4b2a-bd90-525a31b44de7
2026-09-29 18:09:57,065 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-57206763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40898220', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13266727941400839594', 'uuid-lslong': '11228260439307212890'}, 'enable': 'true', 'created': '2026-09-29T18:09:54', 'last-modified': '2026-09-29T18:09:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.802797'}
2026-09-29 18:09:57,077 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 18:09:57,078 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57206763 passed
2026-09-29 18:09:57,078 - DEBUG - ====Verifying policy data for ctest-vn-57206763 in API_Server ======
2026-09-29 18:09:57,078 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 18:09:57,086 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1
2026-09-29 18:09:57,103 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f2b953e-0603-4b70-8a22-1e50e7732942
2026-09-29 18:09:57,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b81ce2c5-c6f2-45aa-9bd2-cb61327a585a
2026-09-29 18:09:57,213 - DEBUG - ==>Verifying data for policy with id: 84738355-5fad-4f9b-9d7d-d023e9b2b07a, fqn: ['default-domain', 'ctest-TestBasicPolicy-40898220', 'ctest-policy-allow-all-26861442']
2026-09-29 18:09:57,213 - INFO - VN ctest-vn-57206763 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 18:09:57,213 - DEBUG - Verifying the vn in opserver
2026-09-29 18:09:57,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-57206763 virtual network link through opserver 10.0.0.38
2026-09-29 18:09:57,213 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 18:09:57,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-57206763', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-57206763?flat'}
2026-09-29 18:09:57,226 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40898220:ctest-vn-57206763 is found in opserver
2026-09-29 18:09:57,239 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 18:09:57,246 - DEBUG - VRF ids for VN ctest-vn-57206763: {}
2026-09-29 18:09:57,323 - DEBUG - Services list from nova: [