2026-01-01 02:27:30,236 - INFO - Domain Default found not creating
2026-01-01 02:27:30,399 - INFO - Project ctest-TestBasicPolicy-04144040 not found, creating it
2026-01-01 02:27:30,852 - INFO - Created Project:ctest-TestBasicPolicy-04144040, ID : e3aa4350-14b4-467e-b1a5-a05595d31b78
2026-01-01 02:27:32,472 - INFO - ================================================================================
2026-01-01 02:27:32,472 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-01 02:27:32,472 - 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-01 02:27:32,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.241': '0'}} with
2026-01-01 02:27:32,728 - INFO - Initial checks done. Running the testcase now
2026-01-01 02:27:32,728 - INFO -
2026-01-01 02:27:33,333 - DEBUG - Response for create_network : {'network': {'id': '5b40409c-0ffd-44a5-b52d-2de2d62d2fcf', 'name': 'ctest-vn-25545480', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'project_id': 'e3aa435014b4467eb1a5a05595d31b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-vn-25545480'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 02:27:33,487 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac3b7ce0-6a54-4f03-b28f-8c0091ec8698', 'name': '', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'network_id': '5b40409c-0ffd-44a5-b52d-2de2d62d2fcf', 'ip_version': 4, 'cidr': '151.146.233.64/26', 'allocation_pools': [{'start': '151.146.233.66', 'end': '151.146.233.126'}], 'gateway_ip': '151.146.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.146.233.66', 'tags': [], 'project_id': 'e3aa435014b4467eb1a5a05595d31b78'}}
2026-01-01 02:27:33,505 - INFO - Created VN ctest-vn-25545480
2026-01-01 02:27:33,558 - DEBUG - VN ctest-vn-25545480 UUID is 5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:33,845 - DEBUG - Response for create_network : {'network': {'id': 'a526290b-bc2f-415f-b06a-470460f20c4b', 'name': 'ctest-vn-61196635', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'project_id': 'e3aa435014b4467eb1a5a05595d31b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-vn-61196635'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 02:27:34,048 - DEBUG - Response for create_subnet : {'subnet': {'id': '92d2ffd9-7bd9-4380-81fc-097f0cedc076', 'name': '', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'network_id': 'a526290b-bc2f-415f-b06a-470460f20c4b', 'ip_version': 4, 'cidr': '68.138.182.64/26', 'allocation_pools': [{'start': '68.138.182.66', 'end': '68.138.182.126'}], 'gateway_ip': '68.138.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.138.182.66', 'tags': [], 'project_id': 'e3aa435014b4467eb1a5a05595d31b78'}}
2026-01-01 02:27:34,065 - INFO - Created VN ctest-vn-61196635
2026-01-01 02:27:34,118 - DEBUG - VN ctest-vn-61196635 UUID is a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:34,230 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480, 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-04144040:ctest-vn-61196635, 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-01 02:27:34,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b40409c-0ffd-44a5-b52d-2de2d62d2fcf', 'name': 'ctest-vn-25545480', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'project_id': 'e3aa435014b4467eb1a5a05595d31b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac3b7ce0-6a54-4f03-b28f-8c0091ec8698'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-vn-25545480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-policy-allow-all-19629642']], 'subnet_ipam': [{'subnet_cidr': '151.146.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 02:27:34,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a526290b-bc2f-415f-b06a-470460f20c4b', 'name': 'ctest-vn-61196635', 'tenant_id': 'e3aa435014b4467eb1a5a05595d31b78', 'project_id': 'e3aa435014b4467eb1a5a05595d31b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92d2ffd9-7bd9-4380-81fc-097f0cedc076'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-vn-61196635'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-policy-allow-all-19629642']], 'subnet_ipam': [{'subnet_cidr': '68.138.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 02:27:34,938 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-01-01 02:27:35,291 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-01-01 02:27:35,324 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ae81da7-fb8d-46c2-8663-99563f0ed736
2026-01-01 02:27:35,336 - DEBUG - Requesting: http://10.0.0.19:8082/project/e3aa4350-14b4-467e-b1a5-a05595d31b78
2026-01-01 02:27:35,405 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,414 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,422 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f821553d-c769-4d35-85f8-d4854091c85f
2026-01-01 02:27:35,428 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f821553d-c769-4d35-85f8-d4854091c85f
2026-01-01 02:27:35,434 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/76794f39-c06b-4d57-9ff9-de462f0a64b9
2026-01-01 02:27:35,439 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 02:27:35,440 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,448 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f821553d-c769-4d35-85f8-d4854091c85f
2026-01-01 02:27:35,460 - INFO - Verified VN network id 11 for VN 5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,460 - INFO - Verifications in API Server for VN ctest-vn-25545480 passed
2026-01-01 02:27:35,460 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,467 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f821553d-c769-4d35-85f8-d4854091c85f
2026-01-01 02:27:35,473 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f821553d-c769-4d35-85f8-d4854091c85f
2026-01-01 02:27:35,479 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/76794f39-c06b-4d57-9ff9-de462f0a64b9
2026-01-01 02:27:35,489 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04144040', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6575326494988256421', 'uuid-lslong': '13055141347096080335'}, 'enable': 'true', 'created': '2026-01-01T02:27:33', 'last-modified': '2026-01-01T02:27:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982896'}
2026-01-01 02:27:35,495 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 02:27:35,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25545480 passed
2026-01-01 02:27:35,495 - DEBUG - ====Verifying policy data for ctest-vn-25545480 in API_Server ======
2026-01-01 02:27:35,495 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-01-01 02:27:35,500 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ae81da7-fb8d-46c2-8663-99563f0ed736
2026-01-01 02:27:35,511 - DEBUG - Requesting: http://10.0.0.19:8082/project/e3aa4350-14b4-467e-b1a5-a05595d31b78
2026-01-01 02:27:35,577 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5b40409c-0ffd-44a5-b52d-2de2d62d2fcf
2026-01-01 02:27:35,586 - DEBUG - ==>Verifying data for policy with id: 5b19d198-6b55-435a-b9f8-99bc2b8ac6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-policy-allow-all-19629642']
2026-01-01 02:27:35,586 - INFO - VN ctest-vn-25545480 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 02:27:35,586 - DEBUG - Verifying the vn in opserver
2026-01-01 02:27:35,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480 virtual network link through opserver 10.0.0.19
2026-01-01 02:27:35,586 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-01-01 02:27:35,919 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-01-01 02:27:35,978 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480?flat'}
2026-01-01 02:27:35,978 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-25545480 is found in opserver
2026-01-01 02:27:35,987 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 02:27:35,991 - DEBUG - VRF ids for VN ctest-vn-25545480: {}
2026-01-01 02:27:35,991 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-01-01 02:27:35,998 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ae81da7-fb8d-46c2-8663-99563f0ed736
2026-01-01 02:27:36,009 - DEBUG - Requesting: http://10.0.0.19:8082/project/e3aa4350-14b4-467e-b1a5-a05595d31b78
2026-01-01 02:27:36,077 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,090 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,100 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8c72b043-7715-4ad7-b1c7-d47427bec675
2026-01-01 02:27:36,108 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8c72b043-7715-4ad7-b1c7-d47427bec675
2026-01-01 02:27:36,115 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1db3abc4-1ea7-41a4-ad0e-a55561f82c2d
2026-01-01 02:27:36,121 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 02:27:36,122 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,130 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8c72b043-7715-4ad7-b1c7-d47427bec675
2026-01-01 02:27:36,142 - INFO - Verified VN network id 12 for VN a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,142 - INFO - Verifications in API Server for VN ctest-vn-61196635 passed
2026-01-01 02:27:36,142 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,150 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8c72b043-7715-4ad7-b1c7-d47427bec675
2026-01-01 02:27:36,156 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8c72b043-7715-4ad7-b1c7-d47427bec675
2026-01-01 02:27:36,163 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1db3abc4-1ea7-41a4-ad0e-a55561f82c2d
2026-01-01 02:27:36,173 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-61196635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04144040', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11900244195751706975', 'uuid-lslong': '12712050982338563147'}, 'enable': 'true', 'created': '2026-01-01T02:27:33', 'last-modified': '2026-01-01T02:27:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430231'}
2026-01-01 02:27:36,179 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 02:27:36,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61196635 passed
2026-01-01 02:27:36,179 - DEBUG - ====Verifying policy data for ctest-vn-61196635 in API_Server ======
2026-01-01 02:27:36,179 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-01-01 02:27:36,184 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ae81da7-fb8d-46c2-8663-99563f0ed736
2026-01-01 02:27:36,194 - DEBUG - Requesting: http://10.0.0.19:8082/project/e3aa4350-14b4-467e-b1a5-a05595d31b78
2026-01-01 02:27:36,261 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a526290b-bc2f-415f-b06a-470460f20c4b
2026-01-01 02:27:36,270 - DEBUG - ==>Verifying data for policy with id: 5b19d198-6b55-435a-b9f8-99bc2b8ac6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04144040', 'ctest-policy-allow-all-19629642']
2026-01-01 02:27:36,270 - INFO - VN ctest-vn-61196635 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 02:27:36,270 - DEBUG - Verifying the vn in opserver
2026-01-01 02:27:36,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-61196635 virtual network link through opserver 10.0.0.19
2026-01-01 02:27:36,270 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-01-01 02:27:36,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-61196635', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-61196635?flat'}
2026-01-01 02:27:36,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04144040:ctest-vn-61196635 is found in opserver
2026-01-01 02:27:36,288 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 02:27:36,292 - DEBUG - VRF ids for VN ctest-vn-61196635: {}
2026-01-01 02:27:36,349 - DEBUG - Services list from nova: [