2025-06-02 03:59:53,874 - INFO - Domain Default found not creating
2025-06-02 03:59:54,060 - INFO - Project ctest-TestBasicPolicy-89526956 not found, creating it
2025-06-02 03:59:54,542 - INFO - Created Project:ctest-TestBasicPolicy-89526956, ID : 393f4385-4d14-48cc-b267-d113f3d23b8b
2025-06-02 03:59:56,093 - INFO - ================================================================================
2025-06-02 03:59:56,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 03:59:56,093 - 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-02 03:59:56,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-02 03:59:56,352 - INFO - Initial checks done. Running the testcase now
2025-06-02 03:59:56,352 - INFO -
2025-06-02 03:59:56,925 - DEBUG - Response for create_network : {'network': {'id': 'ce94e049-3f3d-4871-9545-440e52f309c0', 'name': 'ctest-vn-06797369', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'project_id': '393f43854d1448ccb267d113f3d23b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-vn-06797369'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 03:59:57,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '84be23da-a9a4-4e15-8a23-127ec703dac0', 'name': '', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'network_id': 'ce94e049-3f3d-4871-9545-440e52f309c0', 'ip_version': 4, 'cidr': '187.178.45.64/26', 'allocation_pools': [{'start': '187.178.45.66', 'end': '187.178.45.126'}], 'gateway_ip': '187.178.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.178.45.66', 'tags': [], 'project_id': '393f43854d1448ccb267d113f3d23b8b'}}
2025-06-02 03:59:57,173 - INFO - Created VN ctest-vn-06797369
2025-06-02 03:59:57,226 - DEBUG - VN ctest-vn-06797369 UUID is ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:57,526 - DEBUG - Response for create_network : {'network': {'id': 'abda496b-c035-4ba4-bf2a-dfc7461da659', 'name': 'ctest-vn-49809225', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'project_id': '393f43854d1448ccb267d113f3d23b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-vn-49809225'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 03:59:57,680 - DEBUG - Response for create_subnet : {'subnet': {'id': '8478ac01-e231-46db-93de-0ae62c0c4bb2', 'name': '', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'network_id': 'abda496b-c035-4ba4-bf2a-dfc7461da659', 'ip_version': 4, 'cidr': '180.181.121.192/26', 'allocation_pools': [{'start': '180.181.121.194', 'end': '180.181.121.254'}], 'gateway_ip': '180.181.121.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.181.121.194', 'tags': [], 'project_id': '393f43854d1448ccb267d113f3d23b8b'}}
2025-06-02 03:59:57,702 - INFO - Created VN ctest-vn-49809225
2025-06-02 03:59:57,755 - DEBUG - VN ctest-vn-49809225 UUID is abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:57,874 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369, 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-89526956:ctest-vn-49809225, 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-02 03:59:58,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce94e049-3f3d-4871-9545-440e52f309c0', 'name': 'ctest-vn-06797369', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'project_id': '393f43854d1448ccb267d113f3d23b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84be23da-a9a4-4e15-8a23-127ec703dac0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-vn-06797369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-policy-allow-all-00906983']], 'subnet_ipam': [{'subnet_cidr': '187.178.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 03:59:58,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abda496b-c035-4ba4-bf2a-dfc7461da659', 'name': 'ctest-vn-49809225', 'tenant_id': '393f43854d1448ccb267d113f3d23b8b', 'project_id': '393f43854d1448ccb267d113f3d23b8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8478ac01-e231-46db-93de-0ae62c0c4bb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-vn-49809225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-policy-allow-all-00906983']], 'subnet_ipam': [{'subnet_cidr': '180.181.121.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 03:59:58,654 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-02 03:59:58,977 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-02 03:59:59,010 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37a09523-bcce-4489-a0c5-033806edb129
2025-06-02 03:59:59,026 - DEBUG - Requesting: http://10.0.0.38:8082/project/393f4385-4d14-48cc-b267-d113f3d23b8b
2025-06-02 03:59:59,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/897ce2b0-f58a-44b1-b53d-fbf0b968808a
2025-06-02 03:59:59,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/897ce2b0-f58a-44b1-b53d-fbf0b968808a
2025-06-02 03:59:59,156 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fa60e86c-e219-44cc-98a1-4e4979b666f5
2025-06-02 03:59:59,165 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 03:59:59,165 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/897ce2b0-f58a-44b1-b53d-fbf0b968808a
2025-06-02 03:59:59,201 - INFO - Verified VN network id 8 for VN ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,201 - INFO - Verifications in API Server for VN ctest-vn-06797369 passed
2025-06-02 03:59:59,201 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,216 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/897ce2b0-f58a-44b1-b53d-fbf0b968808a
2025-06-02 03:59:59,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/897ce2b0-f58a-44b1-b53d-fbf0b968808a
2025-06-02 03:59:59,234 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fa60e86c-e219-44cc-98a1-4e4979b666f5
2025-06-02 03:59:59,249 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89526956', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14885769273564547185', 'uuid-lslong': '10756078113356188096'}, 'enable': 'true', 'created': '2025-06-02T03:59:56', 'last-modified': '2025-06-02T03:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.084736'}
2025-06-02 03:59:59,256 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 03:59:59,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06797369 passed
2025-06-02 03:59:59,256 - DEBUG - ====Verifying policy data for ctest-vn-06797369 in API_Server ======
2025-06-02 03:59:59,256 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-02 03:59:59,263 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37a09523-bcce-4489-a0c5-033806edb129
2025-06-02 03:59:59,277 - DEBUG - Requesting: http://10.0.0.38:8082/project/393f4385-4d14-48cc-b267-d113f3d23b8b
2025-06-02 03:59:59,352 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce94e049-3f3d-4871-9545-440e52f309c0
2025-06-02 03:59:59,363 - DEBUG - ==>Verifying data for policy with id: 24ba60af-27c6-413a-9793-01612e5adcbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-policy-allow-all-00906983']
2025-06-02 03:59:59,363 - INFO - VN ctest-vn-06797369 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 03:59:59,364 - DEBUG - Verifying the vn in opserver
2025-06-02 03:59:59,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369 virtual network link through opserver 10.0.0.38
2025-06-02 03:59:59,364 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-02 03:59:59,664 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-02 03:59:59,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369?flat'}
2025-06-02 03:59:59,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-06797369 is found in opserver
2025-06-02 03:59:59,743 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 03:59:59,749 - DEBUG - VRF ids for VN ctest-vn-06797369: {}
2025-06-02 03:59:59,749 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-02 03:59:59,754 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37a09523-bcce-4489-a0c5-033806edb129
2025-06-02 03:59:59,768 - DEBUG - Requesting: http://10.0.0.38:8082/project/393f4385-4d14-48cc-b267-d113f3d23b8b
2025-06-02 03:59:59,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:59,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:59,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31ff7721-afe2-42a6-b7cd-1232364b8a80
2025-06-02 03:59:59,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31ff7721-afe2-42a6-b7cd-1232364b8a80
2025-06-02 03:59:59,891 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bf8d4c01-ac02-4473-9444-ec8620b4d0bc
2025-06-02 03:59:59,900 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 03:59:59,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:59,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31ff7721-afe2-42a6-b7cd-1232364b8a80
2025-06-02 03:59:59,927 - INFO - Verified VN network id 9 for VN abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:59,927 - INFO - Verifications in API Server for VN ctest-vn-49809225 passed
2025-06-02 03:59:59,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 03:59:59,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31ff7721-afe2-42a6-b7cd-1232364b8a80
2025-06-02 03:59:59,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31ff7721-afe2-42a6-b7cd-1232364b8a80
2025-06-02 03:59:59,953 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bf8d4c01-ac02-4473-9444-ec8620b4d0bc
2025-06-02 03:59:59,966 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-49809225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89526956', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12383290852543646628', 'uuid-lslong': '13775068457233917529'}, 'enable': 'true', 'created': '2025-06-02T03:59:57', 'last-modified': '2025-06-02T03:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.545785'}
2025-06-02 03:59:59,973 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 03:59:59,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49809225 passed
2025-06-02 03:59:59,973 - DEBUG - ====Verifying policy data for ctest-vn-49809225 in API_Server ======
2025-06-02 03:59:59,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-02 03:59:59,979 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37a09523-bcce-4489-a0c5-033806edb129
2025-06-02 03:59:59,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/393f4385-4d14-48cc-b267-d113f3d23b8b
2025-06-02 04:00:00,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/abda496b-c035-4ba4-bf2a-dfc7461da659
2025-06-02 04:00:00,082 - DEBUG - ==>Verifying data for policy with id: 24ba60af-27c6-413a-9793-01612e5adcbe, fqn: ['default-domain', 'ctest-TestBasicPolicy-89526956', 'ctest-policy-allow-all-00906983']
2025-06-02 04:00:00,082 - INFO - VN ctest-vn-49809225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 04:00:00,082 - DEBUG - Verifying the vn in opserver
2025-06-02 04:00:00,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-49809225 virtual network link through opserver 10.0.0.38
2025-06-02 04:00:00,082 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-02 04:00:00,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-49809225', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-49809225?flat'}
2025-06-02 04:00:00,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89526956:ctest-vn-49809225 is found in opserver
2025-06-02 04:00:00,108 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 04:00:00,113 - DEBUG - VRF ids for VN ctest-vn-49809225: {}
2025-06-02 04:00:00,181 - DEBUG - Services list from nova: [