2025-08-26 16:22:50,515 - INFO - Domain Default found not creating
2025-08-26 16:22:50,644 - INFO - Project ctest-TestBasicPolicy-04097946 not found, creating it
2025-08-26 16:22:51,088 - INFO - Created Project:ctest-TestBasicPolicy-04097946, ID : 647024a9-f153-4dc5-9f9e-46ebe5251683
2025-08-26 16:22:52,557 - INFO - ================================================================================
2025-08-26 16:22:52,558 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 16:22:52,558 - 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-26 16:22:52,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-26 16:22:52,819 - INFO - Initial checks done. Running the testcase now
2025-08-26 16:22:52,819 - INFO -
2025-08-26 16:22:53,379 - DEBUG - Response for create_network : {'network': {'id': '54bf8b0d-9e10-45d8-b572-c337f454ee0b', 'name': 'ctest-vn-67267125', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'project_id': '647024a9f1534dc59f9e46ebe5251683', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-vn-67267125'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 16:22:53,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5e6c177-5417-4d4a-b463-59df373778f9', 'name': '', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'network_id': '54bf8b0d-9e10-45d8-b572-c337f454ee0b', 'ip_version': 4, 'cidr': '200.134.18.0/26', 'allocation_pools': [{'start': '200.134.18.2', 'end': '200.134.18.62'}], 'gateway_ip': '200.134.18.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.134.18.2', 'tags': [], 'project_id': '647024a9f1534dc59f9e46ebe5251683'}}
2025-08-26 16:22:53,601 - INFO - Created VN ctest-vn-67267125
2025-08-26 16:22:53,650 - DEBUG - VN ctest-vn-67267125 UUID is 54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:53,944 - DEBUG - Response for create_network : {'network': {'id': 'fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25', 'name': 'ctest-vn-39393079', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'project_id': '647024a9f1534dc59f9e46ebe5251683', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-vn-39393079'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 16:22:54,160 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c43b68ad-13e0-4e64-81c4-5e16afa59cb4', 'name': '', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'network_id': 'fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25', 'ip_version': 4, 'cidr': '88.123.66.192/26', 'allocation_pools': [{'start': '88.123.66.194', 'end': '88.123.66.254'}], 'gateway_ip': '88.123.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.123.66.194', 'tags': [], 'project_id': '647024a9f1534dc59f9e46ebe5251683'}}
2025-08-26 16:22:54,175 - INFO - Created VN ctest-vn-39393079
2025-08-26 16:22:54,226 - DEBUG - VN ctest-vn-39393079 UUID is fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:54,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125, 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-04097946:ctest-vn-39393079, 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-26 16:22:54,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54bf8b0d-9e10-45d8-b572-c337f454ee0b', 'name': 'ctest-vn-67267125', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'project_id': '647024a9f1534dc59f9e46ebe5251683', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5e6c177-5417-4d4a-b463-59df373778f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-vn-67267125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-policy-allow-all-50828554']], 'subnet_ipam': [{'subnet_cidr': '200.134.18.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 16:22:54,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25', 'name': 'ctest-vn-39393079', 'tenant_id': '647024a9f1534dc59f9e46ebe5251683', 'project_id': '647024a9f1534dc59f9e46ebe5251683', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c43b68ad-13e0-4e64-81c4-5e16afa59cb4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-vn-39393079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-policy-allow-all-50828554']], 'subnet_ipam': [{'subnet_cidr': '88.123.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 16:22:55,058 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 16:22:55,391 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 16:22:55,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196
2025-08-26 16:22:55,427 - DEBUG - Requesting: http://10.0.0.254:8082/project/647024a9-f153-4dc5-9f9e-46ebe5251683
2025-08-26 16:22:55,499 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,510 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,519 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bdbd342d-1f9c-4159-8275-345ccee9dd49
2025-08-26 16:22:55,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bdbd342d-1f9c-4159-8275-345ccee9dd49
2025-08-26 16:22:55,531 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c884acd9-9f38-4fc0-97b4-35e6d04f3f2f
2025-08-26 16:22:55,536 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 16:22:55,536 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,544 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bdbd342d-1f9c-4159-8275-345ccee9dd49
2025-08-26 16:22:55,557 - INFO - Verified VN network id 11 for VN 54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,557 - INFO - Verifications in API Server for VN ctest-vn-67267125 passed
2025-08-26 16:22:55,557 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,565 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bdbd342d-1f9c-4159-8275-345ccee9dd49
2025-08-26 16:22:55,570 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bdbd342d-1f9c-4159-8275-345ccee9dd49
2025-08-26 16:22:55,576 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c884acd9-9f38-4fc0-97b4-35e6d04f3f2f
2025-08-26 16:22:55,588 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04097946', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6106752510340384216', 'uuid-lslong': '13074727313299795467'}, 'enable': 'true', 'created': '2025-08-26T16:22:53', 'last-modified': '2025-08-26T16:22:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944027'}
2025-08-26 16:22:55,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 16:22:55,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67267125 passed
2025-08-26 16:22:55,594 - DEBUG - ====Verifying policy data for ctest-vn-67267125 in API_Server ======
2025-08-26 16:22:55,594 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 16:22:55,599 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196
2025-08-26 16:22:55,609 - DEBUG - Requesting: http://10.0.0.254:8082/project/647024a9-f153-4dc5-9f9e-46ebe5251683
2025-08-26 16:22:55,674 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54bf8b0d-9e10-45d8-b572-c337f454ee0b
2025-08-26 16:22:55,683 - DEBUG - ==>Verifying data for policy with id: 354978d5-9158-4631-b6a0-2dc52becde24, fqn: ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-policy-allow-all-50828554']
2025-08-26 16:22:55,683 - INFO - VN ctest-vn-67267125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 16:22:55,683 - DEBUG - Verifying the vn in opserver
2025-08-26 16:22:55,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125 virtual network link through opserver 10.0.0.254
2025-08-26 16:22:55,684 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 16:22:56,023 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 16:22:56,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125?flat'}
2025-08-26 16:22:56,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-67267125 is found in opserver
2025-08-26 16:22:56,091 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 16:22:56,095 - DEBUG - VRF ids for VN ctest-vn-67267125: {}
2025-08-26 16:22:56,095 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 16:22:56,099 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196
2025-08-26 16:22:56,109 - DEBUG - Requesting: http://10.0.0.254:8082/project/647024a9-f153-4dc5-9f9e-46ebe5251683
2025-08-26 16:22:56,174 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,185 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,193 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ef7f5483-b9ed-4ebc-916a-544287af8842
2025-08-26 16:22:56,199 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ef7f5483-b9ed-4ebc-916a-544287af8842
2025-08-26 16:22:56,204 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c019b706-cc59-4dbe-9136-2332e3ef90ad
2025-08-26 16:22:56,209 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 16:22:56,209 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,217 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ef7f5483-b9ed-4ebc-916a-544287af8842
2025-08-26 16:22:56,229 - INFO - Verified VN network id 12 for VN fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,229 - INFO - Verifications in API Server for VN ctest-vn-39393079 passed
2025-08-26 16:22:56,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,238 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ef7f5483-b9ed-4ebc-916a-544287af8842
2025-08-26 16:22:56,244 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ef7f5483-b9ed-4ebc-916a-544287af8842
2025-08-26 16:22:56,250 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c019b706-cc59-4dbe-9136-2332e3ef90ad
2025-08-26 16:22:56,261 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-39393079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04097946', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18093844427670507292', 'uuid-lslong': '10359252088106221349'}, 'enable': 'true', 'created': '2025-08-26T16:22:53', 'last-modified': '2025-08-26T16:22:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399938'}
2025-08-26 16:22:56,267 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 16:22:56,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39393079 passed
2025-08-26 16:22:56,268 - DEBUG - ====Verifying policy data for ctest-vn-39393079 in API_Server ======
2025-08-26 16:22:56,268 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-26 16:22:56,275 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2647b543-b1d6-4f48-af68-2ea8b452b196
2025-08-26 16:22:56,284 - DEBUG - Requesting: http://10.0.0.254:8082/project/647024a9-f153-4dc5-9f9e-46ebe5251683
2025-08-26 16:22:56,353 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb1a3fa4-447b-4f1c-8fc3-74e3724b7f25
2025-08-26 16:22:56,361 - DEBUG - ==>Verifying data for policy with id: 354978d5-9158-4631-b6a0-2dc52becde24, fqn: ['default-domain', 'ctest-TestBasicPolicy-04097946', 'ctest-policy-allow-all-50828554']
2025-08-26 16:22:56,361 - INFO - VN ctest-vn-39393079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 16:22:56,361 - DEBUG - Verifying the vn in opserver
2025-08-26 16:22:56,361 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-39393079 virtual network link through opserver 10.0.0.254
2025-08-26 16:22:56,361 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-26 16:22:56,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-39393079', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-39393079?flat'}
2025-08-26 16:22:56,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04097946:ctest-vn-39393079 is found in opserver
2025-08-26 16:22:56,378 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 16:22:56,382 - DEBUG - VRF ids for VN ctest-vn-39393079: {}
2025-08-26 16:22:56,445 - DEBUG - Services list from nova: [