2026-01-04 09:27:44,409 - INFO - Domain Default found not creating
2026-01-04 09:27:44,582 - INFO - Project ctest-TestBasicPolicy-15216431 not found, creating it
2026-01-04 09:27:45,019 - INFO - Created Project:ctest-TestBasicPolicy-15216431, ID : 472fdd2f-e412-4830-9d67-a48dc6c74502
2026-01-04 09:27:46,480 - INFO - ================================================================================
2026-01-04 09:27:46,480 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-04 09:27:46,480 - 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-04 09:27:46,734 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2026-01-04 09:27:46,734 - INFO - Initial checks done. Running the testcase now
2026-01-04 09:27:46,734 - INFO -
2026-01-04 09:27:47,266 - DEBUG - Response for create_network : {'network': {'id': '70a32951-f179-416a-bd44-b47ecb7bbe18', 'name': 'ctest-vn-24313253', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'project_id': '472fdd2fe41248309d67a48dc6c74502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-vn-24313253'], 'port_security_enabled': True, 'description': ''}}
2026-01-04 09:27:47,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb2a6797-41f6-41c2-a058-779b17f8a6db', 'name': '', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'network_id': '70a32951-f179-416a-bd44-b47ecb7bbe18', 'ip_version': 4, 'cidr': '4.215.238.64/26', 'allocation_pools': [{'start': '4.215.238.66', 'end': '4.215.238.126'}], 'gateway_ip': '4.215.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.215.238.66', 'tags': [], 'project_id': '472fdd2fe41248309d67a48dc6c74502'}}
2026-01-04 09:27:47,483 - INFO - Created VN ctest-vn-24313253
2026-01-04 09:27:47,532 - DEBUG - VN ctest-vn-24313253 UUID is 70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:47,805 - DEBUG - Response for create_network : {'network': {'id': '775c074d-74aa-4218-86b7-e03ce393795c', 'name': 'ctest-vn-37201911', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'project_id': '472fdd2fe41248309d67a48dc6c74502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-vn-37201911'], 'port_security_enabled': True, 'description': ''}}
2026-01-04 09:27:48,015 - DEBUG - Response for create_subnet : {'subnet': {'id': '42c2050a-775e-476b-be25-7548dbe69e4b', 'name': '', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'network_id': '775c074d-74aa-4218-86b7-e03ce393795c', 'ip_version': 4, 'cidr': '24.149.19.64/26', 'allocation_pools': [{'start': '24.149.19.66', 'end': '24.149.19.126'}], 'gateway_ip': '24.149.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.149.19.66', 'tags': [], 'project_id': '472fdd2fe41248309d67a48dc6c74502'}}
2026-01-04 09:27:48,029 - INFO - Created VN ctest-vn-37201911
2026-01-04 09:27:48,080 - DEBUG - VN ctest-vn-37201911 UUID is 775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:48,232 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253, 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-15216431:ctest-vn-37201911, 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-04 09:27:48,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70a32951-f179-416a-bd44-b47ecb7bbe18', 'name': 'ctest-vn-24313253', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'project_id': '472fdd2fe41248309d67a48dc6c74502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb2a6797-41f6-41c2-a058-779b17f8a6db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-vn-24313253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-policy-allow-all-48391771']], 'subnet_ipam': [{'subnet_cidr': '4.215.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-04 09:27:48,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '775c074d-74aa-4218-86b7-e03ce393795c', 'name': 'ctest-vn-37201911', 'tenant_id': '472fdd2fe41248309d67a48dc6c74502', 'project_id': '472fdd2fe41248309d67a48dc6c74502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42c2050a-775e-476b-be25-7548dbe69e4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-vn-37201911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-policy-allow-all-48391771']], 'subnet_ipam': [{'subnet_cidr': '24.149.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-04 09:27:48,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-04 09:27:49,196 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-04 09:27:49,225 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0
2026-01-04 09:27:49,237 - DEBUG - Requesting: http://10.0.0.38:8082/project/472fdd2f-e412-4830-9d67-a48dc6c74502
2026-01-04 09:27:49,309 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,326 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80ba505e-520d-40e7-86ad-7406154c731f
2026-01-04 09:27:49,331 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80ba505e-520d-40e7-86ad-7406154c731f
2026-01-04 09:27:49,336 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0a7ee7a4-d523-4cbf-8523-dc01fa9f522b
2026-01-04 09:27:49,341 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-04 09:27:49,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,348 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80ba505e-520d-40e7-86ad-7406154c731f
2026-01-04 09:27:49,360 - INFO - Verified VN network id 11 for VN 70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,360 - INFO - Verifications in API Server for VN ctest-vn-24313253 passed
2026-01-04 09:27:49,361 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,368 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80ba505e-520d-40e7-86ad-7406154c731f
2026-01-04 09:27:49,373 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80ba505e-520d-40e7-86ad-7406154c731f
2026-01-04 09:27:49,379 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0a7ee7a4-d523-4cbf-8523-dc01fa9f522b
2026-01-04 09:27:49,387 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15216431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8116376385372111210', 'uuid-lslong': '13638224028257467928'}, 'enable': 'true', 'created': '2026-01-04T09:27:47', 'last-modified': '2026-01-04T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892489'}
2026-01-04 09:27:49,393 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-04 09:27:49,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24313253 passed
2026-01-04 09:27:49,393 - DEBUG - ====Verifying policy data for ctest-vn-24313253 in API_Server ======
2026-01-04 09:27:49,393 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-04 09:27:49,398 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0
2026-01-04 09:27:49,409 - DEBUG - Requesting: http://10.0.0.38:8082/project/472fdd2f-e412-4830-9d67-a48dc6c74502
2026-01-04 09:27:49,476 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70a32951-f179-416a-bd44-b47ecb7bbe18
2026-01-04 09:27:49,484 - DEBUG - ==>Verifying data for policy with id: 5f85b7ba-2e06-43f0-be2b-78a0c050a81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-policy-allow-all-48391771']
2026-01-04 09:27:49,484 - INFO - VN ctest-vn-24313253 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-04 09:27:49,485 - DEBUG - Verifying the vn in opserver
2026-01-04 09:27:49,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253 virtual network link through opserver 10.0.0.38
2026-01-04 09:27:49,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-04 09:27:49,776 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-04 09:27:49,842 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253?flat'}
2026-01-04 09:27:49,842 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-24313253 is found in opserver
2026-01-04 09:27:49,851 - DEBUG - Do not have enough data to verify VN in agent
2026-01-04 09:27:49,855 - DEBUG - VRF ids for VN ctest-vn-24313253: {}
2026-01-04 09:27:49,856 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-04 09:27:49,861 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0
2026-01-04 09:27:49,871 - DEBUG - Requesting: http://10.0.0.38:8082/project/472fdd2f-e412-4830-9d67-a48dc6c74502
2026-01-04 09:27:49,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:49,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:49,962 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ef6d7be-444f-44a5-81b0-522cc87bb384
2026-01-04 09:27:49,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ef6d7be-444f-44a5-81b0-522cc87bb384
2026-01-04 09:27:49,975 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a68fe013-439a-40e5-a7cc-faa48145e306
2026-01-04 09:27:49,981 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-04 09:27:49,981 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:49,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ef6d7be-444f-44a5-81b0-522cc87bb384
2026-01-04 09:27:50,000 - INFO - Verified VN network id 12 for VN 775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:50,000 - INFO - Verifications in API Server for VN ctest-vn-37201911 passed
2026-01-04 09:27:50,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:50,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ef6d7be-444f-44a5-81b0-522cc87bb384
2026-01-04 09:27:50,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ef6d7be-444f-44a5-81b0-522cc87bb384
2026-01-04 09:27:50,021 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a68fe013-439a-40e5-a7cc-faa48145e306
2026-01-04 09:27:50,032 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-37201911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15216431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8600757417621996056', 'uuid-lslong': '9707474073941145948'}, 'enable': 'true', 'created': '2026-01-04T09:27:47', 'last-modified': '2026-01-04T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316576'}
2026-01-04 09:27:50,038 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-04 09:27:50,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37201911 passed
2026-01-04 09:27:50,038 - DEBUG - ====Verifying policy data for ctest-vn-37201911 in API_Server ======
2026-01-04 09:27:50,038 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-04 09:27:50,045 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0
2026-01-04 09:27:50,055 - DEBUG - Requesting: http://10.0.0.38:8082/project/472fdd2f-e412-4830-9d67-a48dc6c74502
2026-01-04 09:27:50,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/775c074d-74aa-4218-86b7-e03ce393795c
2026-01-04 09:27:50,136 - DEBUG - ==>Verifying data for policy with id: 5f85b7ba-2e06-43f0-be2b-78a0c050a81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15216431', 'ctest-policy-allow-all-48391771']
2026-01-04 09:27:50,136 - INFO - VN ctest-vn-37201911 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-04 09:27:50,136 - DEBUG - Verifying the vn in opserver
2026-01-04 09:27:50,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-37201911 virtual network link through opserver 10.0.0.38
2026-01-04 09:27:50,137 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-04 09:27:50,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-37201911', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-37201911?flat'}
2026-01-04 09:27:50,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15216431:ctest-vn-37201911 is found in opserver
2026-01-04 09:27:50,159 - DEBUG - Do not have enough data to verify VN in agent
2026-01-04 09:27:50,165 - DEBUG - VRF ids for VN ctest-vn-37201911: {}
2026-01-04 09:27:50,225 - DEBUG - Services list from nova: [