2025-02-03 02:24:26,257 - INFO - Domain Default found not creating
2025-02-03 02:24:26,403 - INFO - Project ctest-TestBasicPolicy-29013956 not found, creating it
2025-02-03 02:24:26,883 - INFO - Created Project:ctest-TestBasicPolicy-29013956, ID : 3fc64208-6261-4fb8-af4c-469b1b5deb20
2025-02-03 02:24:28,324 - INFO - ================================================================================
2025-02-03 02:24:28,324 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 02:24:28,324 - 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-02-03 02:24:28,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with
2025-02-03 02:24:28,582 - INFO - Initial checks done. Running the testcase now
2025-02-03 02:24:28,582 - INFO -
2025-02-03 02:24:29,125 - DEBUG - Response for create_network : {'network': {'id': 'faf31338-553b-49b2-b7d0-86726b4c7934', 'name': 'ctest-vn-41318491', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'project_id': '3fc6420862614fb8af4c469b1b5deb20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-vn-41318491'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:24:29,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '23c8de99-ea26-4cfa-8171-54867ef8b45a', 'name': '', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'network_id': 'faf31338-553b-49b2-b7d0-86726b4c7934', 'ip_version': 4, 'cidr': '37.236.133.192/26', 'allocation_pools': [{'start': '37.236.133.194', 'end': '37.236.133.254'}], 'gateway_ip': '37.236.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.236.133.194', 'tags': [], 'project_id': '3fc6420862614fb8af4c469b1b5deb20'}}
2025-02-03 02:24:29,320 - INFO - Created VN ctest-vn-41318491
2025-02-03 02:24:29,374 - DEBUG - VN ctest-vn-41318491 UUID is faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:29,699 - DEBUG - Response for create_network : {'network': {'id': 'f0fce538-8790-42c7-9291-b2e3cef222b7', 'name': 'ctest-vn-46234252', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'project_id': '3fc6420862614fb8af4c469b1b5deb20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-vn-46234252'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:24:29,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '51975310-6586-4949-a0a1-b36d18d15718', 'name': '', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'network_id': 'f0fce538-8790-42c7-9291-b2e3cef222b7', 'ip_version': 4, 'cidr': '47.18.95.64/26', 'allocation_pools': [{'start': '47.18.95.66', 'end': '47.18.95.126'}], 'gateway_ip': '47.18.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.18.95.66', 'tags': [], 'project_id': '3fc6420862614fb8af4c469b1b5deb20'}}
2025-02-03 02:24:29,934 - INFO - Created VN ctest-vn-46234252
2025-02-03 02:24:29,990 - DEBUG - VN ctest-vn-46234252 UUID is f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:30,104 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491, 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-29013956:ctest-vn-46234252, 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-02-03 02:24:30,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'faf31338-553b-49b2-b7d0-86726b4c7934', 'name': 'ctest-vn-41318491', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'project_id': '3fc6420862614fb8af4c469b1b5deb20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23c8de99-ea26-4cfa-8171-54867ef8b45a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-vn-41318491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-policy-allow-all-56491457']], 'subnet_ipam': [{'subnet_cidr': '37.236.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:24:30,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0fce538-8790-42c7-9291-b2e3cef222b7', 'name': 'ctest-vn-46234252', 'tenant_id': '3fc6420862614fb8af4c469b1b5deb20', 'project_id': '3fc6420862614fb8af4c469b1b5deb20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51975310-6586-4949-a0a1-b36d18d15718'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-vn-46234252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-policy-allow-all-56491457']], 'subnet_ipam': [{'subnet_cidr': '47.18.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 02:24:30,830 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-03 02:24:31,126 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-03 02:24:31,153 - DEBUG - Requesting: http://10.0.0.23:8082/domain/89679f7f-ad37-4962-a279-4af0881643f9
2025-02-03 02:24:31,169 - DEBUG - Requesting: http://10.0.0.23:8082/project/3fc64208-6261-4fb8-af4c-469b1b5deb20
2025-02-03 02:24:31,244 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,258 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,268 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa1a4391-b9bb-4fc6-8d14-675907662cbd
2025-02-03 02:24:31,276 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa1a4391-b9bb-4fc6-8d14-675907662cbd
2025-02-03 02:24:31,283 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/76f5d84f-6b48-4bf6-9d64-f9604f1204d5
2025-02-03 02:24:31,289 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 02:24:31,289 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,299 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa1a4391-b9bb-4fc6-8d14-675907662cbd
2025-02-03 02:24:31,313 - INFO - Verified VN network id 7 for VN faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,313 - INFO - Verifications in API Server for VN ctest-vn-41318491 passed
2025-02-03 02:24:31,313 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,322 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa1a4391-b9bb-4fc6-8d14-675907662cbd
2025-02-03 02:24:31,329 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa1a4391-b9bb-4fc6-8d14-675907662cbd
2025-02-03 02:24:31,337 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/76f5d84f-6b48-4bf6-9d64-f9604f1204d5
2025-02-03 02:24:31,351 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29013956', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18082818061491718578', 'uuid-lslong': '13245234330081196340'}, 'enable': 'true', 'created': '2025-02-03T02:24:29', 'last-modified': '2025-02-03T02:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964055'}
2025-02-03 02:24:31,359 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 02:24:31,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41318491 passed
2025-02-03 02:24:31,359 - DEBUG - ====Verifying policy data for ctest-vn-41318491 in API_Server ======
2025-02-03 02:24:31,359 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-03 02:24:31,366 - DEBUG - Requesting: http://10.0.0.23:8082/domain/89679f7f-ad37-4962-a279-4af0881643f9
2025-02-03 02:24:31,381 - DEBUG - Requesting: http://10.0.0.23:8082/project/3fc64208-6261-4fb8-af4c-469b1b5deb20
2025-02-03 02:24:31,459 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/faf31338-553b-49b2-b7d0-86726b4c7934
2025-02-03 02:24:31,469 - DEBUG - ==>Verifying data for policy with id: ac966ebd-31c9-4320-b270-0c4efb951b83, fqn: ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-policy-allow-all-56491457']
2025-02-03 02:24:31,469 - INFO - VN ctest-vn-41318491 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 02:24:31,470 - DEBUG - Verifying the vn in opserver
2025-02-03 02:24:31,470 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491 virtual network link through opserver 10.0.0.23
2025-02-03 02:24:31,470 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-03 02:24:31,761 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-03 02:24:31,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491?flat'}
2025-02-03 02:24:31,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-41318491 is found in opserver
2025-02-03 02:24:31,828 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 02:24:31,834 - DEBUG - VRF ids for VN ctest-vn-41318491: {}
2025-02-03 02:24:31,834 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-03 02:24:31,840 - DEBUG - Requesting: http://10.0.0.23:8082/domain/89679f7f-ad37-4962-a279-4af0881643f9
2025-02-03 02:24:31,852 - DEBUG - Requesting: http://10.0.0.23:8082/project/3fc64208-6261-4fb8-af4c-469b1b5deb20
2025-02-03 02:24:31,927 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:31,939 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:31,949 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3e33222f-693a-4f77-a8a9-96f6d9e83a72
2025-02-03 02:24:31,955 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3e33222f-693a-4f77-a8a9-96f6d9e83a72
2025-02-03 02:24:31,962 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/de7b69f5-f7d1-44d8-9a61-1aa26bdc8ba3
2025-02-03 02:24:31,968 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 02:24:31,968 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:31,977 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3e33222f-693a-4f77-a8a9-96f6d9e83a72
2025-02-03 02:24:31,993 - INFO - Verified VN network id 8 for VN f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:31,993 - INFO - Verifications in API Server for VN ctest-vn-46234252 passed
2025-02-03 02:24:31,993 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:32,004 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3e33222f-693a-4f77-a8a9-96f6d9e83a72
2025-02-03 02:24:32,012 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3e33222f-693a-4f77-a8a9-96f6d9e83a72
2025-02-03 02:24:32,020 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/de7b69f5-f7d1-44d8-9a61-1aa26bdc8ba3
2025-02-03 02:24:32,033 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-46234252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29013956', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17365006294189097671', 'uuid-lslong': '10561419292659819191'}, 'enable': 'true', 'created': '2025-02-03T02:24:29', 'last-modified': '2025-02-03T02:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399045'}
2025-02-03 02:24:32,040 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 02:24:32,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46234252 passed
2025-02-03 02:24:32,040 - DEBUG - ====Verifying policy data for ctest-vn-46234252 in API_Server ======
2025-02-03 02:24:32,040 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-03 02:24:32,047 - DEBUG - Requesting: http://10.0.0.23:8082/domain/89679f7f-ad37-4962-a279-4af0881643f9
2025-02-03 02:24:32,059 - DEBUG - Requesting: http://10.0.0.23:8082/project/3fc64208-6261-4fb8-af4c-469b1b5deb20
2025-02-03 02:24:32,136 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f0fce538-8790-42c7-9291-b2e3cef222b7
2025-02-03 02:24:32,146 - DEBUG - ==>Verifying data for policy with id: ac966ebd-31c9-4320-b270-0c4efb951b83, fqn: ['default-domain', 'ctest-TestBasicPolicy-29013956', 'ctest-policy-allow-all-56491457']
2025-02-03 02:24:32,146 - INFO - VN ctest-vn-46234252 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 02:24:32,146 - DEBUG - Verifying the vn in opserver
2025-02-03 02:24:32,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-46234252 virtual network link through opserver 10.0.0.23
2025-02-03 02:24:32,146 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-03 02:24:32,158 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-46234252', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-46234252?flat'}
2025-02-03 02:24:32,158 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29013956:ctest-vn-46234252 is found in opserver
2025-02-03 02:24:32,172 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 02:24:32,178 - DEBUG - VRF ids for VN ctest-vn-46234252: {}
2025-02-03 02:24:32,241 - DEBUG - Services list from nova: [