2025-06-18 02:45:02,825 - INFO - Domain Default found not creating
2025-06-18 02:45:02,986 - INFO - Project ctest-TestBasicPolicy-13314470 not found, creating it
2025-06-18 02:45:03,478 - INFO - Created Project:ctest-TestBasicPolicy-13314470, ID : e9938008-2528-4b23-8122-30e6ddf631d0
2025-06-18 02:45:05,059 - INFO - ================================================================================
2025-06-18 02:45:05,060 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 02:45:05,060 - 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-06-18 02:45:05,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-06-18 02:45:05,326 - INFO - Initial checks done. Running the testcase now
2025-06-18 02:45:05,327 - INFO -
2025-06-18 02:45:05,937 - DEBUG - Response for create_network : {'network': {'id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'name': 'ctest-vn-39152720', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-39152720'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 02:45:06,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '4276853f-13bb-4f1e-8eca-9a4e937d4776', 'name': '', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'network_id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'ip_version': 4, 'cidr': '18.189.87.64/26', 'allocation_pools': [{'start': '18.189.87.66', 'end': '18.189.87.126'}], 'gateway_ip': '18.189.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.189.87.66', 'tags': [], 'project_id': 'e993800825284b23812230e6ddf631d0'}}
2025-06-18 02:45:06,159 - INFO - Created VN ctest-vn-39152720
2025-06-18 02:45:06,216 - DEBUG - VN ctest-vn-39152720 UUID is b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:06,528 - DEBUG - Response for create_network : {'network': {'id': '012653a0-3b16-4a58-a675-69900d3d0084', 'name': 'ctest-vn-60551793', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-60551793'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 02:45:06,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '273a4849-c7cd-4598-a977-8bba5be39dcd', 'name': '', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'network_id': '012653a0-3b16-4a58-a675-69900d3d0084', 'ip_version': 4, 'cidr': '191.115.115.64/26', 'allocation_pools': [{'start': '191.115.115.66', 'end': '191.115.115.126'}], 'gateway_ip': '191.115.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.115.115.66', 'tags': [], 'project_id': 'e993800825284b23812230e6ddf631d0'}}
2025-06-18 02:45:06,761 - INFO - Created VN ctest-vn-60551793
2025-06-18 02:45:06,815 - DEBUG - VN ctest-vn-60551793 UUID is 012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:06,934 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720, 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-13314470:ctest-vn-60551793, 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-06-18 02:45:07,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'name': 'ctest-vn-39152720', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4276853f-13bb-4f1e-8eca-9a4e937d4776'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-39152720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']], 'subnet_ipam': [{'subnet_cidr': '18.189.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 02:45:07,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '012653a0-3b16-4a58-a675-69900d3d0084', 'name': 'ctest-vn-60551793', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['273a4849-c7cd-4598-a977-8bba5be39dcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-60551793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']], 'subnet_ipam': [{'subnet_cidr': '191.115.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 02:45:07,676 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-18 02:45:08,010 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-18 02:45:08,042 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe
2025-06-18 02:45:08,057 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0
2025-06-18 02:45:08,136 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,149 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,161 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4
2025-06-18 02:45:08,170 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4
2025-06-18 02:45:08,179 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a8b6b928-264a-40b2-a6f5-a50df72ae9c8
2025-06-18 02:45:08,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 02:45:08,186 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,198 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4
2025-06-18 02:45:08,216 - INFO - Verified VN network id 8 for VN b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,216 - INFO - Verifications in API Server for VN ctest-vn-39152720 passed
2025-06-18 02:45:08,216 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,228 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4
2025-06-18 02:45:08,236 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4
2025-06-18 02:45:08,244 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a8b6b928-264a-40b2-a6f5-a50df72ae9c8
2025-06-18 02:45:08,258 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13314470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12877381318864422675', 'uuid-lslong': '13709136724287619311'}, 'enable': 'true', 'created': '2025-06-18T02:45:05', 'last-modified': '2025-06-18T02:45:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035462'}
2025-06-18 02:45:08,265 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 02:45:08,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39152720 passed
2025-06-18 02:45:08,265 - DEBUG - ====Verifying policy data for ctest-vn-39152720 in API_Server ======
2025-06-18 02:45:08,265 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-18 02:45:08,272 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe
2025-06-18 02:45:08,285 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0
2025-06-18 02:45:08,358 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef
2025-06-18 02:45:08,369 - DEBUG - ==>Verifying data for policy with id: c8b13618-bb05-423b-b85e-c49e37a90e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']
2025-06-18 02:45:08,369 - INFO - VN ctest-vn-39152720 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 02:45:08,369 - DEBUG - Verifying the vn in opserver
2025-06-18 02:45:08,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720 virtual network link through opserver 10.0.0.57
2025-06-18 02:45:08,369 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-18 02:45:08,703 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-18 02:45:08,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720?flat'}
2025-06-18 02:45:08,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720 is found in opserver
2025-06-18 02:45:08,775 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 02:45:08,781 - DEBUG - VRF ids for VN ctest-vn-39152720: {}
2025-06-18 02:45:08,781 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-18 02:45:08,788 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe
2025-06-18 02:45:08,801 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0
2025-06-18 02:45:08,880 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:08,893 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:08,904 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc
2025-06-18 02:45:08,916 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc
2025-06-18 02:45:08,925 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/10addb01-6717-4dae-97b1-358c9a4d1750
2025-06-18 02:45:08,933 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 02:45:08,933 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:08,944 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc
2025-06-18 02:45:08,960 - INFO - Verified VN network id 9 for VN 012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:08,961 - INFO - Verifications in API Server for VN ctest-vn-60551793 passed
2025-06-18 02:45:08,961 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:08,972 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc
2025-06-18 02:45:08,980 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc
2025-06-18 02:45:08,988 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/10addb01-6717-4dae-97b1-358c9a4d1750
2025-06-18 02:45:09,003 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13314470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '82845590804122200', 'uuid-lslong': '11994609249989492868'}, 'enable': 'true', 'created': '2025-06-18T02:45:06', 'last-modified': '2025-06-18T02:45:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531129'}
2025-06-18 02:45:09,010 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 02:45:09,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60551793 passed
2025-06-18 02:45:09,010 - DEBUG - ====Verifying policy data for ctest-vn-60551793 in API_Server ======
2025-06-18 02:45:09,010 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-18 02:45:09,019 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe
2025-06-18 02:45:09,037 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0
2025-06-18 02:45:09,113 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084
2025-06-18 02:45:09,125 - DEBUG - ==>Verifying data for policy with id: c8b13618-bb05-423b-b85e-c49e37a90e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']
2025-06-18 02:45:09,125 - INFO - VN ctest-vn-60551793 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 02:45:09,125 - DEBUG - Verifying the vn in opserver
2025-06-18 02:45:09,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793 virtual network link through opserver 10.0.0.57
2025-06-18 02:45:09,125 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-18 02:45:09,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793?flat'}
2025-06-18 02:45:09,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793 is found in opserver
2025-06-18 02:45:09,151 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 02:45:09,158 - DEBUG - VRF ids for VN ctest-vn-60551793: {}
2025-06-18 02:45:09,218 - DEBUG - Services list from nova: [