2025-05-09 15:00:26,800 - INFO - Domain Default found not creating
2025-05-09 15:00:26,954 - INFO - Project ctest-TestBasicPolicy-71837175 not found, creating it
2025-05-09 15:00:27,396 - INFO - Created Project:ctest-TestBasicPolicy-71837175, ID : 838326d8-1f65-4b20-a926-a51d97c9369f
2025-05-09 15:00:28,781 - INFO - ================================================================================
2025-05-09 15:00:28,781 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-09 15:00:28,781 - 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-05-09 15:00:29,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-09 15:00:29,046 - INFO - Initial checks done. Running the testcase now
2025-05-09 15:00:29,046 - INFO -
2025-05-09 15:00:29,573 - DEBUG - Response for create_network : {'network': {'id': 'ad33a684-670b-4a0a-bd38-b5126212b433', 'name': 'ctest-vn-57601921', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'project_id': '838326d81f654b20a926a51d97c9369f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-vn-57601921'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 15:00:29,716 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd91320d8-e1d7-4c21-b55c-84ed99994d0c', 'name': '', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'network_id': 'ad33a684-670b-4a0a-bd38-b5126212b433', 'ip_version': 4, 'cidr': '198.63.166.192/26', 'allocation_pools': [{'start': '198.63.166.194', 'end': '198.63.166.254'}], 'gateway_ip': '198.63.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.63.166.194', 'tags': [], 'project_id': '838326d81f654b20a926a51d97c9369f'}}
2025-05-09 15:00:29,734 - INFO - Created VN ctest-vn-57601921
2025-05-09 15:00:29,784 - DEBUG - VN ctest-vn-57601921 UUID is ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:30,139 - DEBUG - Response for create_network : {'network': {'id': 'c4543e6a-e4d8-4ec0-b523-5b8a867725b5', 'name': 'ctest-vn-49327241', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'project_id': '838326d81f654b20a926a51d97c9369f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-vn-49327241'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 15:00:30,353 - DEBUG - Response for create_subnet : {'subnet': {'id': '453ea3a4-86ec-4a0a-971a-f7f485e298a3', 'name': '', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'network_id': 'c4543e6a-e4d8-4ec0-b523-5b8a867725b5', 'ip_version': 4, 'cidr': '99.7.92.0/26', 'allocation_pools': [{'start': '99.7.92.2', 'end': '99.7.92.62'}], 'gateway_ip': '99.7.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.7.92.2', 'tags': [], 'project_id': '838326d81f654b20a926a51d97c9369f'}}
2025-05-09 15:00:30,373 - INFO - Created VN ctest-vn-49327241
2025-05-09 15:00:30,428 - DEBUG - VN ctest-vn-49327241 UUID is c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:30,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921, 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-71837175:ctest-vn-49327241, 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-05-09 15:00:30,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad33a684-670b-4a0a-bd38-b5126212b433', 'name': 'ctest-vn-57601921', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'project_id': '838326d81f654b20a926a51d97c9369f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d91320d8-e1d7-4c21-b55c-84ed99994d0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-vn-57601921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-policy-allow-all-89913060']], 'subnet_ipam': [{'subnet_cidr': '198.63.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 15:00:31,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4543e6a-e4d8-4ec0-b523-5b8a867725b5', 'name': 'ctest-vn-49327241', 'tenant_id': '838326d81f654b20a926a51d97c9369f', 'project_id': '838326d81f654b20a926a51d97c9369f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['453ea3a4-86ec-4a0a-971a-f7f485e298a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-vn-49327241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-policy-allow-all-89913060']], 'subnet_ipam': [{'subnet_cidr': '99.7.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 15:00:31,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 15:00:31,573 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 15:00:31,599 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6a6d7818-203e-4401-875c-a40c0fa8549f
2025-05-09 15:00:31,613 - DEBUG - Requesting: http://10.0.0.254:8082/project/838326d8-1f65-4b20-a926-a51d97c9369f
2025-05-09 15:00:31,694 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/505810d3-41fc-475a-9081-0f2a7136db88
2025-05-09 15:00:31,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/505810d3-41fc-475a-9081-0f2a7136db88
2025-05-09 15:00:31,730 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5beb65b8-b4fb-48eb-84b6-61ebc45e3c99
2025-05-09 15:00:31,736 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 15:00:31,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/505810d3-41fc-475a-9081-0f2a7136db88
2025-05-09 15:00:31,760 - INFO - Verified VN network id 9 for VN ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,760 - INFO - Verifications in API Server for VN ctest-vn-57601921 passed
2025-05-09 15:00:31,760 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,770 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/505810d3-41fc-475a-9081-0f2a7136db88
2025-05-09 15:00:31,776 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/505810d3-41fc-475a-9081-0f2a7136db88
2025-05-09 15:00:31,785 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5beb65b8-b4fb-48eb-84b6-61ebc45e3c99
2025-05-09 15:00:31,797 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71837175', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12480502079968463370', 'uuid-lslong': '13634846962423608371'}, 'enable': 'true', 'created': '2025-05-09T15:00:29', 'last-modified': '2025-05-09T15:00:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976665'}
2025-05-09 15:00:31,804 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 15:00:31,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57601921 passed
2025-05-09 15:00:31,804 - DEBUG - ====Verifying policy data for ctest-vn-57601921 in API_Server ======
2025-05-09 15:00:31,804 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 15:00:31,809 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6a6d7818-203e-4401-875c-a40c0fa8549f
2025-05-09 15:00:31,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/838326d8-1f65-4b20-a926-a51d97c9369f
2025-05-09 15:00:31,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ad33a684-670b-4a0a-bd38-b5126212b433
2025-05-09 15:00:31,899 - DEBUG - ==>Verifying data for policy with id: e1ca851c-f1fb-4eaf-aadf-d24b74441cad, fqn: ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-policy-allow-all-89913060']
2025-05-09 15:00:31,900 - INFO - VN ctest-vn-57601921 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 15:00:31,900 - DEBUG - Verifying the vn in opserver
2025-05-09 15:00:31,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921 virtual network link through opserver 10.0.0.254
2025-05-09 15:00:31,900 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 15:00:32,192 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 15:00:32,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921?flat'}
2025-05-09 15:00:32,242 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-57601921 is found in opserver
2025-05-09 15:00:32,252 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 15:00:32,257 - DEBUG - VRF ids for VN ctest-vn-57601921: {}
2025-05-09 15:00:32,257 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 15:00:32,263 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6a6d7818-203e-4401-875c-a40c0fa8549f
2025-05-09 15:00:32,274 - DEBUG - Requesting: http://10.0.0.254:8082/project/838326d8-1f65-4b20-a926-a51d97c9369f
2025-05-09 15:00:32,345 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,366 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/987c6b4d-5f7e-4e47-b684-c7619d75a448
2025-05-09 15:00:32,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/987c6b4d-5f7e-4e47-b684-c7619d75a448
2025-05-09 15:00:32,379 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/93c370ed-ce76-49e5-814b-c40374f7453c
2025-05-09 15:00:32,385 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 15:00:32,385 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/987c6b4d-5f7e-4e47-b684-c7619d75a448
2025-05-09 15:00:32,410 - INFO - Verified VN network id 10 for VN c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,410 - INFO - Verifications in API Server for VN ctest-vn-49327241 passed
2025-05-09 15:00:32,411 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,423 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/987c6b4d-5f7e-4e47-b684-c7619d75a448
2025-05-09 15:00:32,431 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/987c6b4d-5f7e-4e47-b684-c7619d75a448
2025-05-09 15:00:32,439 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/93c370ed-ce76-49e5-814b-c40374f7453c
2025-05-09 15:00:32,453 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-49327241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71837175', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14147000958304407232', 'uuid-lslong': '13052376795569399221'}, 'enable': 'true', 'created': '2025-05-09T15:00:30', 'last-modified': '2025-05-09T15:00:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392862'}
2025-05-09 15:00:32,460 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 15:00:32,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49327241 passed
2025-05-09 15:00:32,460 - DEBUG - ====Verifying policy data for ctest-vn-49327241 in API_Server ======
2025-05-09 15:00:32,460 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 15:00:32,466 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6a6d7818-203e-4401-875c-a40c0fa8549f
2025-05-09 15:00:32,479 - DEBUG - Requesting: http://10.0.0.254:8082/project/838326d8-1f65-4b20-a926-a51d97c9369f
2025-05-09 15:00:32,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4543e6a-e4d8-4ec0-b523-5b8a867725b5
2025-05-09 15:00:32,559 - DEBUG - ==>Verifying data for policy with id: e1ca851c-f1fb-4eaf-aadf-d24b74441cad, fqn: ['default-domain', 'ctest-TestBasicPolicy-71837175', 'ctest-policy-allow-all-89913060']
2025-05-09 15:00:32,559 - INFO - VN ctest-vn-49327241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 15:00:32,559 - DEBUG - Verifying the vn in opserver
2025-05-09 15:00:32,559 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-49327241 virtual network link through opserver 10.0.0.254
2025-05-09 15:00:32,560 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 15:00:32,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-49327241', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-49327241?flat'}
2025-05-09 15:00:32,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71837175:ctest-vn-49327241 is found in opserver
2025-05-09 15:00:32,581 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 15:00:32,586 - DEBUG - VRF ids for VN ctest-vn-49327241: {}
2025-05-09 15:00:32,636 - DEBUG - Services list from nova: [