2025-01-20 02:15:47,719 - INFO - Domain Default found not creating
2025-01-20 02:15:47,847 - INFO - Project ctest-TestBasicPolicy-05989438 not found, creating it
2025-01-20 02:15:48,277 - INFO - Created Project:ctest-TestBasicPolicy-05989438, ID : 5aa9ed24-c005-439a-90a9-87661faf414b
2025-01-20 02:15:49,677 - INFO - ================================================================================
2025-01-20 02:15:49,677 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-20 02:15:49,677 - 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-01-20 02:15:49,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.28': '0'}} with
2025-01-20 02:15:49,935 - INFO - Initial checks done. Running the testcase now
2025-01-20 02:15:49,935 - INFO -
2025-01-20 02:15:50,465 - DEBUG - Response for create_network : {'network': {'id': 'd79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2', 'name': 'ctest-vn-64475455', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'project_id': '5aa9ed24c005439a90a987661faf414b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-vn-64475455'], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:15:50,656 - DEBUG - Response for create_subnet : {'subnet': {'id': '9181a5a1-eca5-4684-b477-70b0a13576d6', 'name': '', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'network_id': 'd79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2', 'ip_version': 4, 'cidr': '207.41.68.64/26', 'allocation_pools': [{'start': '207.41.68.66', 'end': '207.41.68.126'}], 'gateway_ip': '207.41.68.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.41.68.66', 'tags': [], 'project_id': '5aa9ed24c005439a90a987661faf414b'}}
2025-01-20 02:15:50,672 - INFO - Created VN ctest-vn-64475455
2025-01-20 02:15:50,724 - DEBUG - VN ctest-vn-64475455 UUID is d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:51,043 - DEBUG - Response for create_network : {'network': {'id': '7f56aab4-dd3b-464f-8914-c9909eaca999', 'name': 'ctest-vn-88803593', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'project_id': '5aa9ed24c005439a90a987661faf414b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-vn-88803593'], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:15:51,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '1639b650-dc6f-4f2c-af12-1d6c4dc4a4d4', 'name': '', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'network_id': '7f56aab4-dd3b-464f-8914-c9909eaca999', 'ip_version': 4, 'cidr': '93.66.225.128/26', 'allocation_pools': [{'start': '93.66.225.130', 'end': '93.66.225.190'}], 'gateway_ip': '93.66.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.66.225.130', 'tags': [], 'project_id': '5aa9ed24c005439a90a987661faf414b'}}
2025-01-20 02:15:51,291 - INFO - Created VN ctest-vn-88803593
2025-01-20 02:15:51,340 - DEBUG - VN ctest-vn-88803593 UUID is 7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:51,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455, 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-05989438:ctest-vn-88803593, 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-01-20 02:15:51,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2', 'name': 'ctest-vn-64475455', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'project_id': '5aa9ed24c005439a90a987661faf414b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9181a5a1-eca5-4684-b477-70b0a13576d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-vn-64475455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-policy-allow-all-23941399']], 'subnet_ipam': [{'subnet_cidr': '207.41.68.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:15:52,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f56aab4-dd3b-464f-8914-c9909eaca999', 'name': 'ctest-vn-88803593', 'tenant_id': '5aa9ed24c005439a90a987661faf414b', 'project_id': '5aa9ed24c005439a90a987661faf414b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1639b650-dc6f-4f2c-af12-1d6c4dc4a4d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-vn-88803593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-policy-allow-all-23941399']], 'subnet_ipam': [{'subnet_cidr': '93.66.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:15:52,176 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-20 02:15:52,471 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-20 02:15:52,499 - DEBUG - Requesting: http://10.0.0.17:8082/domain/9668a63d-14cd-4b12-8591-b4f8fd6cf447
2025-01-20 02:15:52,511 - DEBUG - Requesting: http://10.0.0.17:8082/project/5aa9ed24-c005-439a-90a9-87661faf414b
2025-01-20 02:15:52,590 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,604 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,614 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/38be2bfd-5ab0-4a1e-87ed-f588bc1d2d81
2025-01-20 02:15:52,622 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/38be2bfd-5ab0-4a1e-87ed-f588bc1d2d81
2025-01-20 02:15:52,628 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e8614c61-8211-416e-b29c-70df9cb613bb
2025-01-20 02:15:52,646 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-20 02:15:52,646 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,655 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/38be2bfd-5ab0-4a1e-87ed-f588bc1d2d81
2025-01-20 02:15:52,668 - INFO - Verified VN network id 9 for VN d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,668 - INFO - Verifications in API Server for VN ctest-vn-64475455 passed
2025-01-20 02:15:52,668 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,677 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/38be2bfd-5ab0-4a1e-87ed-f588bc1d2d81
2025-01-20 02:15:52,684 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/38be2bfd-5ab0-4a1e-87ed-f588bc1d2d81
2025-01-20 02:15:52,690 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e8614c61-8211-416e-b29c-70df9cb613bb
2025-01-20 02:15:52,701 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05989438', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15536544361929589647', 'uuid-lslong': '11408615563403754162'}, 'enable': 'true', 'created': '2025-01-20T02:15:50', 'last-modified': '2025-01-20T02:15:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946533'}
2025-01-20 02:15:52,707 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-20 02:15:52,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64475455 passed
2025-01-20 02:15:52,707 - DEBUG - ====Verifying policy data for ctest-vn-64475455 in API_Server ======
2025-01-20 02:15:52,707 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-20 02:15:52,718 - DEBUG - Requesting: http://10.0.0.17:8082/domain/9668a63d-14cd-4b12-8591-b4f8fd6cf447
2025-01-20 02:15:52,730 - DEBUG - Requesting: http://10.0.0.17:8082/project/5aa9ed24-c005-439a-90a9-87661faf414b
2025-01-20 02:15:52,806 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d79ce4c7-f1e9-438f-9e53-8b68d3ac7ab2
2025-01-20 02:15:52,817 - DEBUG - ==>Verifying data for policy with id: 76cd23ea-ff93-4254-916f-a247ca890bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-policy-allow-all-23941399']
2025-01-20 02:15:52,817 - INFO - VN ctest-vn-64475455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-20 02:15:52,817 - DEBUG - Verifying the vn in opserver
2025-01-20 02:15:52,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455 virtual network link through opserver 10.0.0.17
2025-01-20 02:15:52,817 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-20 02:15:53,112 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-20 02:15:53,165 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455?flat'}
2025-01-20 02:15:53,165 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-64475455 is found in opserver
2025-01-20 02:15:53,176 - DEBUG - Do not have enough data to verify VN in agent
2025-01-20 02:15:53,181 - DEBUG - VRF ids for VN ctest-vn-64475455: {}
2025-01-20 02:15:53,181 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-20 02:15:53,186 - DEBUG - Requesting: http://10.0.0.17:8082/domain/9668a63d-14cd-4b12-8591-b4f8fd6cf447
2025-01-20 02:15:53,196 - DEBUG - Requesting: http://10.0.0.17:8082/project/5aa9ed24-c005-439a-90a9-87661faf414b
2025-01-20 02:15:53,270 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,282 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,291 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/1507063b-9669-4ab1-904b-2e7070c6be1a
2025-01-20 02:15:53,298 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/1507063b-9669-4ab1-904b-2e7070c6be1a
2025-01-20 02:15:53,305 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/34c3738e-4d91-42de-85df-2b514fbb9f15
2025-01-20 02:15:53,312 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-20 02:15:53,312 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,322 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/1507063b-9669-4ab1-904b-2e7070c6be1a
2025-01-20 02:15:53,343 - INFO - Verified VN network id 10 for VN 7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,343 - INFO - Verifications in API Server for VN ctest-vn-88803593 passed
2025-01-20 02:15:53,344 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,357 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/1507063b-9669-4ab1-904b-2e7070c6be1a
2025-01-20 02:15:53,364 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/1507063b-9669-4ab1-904b-2e7070c6be1a
2025-01-20 02:15:53,371 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/34c3738e-4d91-42de-85df-2b514fbb9f15
2025-01-20 02:15:53,382 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-88803593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05989438', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9175708984596448847', 'uuid-lslong': '9877741505704929689'}, 'enable': 'true', 'created': '2025-01-20T02:15:51', 'last-modified': '2025-01-20T02:15:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390895'}
2025-01-20 02:15:53,389 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-20 02:15:53,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88803593 passed
2025-01-20 02:15:53,389 - DEBUG - ====Verifying policy data for ctest-vn-88803593 in API_Server ======
2025-01-20 02:15:53,389 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-20 02:15:53,394 - DEBUG - Requesting: http://10.0.0.17:8082/domain/9668a63d-14cd-4b12-8591-b4f8fd6cf447
2025-01-20 02:15:53,405 - DEBUG - Requesting: http://10.0.0.17:8082/project/5aa9ed24-c005-439a-90a9-87661faf414b
2025-01-20 02:15:53,478 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7f56aab4-dd3b-464f-8914-c9909eaca999
2025-01-20 02:15:53,489 - DEBUG - ==>Verifying data for policy with id: 76cd23ea-ff93-4254-916f-a247ca890bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-05989438', 'ctest-policy-allow-all-23941399']
2025-01-20 02:15:53,489 - INFO - VN ctest-vn-88803593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-20 02:15:53,489 - DEBUG - Verifying the vn in opserver
2025-01-20 02:15:53,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-88803593 virtual network link through opserver 10.0.0.17
2025-01-20 02:15:53,489 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-20 02:15:53,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-88803593', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-88803593?flat'}
2025-01-20 02:15:53,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05989438:ctest-vn-88803593 is found in opserver
2025-01-20 02:15:53,510 - DEBUG - Do not have enough data to verify VN in agent
2025-01-20 02:15:53,515 - DEBUG - VRF ids for VN ctest-vn-88803593: {}
2025-01-20 02:15:53,569 - DEBUG - Services list from nova: [