2026-01-15 18:18:50,154 - INFO - Domain Default found not creating
2026-01-15 18:18:50,324 - INFO - Project ctest-TestBasicPolicy-97885708 not found, creating it
2026-01-15 18:18:50,768 - INFO - Created Project:ctest-TestBasicPolicy-97885708, ID : de2e5583-a1e5-4dce-a194-033e9ce4b846
2026-01-15 18:18:52,188 - INFO - ================================================================================
2026-01-15 18:18:52,188 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-15 18:18:52,188 - 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-01-15 18:18:52,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2026-01-15 18:18:52,443 - INFO - Initial checks done. Running the testcase now
2026-01-15 18:18:52,443 - INFO -
2026-01-15 18:18:52,969 - DEBUG - Response for create_network : {'network': {'id': 'd97f1cc3-2cec-4cd0-bc14-f2247c044e0a', 'name': 'ctest-vn-96316699', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'project_id': 'de2e5583a1e54dcea194033e9ce4b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-vn-96316699'], 'port_security_enabled': True, 'description': ''}}
2026-01-15 18:18:53,173 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f91e0175-ecdd-4cfa-a174-ff9ede47dc9a', 'name': '', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'network_id': 'd97f1cc3-2cec-4cd0-bc14-f2247c044e0a', 'ip_version': 4, 'cidr': '122.103.152.192/26', 'allocation_pools': [{'start': '122.103.152.194', 'end': '122.103.152.254'}], 'gateway_ip': '122.103.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.103.152.194', 'tags': [], 'project_id': 'de2e5583a1e54dcea194033e9ce4b846'}}
2026-01-15 18:18:53,191 - INFO - Created VN ctest-vn-96316699
2026-01-15 18:18:53,241 - DEBUG - VN ctest-vn-96316699 UUID is d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:53,546 - DEBUG - Response for create_network : {'network': {'id': 'cd2936b2-e17c-4bfc-956f-89df0816d74e', 'name': 'ctest-vn-92892558', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'project_id': 'de2e5583a1e54dcea194033e9ce4b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-vn-92892558'], 'port_security_enabled': True, 'description': ''}}
2026-01-15 18:18:53,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1479560-c949-41f6-9b36-7cca1beff08e', 'name': '', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'network_id': 'cd2936b2-e17c-4bfc-956f-89df0816d74e', 'ip_version': 4, 'cidr': '67.193.198.0/26', 'allocation_pools': [{'start': '67.193.198.2', 'end': '67.193.198.62'}], 'gateway_ip': '67.193.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.193.198.2', 'tags': [], 'project_id': 'de2e5583a1e54dcea194033e9ce4b846'}}
2026-01-15 18:18:53,763 - INFO - Created VN ctest-vn-92892558
2026-01-15 18:18:53,813 - DEBUG - VN ctest-vn-92892558 UUID is cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:53,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699, 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-97885708:ctest-vn-92892558, 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-01-15 18:18:54,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd97f1cc3-2cec-4cd0-bc14-f2247c044e0a', 'name': 'ctest-vn-96316699', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'project_id': 'de2e5583a1e54dcea194033e9ce4b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f91e0175-ecdd-4cfa-a174-ff9ede47dc9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-vn-96316699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-policy-allow-all-87505997']], 'subnet_ipam': [{'subnet_cidr': '122.103.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-15 18:18:54,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd2936b2-e17c-4bfc-956f-89df0816d74e', 'name': 'ctest-vn-92892558', 'tenant_id': 'de2e5583a1e54dcea194033e9ce4b846', 'project_id': 'de2e5583a1e54dcea194033e9ce4b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1479560-c949-41f6-9b36-7cca1beff08e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-vn-92892558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-policy-allow-all-87505997']], 'subnet_ipam': [{'subnet_cidr': '67.193.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-15 18:18:54,657 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 18:18:54,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 18:18:54,988 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f
2026-01-15 18:18:55,000 - DEBUG - Requesting: http://10.0.0.50:8082/project/de2e5583-a1e5-4dce-a194-033e9ce4b846
2026-01-15 18:18:55,069 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,078 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,086 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7315872c-699c-4ed2-94c6-ebd1f95fcf4b
2026-01-15 18:18:55,092 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7315872c-699c-4ed2-94c6-ebd1f95fcf4b
2026-01-15 18:18:55,099 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29dd94da-cc0a-4ce6-a3e6-d348f5fa88e8
2026-01-15 18:18:55,105 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-15 18:18:55,105 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7315872c-699c-4ed2-94c6-ebd1f95fcf4b
2026-01-15 18:18:55,130 - INFO - Verified VN network id 9 for VN d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,130 - INFO - Verifications in API Server for VN ctest-vn-96316699 passed
2026-01-15 18:18:55,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,138 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7315872c-699c-4ed2-94c6-ebd1f95fcf4b
2026-01-15 18:18:55,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7315872c-699c-4ed2-94c6-ebd1f95fcf4b
2026-01-15 18:18:55,151 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29dd94da-cc0a-4ce6-a3e6-d348f5fa88e8
2026-01-15 18:18:55,162 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97885708', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15672276852870499536', 'uuid-lslong': '13552723417178066442'}, 'enable': 'true', 'created': '2026-01-15T18:18:52', 'last-modified': '2026-01-15T18:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933079'}
2026-01-15 18:18:55,168 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-15 18:18:55,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96316699 passed
2026-01-15 18:18:55,169 - DEBUG - ====Verifying policy data for ctest-vn-96316699 in API_Server ======
2026-01-15 18:18:55,169 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 18:18:55,174 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f
2026-01-15 18:18:55,186 - DEBUG - Requesting: http://10.0.0.50:8082/project/de2e5583-a1e5-4dce-a194-033e9ce4b846
2026-01-15 18:18:55,256 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d97f1cc3-2cec-4cd0-bc14-f2247c044e0a
2026-01-15 18:18:55,265 - DEBUG - ==>Verifying data for policy with id: 27dc20a2-1825-4e0f-a9f3-46d9da31f80a, fqn: ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-policy-allow-all-87505997']
2026-01-15 18:18:55,265 - INFO - VN ctest-vn-96316699 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-15 18:18:55,266 - DEBUG - Verifying the vn in opserver
2026-01-15 18:18:55,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699 virtual network link through opserver 10.0.0.50
2026-01-15 18:18:55,266 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 18:18:55,559 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 18:18:55,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699?flat'}
2026-01-15 18:18:55,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-96316699 is found in opserver
2026-01-15 18:18:55,644 - DEBUG - Do not have enough data to verify VN in agent
2026-01-15 18:18:55,648 - DEBUG - VRF ids for VN ctest-vn-96316699: {}
2026-01-15 18:18:55,649 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 18:18:55,653 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f
2026-01-15 18:18:55,663 - DEBUG - Requesting: http://10.0.0.50:8082/project/de2e5583-a1e5-4dce-a194-033e9ce4b846
2026-01-15 18:18:55,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1030b94-a022-452e-a741-f84e2e968222
2026-01-15 18:18:55,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1030b94-a022-452e-a741-f84e2e968222
2026-01-15 18:18:55,764 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e756d413-355a-4305-9d18-949e6e1ffe1b
2026-01-15 18:18:55,772 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-15 18:18:55,772 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1030b94-a022-452e-a741-f84e2e968222
2026-01-15 18:18:55,795 - INFO - Verified VN network id 10 for VN cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,795 - INFO - Verifications in API Server for VN ctest-vn-92892558 passed
2026-01-15 18:18:55,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,805 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1030b94-a022-452e-a741-f84e2e968222
2026-01-15 18:18:55,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d1030b94-a022-452e-a741-f84e2e968222
2026-01-15 18:18:55,818 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e756d413-355a-4305-9d18-949e6e1ffe1b
2026-01-15 18:18:55,830 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-92892558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97885708', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14783407393735461884', 'uuid-lslong': '10767976825072572238'}, 'enable': 'true', 'created': '2026-01-15T18:18:53', 'last-modified': '2026-01-15T18:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380210'}
2026-01-15 18:18:55,836 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-15 18:18:55,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92892558 passed
2026-01-15 18:18:55,836 - DEBUG - ====Verifying policy data for ctest-vn-92892558 in API_Server ======
2026-01-15 18:18:55,836 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 18:18:55,841 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f
2026-01-15 18:18:55,851 - DEBUG - Requesting: http://10.0.0.50:8082/project/de2e5583-a1e5-4dce-a194-033e9ce4b846
2026-01-15 18:18:55,921 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd2936b2-e17c-4bfc-956f-89df0816d74e
2026-01-15 18:18:55,932 - DEBUG - ==>Verifying data for policy with id: 27dc20a2-1825-4e0f-a9f3-46d9da31f80a, fqn: ['default-domain', 'ctest-TestBasicPolicy-97885708', 'ctest-policy-allow-all-87505997']
2026-01-15 18:18:55,932 - INFO - VN ctest-vn-92892558 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-15 18:18:55,932 - DEBUG - Verifying the vn in opserver
2026-01-15 18:18:55,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-92892558 virtual network link through opserver 10.0.0.50
2026-01-15 18:18:55,932 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 18:18:55,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-92892558', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-92892558?flat'}
2026-01-15 18:18:55,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97885708:ctest-vn-92892558 is found in opserver
2026-01-15 18:18:55,951 - DEBUG - Do not have enough data to verify VN in agent
2026-01-15 18:18:55,956 - DEBUG - VRF ids for VN ctest-vn-92892558: {}
2026-01-15 18:18:56,048 - DEBUG - Services list from nova: [