2025-03-28 20:14:50,874 - INFO - Domain Default found not creating
2025-03-28 20:14:51,029 - INFO - Project ctest-TestBasicPolicy-24182710 not found, creating it
2025-03-28 20:14:51,517 - INFO - Created Project:ctest-TestBasicPolicy-24182710, ID : 8b27dfaa-76c5-4460-b8f1-b7fb93837f9e
2025-03-28 20:14:53,121 - INFO - ================================================================================
2025-03-28 20:14:53,121 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 20:14:53,121 - 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-03-28 20:14:53,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.12': '0'}} with
2025-03-28 20:14:53,376 - INFO - Initial checks done. Running the testcase now
2025-03-28 20:14:53,376 - INFO -
2025-03-28 20:14:53,987 - DEBUG - Response for create_network : {'network': {'id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'name': 'ctest-vn-03145868', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-03145868'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 20:14:54,163 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8eddfdd-69c5-4937-8d06-b4c7447cd8b2', 'name': '', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'network_id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'ip_version': 4, 'cidr': '7.78.74.64/26', 'allocation_pools': [{'start': '7.78.74.66', 'end': '7.78.74.126'}], 'gateway_ip': '7.78.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.78.74.66', 'tags': [], 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e'}}
2025-03-28 20:14:54,182 - INFO - Created VN ctest-vn-03145868
2025-03-28 20:14:54,237 - DEBUG - VN ctest-vn-03145868 UUID is 90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:54,547 - DEBUG - Response for create_network : {'network': {'id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'name': 'ctest-vn-87417948', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-87417948'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 20:14:54,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c87697d-4528-488b-b012-809574e88eb6', 'name': '', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'network_id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'ip_version': 4, 'cidr': '47.254.181.128/26', 'allocation_pools': [{'start': '47.254.181.130', 'end': '47.254.181.190'}], 'gateway_ip': '47.254.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.254.181.130', 'tags': [], 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e'}}
2025-03-28 20:14:54,788 - INFO - Created VN ctest-vn-87417948
2025-03-28 20:14:54,841 - DEBUG - VN ctest-vn-87417948 UUID is 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:54,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868, 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-24182710:ctest-vn-87417948, 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-03-28 20:14:55,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'name': 'ctest-vn-03145868', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8eddfdd-69c5-4937-8d06-b4c7447cd8b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-03145868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']], 'subnet_ipam': [{'subnet_cidr': '7.78.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 20:14:55,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'name': 'ctest-vn-87417948', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c87697d-4528-488b-b012-809574e88eb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-87417948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']], 'subnet_ipam': [{'subnet_cidr': '47.254.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 20:14:55,725 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-03-28 20:14:56,069 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-03-28 20:14:56,103 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721
2025-03-28 20:14:56,120 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e
2025-03-28 20:14:56,198 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,211 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,223 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632
2025-03-28 20:14:56,232 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632
2025-03-28 20:14:56,240 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/614ac2f0-a770-4f52-95d2-9407be689763
2025-03-28 20:14:56,247 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 20:14:56,247 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,259 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632
2025-03-28 20:14:56,277 - INFO - Verified VN network id 8 for VN 90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,277 - INFO - Verifications in API Server for VN ctest-vn-03145868 passed
2025-03-28 20:14:56,277 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,288 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632
2025-03-28 20:14:56,296 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632
2025-03-28 20:14:56,305 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/614ac2f0-a770-4f52-95d2-9407be689763
2025-03-28 20:14:56,319 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24182710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10432240872993736909', 'uuid-lslong': '10255756282687177272'}, 'enable': 'true', 'created': '2025-03-28T20:14:53', 'last-modified': '2025-03-28T20:14:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071252'}
2025-03-28 20:14:56,328 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 20:14:56,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03145868 passed
2025-03-28 20:14:56,328 - DEBUG - ====Verifying policy data for ctest-vn-03145868 in API_Server ======
2025-03-28 20:14:56,328 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-03-28 20:14:56,334 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721
2025-03-28 20:14:56,349 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e
2025-03-28 20:14:56,434 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238
2025-03-28 20:14:56,449 - DEBUG - ==>Verifying data for policy with id: 4370cfea-bdf7-4848-8b0e-4f34a8a69908, fqn: ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']
2025-03-28 20:14:56,449 - INFO - VN ctest-vn-03145868 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 20:14:56,450 - DEBUG - Verifying the vn in opserver
2025-03-28 20:14:56,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868 virtual network link through opserver 10.0.0.40
2025-03-28 20:14:56,450 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-03-28 20:14:56,790 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-03-28 20:14:56,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868?flat'}
2025-03-28 20:14:56,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868 is found in opserver
2025-03-28 20:14:56,873 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 20:14:56,880 - DEBUG - VRF ids for VN ctest-vn-03145868: {}
2025-03-28 20:14:56,880 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-03-28 20:14:56,887 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721
2025-03-28 20:14:56,900 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e
2025-03-28 20:14:56,978 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:56,991 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:57,002 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1
2025-03-28 20:14:57,011 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1
2025-03-28 20:14:57,018 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/648e06ac-2ffa-4ddd-a323-ebc46c30f5c9
2025-03-28 20:14:57,026 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 20:14:57,026 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:57,036 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1
2025-03-28 20:14:57,052 - INFO - Verified VN network id 9 for VN 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:57,052 - INFO - Verifications in API Server for VN ctest-vn-87417948 passed
2025-03-28 20:14:57,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:57,064 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1
2025-03-28 20:14:57,072 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1
2025-03-28 20:14:57,080 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/648e06ac-2ffa-4ddd-a323-ebc46c30f5c9
2025-03-28 20:14:57,093 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24182710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7765199440356920604', 'uuid-lslong': '10008775985652763968'}, 'enable': 'true', 'created': '2025-03-28T20:14:54', 'last-modified': '2025-03-28T20:14:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595519'}
2025-03-28 20:14:57,101 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 20:14:57,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87417948 passed
2025-03-28 20:14:57,101 - DEBUG - ====Verifying policy data for ctest-vn-87417948 in API_Server ======
2025-03-28 20:14:57,101 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-03-28 20:14:57,108 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721
2025-03-28 20:14:57,121 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e
2025-03-28 20:14:57,203 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40
2025-03-28 20:14:57,218 - DEBUG - ==>Verifying data for policy with id: 4370cfea-bdf7-4848-8b0e-4f34a8a69908, fqn: ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']
2025-03-28 20:14:57,218 - INFO - VN ctest-vn-87417948 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 20:14:57,218 - DEBUG - Verifying the vn in opserver
2025-03-28 20:14:57,218 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948 virtual network link through opserver 10.0.0.40
2025-03-28 20:14:57,218 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-03-28 20:14:57,231 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948?flat'}
2025-03-28 20:14:57,231 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948 is found in opserver
2025-03-28 20:14:57,245 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 20:14:57,251 - DEBUG - VRF ids for VN ctest-vn-87417948: {}
2025-03-28 20:14:57,313 - DEBUG - Services list from nova: [