2025-09-17 17:43:49,566 - INFO - Domain Default found not creating
2025-09-17 17:43:49,704 - INFO - Project ctest-TestBasicPolicy-00034080 not found, creating it
2025-09-17 17:43:50,168 - INFO - Created Project:ctest-TestBasicPolicy-00034080, ID : bf6ab448-7adc-4da8-8bb2-27ca2ecda6bc
2025-09-17 17:43:51,619 - INFO - ================================================================================
2025-09-17 17:43:51,619 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-17 17:43:51,620 - 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-09-17 17:43:51,881 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-17 17:43:51,881 - INFO - Initial checks done. Running the testcase now
2025-09-17 17:43:51,881 - INFO -
2025-09-17 17:43:52,416 - DEBUG - Response for create_network : {'network': {'id': '3a2b6a7f-04cb-4ca2-8baf-4cb88585900c', 'name': 'ctest-vn-86874211', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-vn-86874211'], 'port_security_enabled': True, 'description': ''}}
2025-09-17 17:43:52,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '93184c5a-d7ad-486a-b5db-336af4dfcb21', 'name': '', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'network_id': '3a2b6a7f-04cb-4ca2-8baf-4cb88585900c', 'ip_version': 4, 'cidr': '135.240.64.64/26', 'allocation_pools': [{'start': '135.240.64.66', 'end': '135.240.64.126'}], 'gateway_ip': '135.240.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.240.64.66', 'tags': [], 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc'}}
2025-09-17 17:43:52,629 - INFO - Created VN ctest-vn-86874211
2025-09-17 17:43:52,679 - DEBUG - VN ctest-vn-86874211 UUID is 3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:52,984 - DEBUG - Response for create_network : {'network': {'id': 'ce739243-b86c-497a-b01a-4219ac632b1d', 'name': 'ctest-vn-55556579', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-vn-55556579'], 'port_security_enabled': True, 'description': ''}}
2025-09-17 17:43:53,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '843478dc-5615-458c-9b44-888a48b69f07', 'name': '', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'network_id': 'ce739243-b86c-497a-b01a-4219ac632b1d', 'ip_version': 4, 'cidr': '69.154.175.128/26', 'allocation_pools': [{'start': '69.154.175.130', 'end': '69.154.175.190'}], 'gateway_ip': '69.154.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.154.175.130', 'tags': [], 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc'}}
2025-09-17 17:43:53,180 - INFO - Created VN ctest-vn-55556579
2025-09-17 17:43:53,232 - DEBUG - VN ctest-vn-55556579 UUID is ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:53,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211, 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-00034080:ctest-vn-55556579, 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-09-17 17:43:53,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a2b6a7f-04cb-4ca2-8baf-4cb88585900c', 'name': 'ctest-vn-86874211', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93184c5a-d7ad-486a-b5db-336af4dfcb21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-vn-86874211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-policy-allow-all-83653226']], 'subnet_ipam': [{'subnet_cidr': '135.240.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-17 17:43:53,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce739243-b86c-497a-b01a-4219ac632b1d', 'name': 'ctest-vn-55556579', 'tenant_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'project_id': 'bf6ab4487adc4da88bb227ca2ecda6bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['843478dc-5615-458c-9b44-888a48b69f07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-vn-55556579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-policy-allow-all-83653226']], 'subnet_ipam': [{'subnet_cidr': '69.154.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-17 17:43:54,120 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 17:43:54,461 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 17:43:54,492 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a
2025-09-17 17:43:54,505 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf6ab448-7adc-4da8-8bb2-27ca2ecda6bc
2025-09-17 17:43:54,576 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,588 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,598 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f7ddd864-60cf-43cf-a828-5fb9791fe71c
2025-09-17 17:43:54,606 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f7ddd864-60cf-43cf-a828-5fb9791fe71c
2025-09-17 17:43:54,613 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7815674-b894-4206-999f-9dc3a9b33cee
2025-09-17 17:43:54,620 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-17 17:43:54,620 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,629 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f7ddd864-60cf-43cf-a828-5fb9791fe71c
2025-09-17 17:43:54,646 - INFO - Verified VN network id 11 for VN 3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,646 - INFO - Verifications in API Server for VN ctest-vn-86874211 passed
2025-09-17 17:43:54,646 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,656 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f7ddd864-60cf-43cf-a828-5fb9791fe71c
2025-09-17 17:43:54,663 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f7ddd864-60cf-43cf-a828-5fb9791fe71c
2025-09-17 17:43:54,669 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7815674-b894-4206-999f-9dc3a9b33cee
2025-09-17 17:43:54,681 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00034080', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4191560971972201634', 'uuid-lslong': '10065348047594164236'}, 'enable': 'true', 'created': '2025-09-17T17:43:52', 'last-modified': '2025-09-17T17:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030363'}
2025-09-17 17:43:54,687 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-17 17:43:54,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86874211 passed
2025-09-17 17:43:54,687 - DEBUG - ====Verifying policy data for ctest-vn-86874211 in API_Server ======
2025-09-17 17:43:54,687 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 17:43:54,693 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a
2025-09-17 17:43:54,704 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf6ab448-7adc-4da8-8bb2-27ca2ecda6bc
2025-09-17 17:43:54,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a2b6a7f-04cb-4ca2-8baf-4cb88585900c
2025-09-17 17:43:54,782 - DEBUG - ==>Verifying data for policy with id: 92234336-7b26-4e9e-9a10-347554e23f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-policy-allow-all-83653226']
2025-09-17 17:43:54,782 - INFO - VN ctest-vn-86874211 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-17 17:43:54,782 - DEBUG - Verifying the vn in opserver
2025-09-17 17:43:54,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211 virtual network link through opserver 10.0.0.254
2025-09-17 17:43:54,782 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 17:43:55,087 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 17:43:55,143 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211?flat'}
2025-09-17 17:43:55,143 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-86874211 is found in opserver
2025-09-17 17:43:55,154 - DEBUG - Do not have enough data to verify VN in agent
2025-09-17 17:43:55,159 - DEBUG - VRF ids for VN ctest-vn-86874211: {}
2025-09-17 17:43:55,159 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 17:43:55,165 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a
2025-09-17 17:43:55,179 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf6ab448-7adc-4da8-8bb2-27ca2ecda6bc
2025-09-17 17:43:55,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,263 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,273 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/217721ca-af75-4565-b3c1-d4afc8104999
2025-09-17 17:43:55,281 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/217721ca-af75-4565-b3c1-d4afc8104999
2025-09-17 17:43:55,287 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4e787a89-fd69-45ee-8dd8-e54099496153
2025-09-17 17:43:55,293 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-17 17:43:55,293 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,300 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/217721ca-af75-4565-b3c1-d4afc8104999
2025-09-17 17:43:55,312 - INFO - Verified VN network id 12 for VN ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,313 - INFO - Verifications in API Server for VN ctest-vn-55556579 passed
2025-09-17 17:43:55,313 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,321 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/217721ca-af75-4565-b3c1-d4afc8104999
2025-09-17 17:43:55,328 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/217721ca-af75-4565-b3c1-d4afc8104999
2025-09-17 17:43:55,335 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4e787a89-fd69-45ee-8dd8-e54099496153
2025-09-17 17:43:55,346 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-55556579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00034080', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14876394813689448826', 'uuid-lslong': '12689527578103589661'}, 'enable': 'true', 'created': '2025-09-17T17:43:52', 'last-modified': '2025-09-17T17:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457247'}
2025-09-17 17:43:55,354 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-17 17:43:55,354 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55556579 passed
2025-09-17 17:43:55,354 - DEBUG - ====Verifying policy data for ctest-vn-55556579 in API_Server ======
2025-09-17 17:43:55,354 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 17:43:55,363 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9ee9a899-f734-4334-81ba-54f10e0f2a6a
2025-09-17 17:43:55,375 - DEBUG - Requesting: http://10.0.0.254:8082/project/bf6ab448-7adc-4da8-8bb2-27ca2ecda6bc
2025-09-17 17:43:55,451 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce739243-b86c-497a-b01a-4219ac632b1d
2025-09-17 17:43:55,460 - DEBUG - ==>Verifying data for policy with id: 92234336-7b26-4e9e-9a10-347554e23f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00034080', 'ctest-policy-allow-all-83653226']
2025-09-17 17:43:55,460 - INFO - VN ctest-vn-55556579 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-17 17:43:55,460 - DEBUG - Verifying the vn in opserver
2025-09-17 17:43:55,460 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-55556579 virtual network link through opserver 10.0.0.254
2025-09-17 17:43:55,460 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 17:43:55,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-55556579', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-55556579?flat'}
2025-09-17 17:43:55,470 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00034080:ctest-vn-55556579 is found in opserver
2025-09-17 17:43:55,479 - DEBUG - Do not have enough data to verify VN in agent
2025-09-17 17:43:55,484 - DEBUG - VRF ids for VN ctest-vn-55556579: {}
2025-09-17 17:43:55,546 - DEBUG - Services list from nova: [