2025-08-11 02:05:52,576 - INFO - Domain Default found not creating
2025-08-11 02:05:52,719 - INFO - Project ctest-TestBasicPolicy-61284033 not found, creating it
2025-08-11 02:05:53,158 - INFO - Created Project:ctest-TestBasicPolicy-61284033, ID : 935d29b4-1a7c-47c0-8ce0-f78725fde342
2025-08-11 02:05:54,593 - INFO - ================================================================================
2025-08-11 02:05:54,594 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 02:05:54,594 - 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-08-11 02:05:54,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-08-11 02:05:54,851 - INFO - Initial checks done. Running the testcase now
2025-08-11 02:05:54,851 - INFO -
2025-08-11 02:05:55,412 - DEBUG - Response for create_network : {'network': {'id': 'abb6b3ac-723d-46d2-acba-a0deccfef1d4', 'name': 'ctest-vn-51976865', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'project_id': '935d29b41a7c47c08ce0f78725fde342', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-vn-51976865'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:55,580 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e4f74fd-4de5-42c6-adec-c43346c2c3c2', 'name': '', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'network_id': 'abb6b3ac-723d-46d2-acba-a0deccfef1d4', 'ip_version': 4, 'cidr': '159.129.112.0/26', 'allocation_pools': [{'start': '159.129.112.2', 'end': '159.129.112.62'}], 'gateway_ip': '159.129.112.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.129.112.2', 'tags': [], 'project_id': '935d29b41a7c47c08ce0f78725fde342'}}
2025-08-11 02:05:55,598 - INFO - Created VN ctest-vn-51976865
2025-08-11 02:05:55,652 - DEBUG - VN ctest-vn-51976865 UUID is abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:55,984 - DEBUG - Response for create_network : {'network': {'id': '70e298c1-c8b9-4f7c-a4c9-9d764d076c02', 'name': 'ctest-vn-82492763', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'project_id': '935d29b41a7c47c08ce0f78725fde342', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-vn-82492763'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:56,141 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e0ac9f7-1e4c-4fba-9a6d-0a0cd6173a74', 'name': '', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'network_id': '70e298c1-c8b9-4f7c-a4c9-9d764d076c02', 'ip_version': 4, 'cidr': '142.75.175.192/26', 'allocation_pools': [{'start': '142.75.175.194', 'end': '142.75.175.254'}], 'gateway_ip': '142.75.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.75.175.194', 'tags': [], 'project_id': '935d29b41a7c47c08ce0f78725fde342'}}
2025-08-11 02:05:56,158 - INFO - Created VN ctest-vn-82492763
2025-08-11 02:05:56,208 - DEBUG - VN ctest-vn-82492763 UUID is 70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:56,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865, 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-61284033:ctest-vn-82492763, 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-08-11 02:05:56,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abb6b3ac-723d-46d2-acba-a0deccfef1d4', 'name': 'ctest-vn-51976865', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'project_id': '935d29b41a7c47c08ce0f78725fde342', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e4f74fd-4de5-42c6-adec-c43346c2c3c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-vn-51976865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-policy-allow-all-29018817']], 'subnet_ipam': [{'subnet_cidr': '159.129.112.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:56,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e298c1-c8b9-4f7c-a4c9-9d764d076c02', 'name': 'ctest-vn-82492763', 'tenant_id': '935d29b41a7c47c08ce0f78725fde342', 'project_id': '935d29b41a7c47c08ce0f78725fde342', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e0ac9f7-1e4c-4fba-9a6d-0a0cd6173a74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-vn-82492763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-policy-allow-all-29018817']], 'subnet_ipam': [{'subnet_cidr': '142.75.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:57,012 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 02:05:57,323 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 02:05:57,357 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420
2025-08-11 02:05:57,371 - DEBUG - Requesting: http://10.0.0.130:8082/project/935d29b4-1a7c-47c0-8ce0-f78725fde342
2025-08-11 02:05:57,449 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,463 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,476 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8bcdc53-0084-4bee-bcda-265f86bf33d7
2025-08-11 02:05:57,485 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8bcdc53-0084-4bee-bcda-265f86bf33d7
2025-08-11 02:05:57,494 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/4a852c27-a791-4a3f-b604-52088b55f884
2025-08-11 02:05:57,503 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:05:57,503 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,514 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8bcdc53-0084-4bee-bcda-265f86bf33d7
2025-08-11 02:05:57,534 - INFO - Verified VN network id 11 for VN abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,534 - INFO - Verifications in API Server for VN ctest-vn-51976865 passed
2025-08-11 02:05:57,534 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,548 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8bcdc53-0084-4bee-bcda-265f86bf33d7
2025-08-11 02:05:57,557 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d8bcdc53-0084-4bee-bcda-265f86bf33d7
2025-08-11 02:05:57,565 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/4a852c27-a791-4a3f-b604-52088b55f884
2025-08-11 02:05:57,583 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61284033', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12373274579479381714', 'uuid-lslong': '12446437398974230996'}, 'enable': 'true', 'created': '2025-08-11T02:05:55', 'last-modified': '2025-08-11T02:05:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972148'}
2025-08-11 02:05:57,592 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:05:57,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51976865 passed
2025-08-11 02:05:57,592 - DEBUG - ====Verifying policy data for ctest-vn-51976865 in API_Server ======
2025-08-11 02:05:57,592 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 02:05:57,599 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420
2025-08-11 02:05:57,614 - DEBUG - Requesting: http://10.0.0.130:8082/project/935d29b4-1a7c-47c0-8ce0-f78725fde342
2025-08-11 02:05:57,688 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/abb6b3ac-723d-46d2-acba-a0deccfef1d4
2025-08-11 02:05:57,699 - DEBUG - ==>Verifying data for policy with id: b6a66f78-d642-410f-944d-87ab396c12ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-policy-allow-all-29018817']
2025-08-11 02:05:57,699 - INFO - VN ctest-vn-51976865 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:05:57,699 - DEBUG - Verifying the vn in opserver
2025-08-11 02:05:57,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865 virtual network link through opserver 10.0.0.130
2025-08-11 02:05:57,699 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 02:05:58,008 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 02:05:58,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865?flat'}
2025-08-11 02:05:58,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-51976865 is found in opserver
2025-08-11 02:05:58,128 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:05:58,142 - DEBUG - VRF ids for VN ctest-vn-51976865: {}
2025-08-11 02:05:58,142 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 02:05:58,150 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420
2025-08-11 02:05:58,169 - DEBUG - Requesting: http://10.0.0.130:8082/project/935d29b4-1a7c-47c0-8ce0-f78725fde342
2025-08-11 02:05:58,247 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,261 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,274 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9d2efab-966b-4ca0-8f94-c5bf6ed86645
2025-08-11 02:05:58,285 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9d2efab-966b-4ca0-8f94-c5bf6ed86645
2025-08-11 02:05:58,297 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/442aae72-fc1c-4c65-95f8-5ec8a76e48ca
2025-08-11 02:05:58,305 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:05:58,305 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,315 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9d2efab-966b-4ca0-8f94-c5bf6ed86645
2025-08-11 02:05:58,330 - INFO - Verified VN network id 12 for VN 70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,330 - INFO - Verifications in API Server for VN ctest-vn-82492763 passed
2025-08-11 02:05:58,330 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,342 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9d2efab-966b-4ca0-8f94-c5bf6ed86645
2025-08-11 02:05:58,350 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f9d2efab-966b-4ca0-8f94-c5bf6ed86645
2025-08-11 02:05:58,357 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/442aae72-fc1c-4c65-95f8-5ec8a76e48ca
2025-08-11 02:05:58,373 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-82492763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61284033', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8134231835048234876', 'uuid-lslong': '11874195023963057154'}, 'enable': 'true', 'created': '2025-08-11T02:05:55', 'last-modified': '2025-08-11T02:05:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.529884'}
2025-08-11 02:05:58,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:05:58,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82492763 passed
2025-08-11 02:05:58,383 - DEBUG - ====Verifying policy data for ctest-vn-82492763 in API_Server ======
2025-08-11 02:05:58,383 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 02:05:58,389 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420
2025-08-11 02:05:58,405 - DEBUG - Requesting: http://10.0.0.130:8082/project/935d29b4-1a7c-47c0-8ce0-f78725fde342
2025-08-11 02:05:58,485 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/70e298c1-c8b9-4f7c-a4c9-9d764d076c02
2025-08-11 02:05:58,496 - DEBUG - ==>Verifying data for policy with id: b6a66f78-d642-410f-944d-87ab396c12ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-61284033', 'ctest-policy-allow-all-29018817']
2025-08-11 02:05:58,496 - INFO - VN ctest-vn-82492763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:05:58,496 - DEBUG - Verifying the vn in opserver
2025-08-11 02:05:58,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-82492763 virtual network link through opserver 10.0.0.130
2025-08-11 02:05:58,496 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 02:05:58,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-82492763', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-82492763?flat'}
2025-08-11 02:05:58,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61284033:ctest-vn-82492763 is found in opserver
2025-08-11 02:05:58,521 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:05:58,526 - DEBUG - VRF ids for VN ctest-vn-82492763: {}
2025-08-11 02:05:58,588 - DEBUG - Services list from nova: [