2025-04-26 06:39:52,820 - INFO - Domain Default found not creating
2025-04-26 06:39:52,948 - INFO - Project ctest-TestBasicPolicy-87366797 not found, creating it
2025-04-26 06:39:53,394 - INFO - Created Project:ctest-TestBasicPolicy-87366797, ID : 1666894d-df95-4ec3-b50f-5d8f7a92da54
2025-04-26 06:39:54,792 - INFO - ================================================================================
2025-04-26 06:39:54,792 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 06:39:54,792 - 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-04-26 06:39:55,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-26 06:39:55,056 - INFO - Initial checks done. Running the testcase now
2025-04-26 06:39:55,056 - INFO -
2025-04-26 06:39:55,583 - DEBUG - Response for create_network : {'network': {'id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'name': 'ctest-vn-20098802', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-20098802'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 06:39:55,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '51959bd7-1c80-460e-b655-8ea1dd0cef8c', 'name': '', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'network_id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'ip_version': 4, 'cidr': '154.251.24.192/26', 'allocation_pools': [{'start': '154.251.24.194', 'end': '154.251.24.254'}], 'gateway_ip': '154.251.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.251.24.194', 'tags': [], 'project_id': '1666894ddf954ec3b50f5d8f7a92da54'}}
2025-04-26 06:39:55,782 - INFO - Created VN ctest-vn-20098802
2025-04-26 06:39:55,838 - DEBUG - VN ctest-vn-20098802 UUID is c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:56,154 - DEBUG - Response for create_network : {'network': {'id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'name': 'ctest-vn-97349078', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-97349078'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 06:39:56,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '4621f58b-a999-4a6a-be37-0f076088f068', 'name': '', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'network_id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'ip_version': 4, 'cidr': '35.121.210.64/26', 'allocation_pools': [{'start': '35.121.210.66', 'end': '35.121.210.126'}], 'gateway_ip': '35.121.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.121.210.66', 'tags': [], 'project_id': '1666894ddf954ec3b50f5d8f7a92da54'}}
2025-04-26 06:39:56,329 - INFO - Created VN ctest-vn-97349078
2025-04-26 06:39:56,382 - DEBUG - VN ctest-vn-97349078 UUID is 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:56,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802, 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-87366797:ctest-vn-97349078, 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-04-26 06:39:56,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'name': 'ctest-vn-20098802', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51959bd7-1c80-460e-b655-8ea1dd0cef8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-20098802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']], 'subnet_ipam': [{'subnet_cidr': '154.251.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 06:39:57,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'name': 'ctest-vn-97349078', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4621f58b-a999-4a6a-be37-0f076088f068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-97349078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']], 'subnet_ipam': [{'subnet_cidr': '35.121.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 06:39:57,259 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 06:39:57,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 06:39:57,579 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30
2025-04-26 06:39:57,592 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54
2025-04-26 06:39:57,666 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,685 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea
2025-04-26 06:39:57,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea
2025-04-26 06:39:57,699 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0370e899-2aa1-4baa-9402-e0d73e23f39c
2025-04-26 06:39:57,705 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 06:39:57,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea
2025-04-26 06:39:57,726 - INFO - Verified VN network id 8 for VN c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,727 - INFO - Verifications in API Server for VN ctest-vn-20098802 passed
2025-04-26 06:39:57,727 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea
2025-04-26 06:39:57,741 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea
2025-04-26 06:39:57,748 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0370e899-2aa1-4baa-9402-e0d73e23f39c
2025-04-26 06:39:57,759 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87366797', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14040188687454718774', 'uuid-lslong': '10572244697831838465'}, 'enable': 'true', 'created': '2025-04-26T06:39:55', 'last-modified': '2025-04-26T06:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956234'}
2025-04-26 06:39:57,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 06:39:57,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20098802 passed
2025-04-26 06:39:57,767 - DEBUG - ====Verifying policy data for ctest-vn-20098802 in API_Server ======
2025-04-26 06:39:57,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 06:39:57,773 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30
2025-04-26 06:39:57,784 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54
2025-04-26 06:39:57,856 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301
2025-04-26 06:39:57,865 - DEBUG - ==>Verifying data for policy with id: 1ea8f651-d868-48ca-be28-a7bca86d4c30, fqn: ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']
2025-04-26 06:39:57,865 - INFO - VN ctest-vn-20098802 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 06:39:57,865 - DEBUG - Verifying the vn in opserver
2025-04-26 06:39:57,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802 virtual network link through opserver 10.0.0.254
2025-04-26 06:39:57,865 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 06:39:58,152 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 06:39:58,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802?flat'}
2025-04-26 06:39:58,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802 is found in opserver
2025-04-26 06:39:58,214 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 06:39:58,220 - DEBUG - VRF ids for VN ctest-vn-20098802: {}
2025-04-26 06:39:58,220 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 06:39:58,226 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30
2025-04-26 06:39:58,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54
2025-04-26 06:39:58,313 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,326 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc
2025-04-26 06:39:58,342 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc
2025-04-26 06:39:58,348 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b518b65-68c9-4b5c-a449-5340d2373b36
2025-04-26 06:39:58,354 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 06:39:58,354 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,363 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc
2025-04-26 06:39:58,375 - INFO - Verified VN network id 9 for VN 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,375 - INFO - Verifications in API Server for VN ctest-vn-97349078 passed
2025-04-26 06:39:58,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc
2025-04-26 06:39:58,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc
2025-04-26 06:39:58,397 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b518b65-68c9-4b5c-a449-5340d2373b36
2025-04-26 06:39:58,408 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87366797', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10734117777694149902', 'uuid-lslong': '9505464713156880904'}, 'enable': 'true', 'created': '2025-04-26T06:39:56', 'last-modified': '2025-04-26T06:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385873'}
2025-04-26 06:39:58,413 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 06:39:58,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97349078 passed
2025-04-26 06:39:58,414 - DEBUG - ====Verifying policy data for ctest-vn-97349078 in API_Server ======
2025-04-26 06:39:58,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 06:39:58,418 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30
2025-04-26 06:39:58,428 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54
2025-04-26 06:39:58,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08
2025-04-26 06:39:58,512 - DEBUG - ==>Verifying data for policy with id: 1ea8f651-d868-48ca-be28-a7bca86d4c30, fqn: ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']
2025-04-26 06:39:58,512 - INFO - VN ctest-vn-97349078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 06:39:58,512 - DEBUG - Verifying the vn in opserver
2025-04-26 06:39:58,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078 virtual network link through opserver 10.0.0.254
2025-04-26 06:39:58,512 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 06:39:58,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078?flat'}
2025-04-26 06:39:58,521 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078 is found in opserver
2025-04-26 06:39:58,531 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 06:39:58,535 - DEBUG - VRF ids for VN ctest-vn-97349078: {}
2025-04-26 06:39:58,589 - DEBUG - Services list from nova: [