2025-08-04 02:23:53,818 - INFO - Domain Default found not creating
2025-08-04 02:23:53,989 - INFO - Project ctest-TestBasicPolicy-67191733 not found, creating it
2025-08-04 02:23:54,481 - INFO - Created Project:ctest-TestBasicPolicy-67191733, ID : 4b770f6c-70d8-41a6-abe7-14f2a7c3377f
2025-08-04 02:23:55,972 - INFO - ================================================================================
2025-08-04 02:23:55,972 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-04 02:23:55,972 - 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-08-04 02:23:56,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-08-04 02:23:56,235 - INFO - Initial checks done. Running the testcase now
2025-08-04 02:23:56,235 - INFO -
2025-08-04 02:23:56,869 - DEBUG - Response for create_network : {'network': {'id': '67052f4c-13c2-4d50-bb72-d5e40b163a6d', 'name': 'ctest-vn-45707467', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'project_id': '4b770f6c70d841a6abe714f2a7c3377f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-vn-45707467'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:57,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '370f9843-2bb0-4605-90a1-df236d15c9a3', 'name': '', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'network_id': '67052f4c-13c2-4d50-bb72-d5e40b163a6d', 'ip_version': 4, 'cidr': '177.208.9.192/26', 'allocation_pools': [{'start': '177.208.9.194', 'end': '177.208.9.254'}], 'gateway_ip': '177.208.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.208.9.194', 'tags': [], 'project_id': '4b770f6c70d841a6abe714f2a7c3377f'}}
2025-08-04 02:23:57,120 - INFO - Created VN ctest-vn-45707467
2025-08-04 02:23:57,179 - DEBUG - VN ctest-vn-45707467 UUID is 67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:57,492 - DEBUG - Response for create_network : {'network': {'id': '58c6c132-5eda-43a8-8854-7c32efa949bf', 'name': 'ctest-vn-99914339', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'project_id': '4b770f6c70d841a6abe714f2a7c3377f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-vn-99914339'], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:57,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '59d23bf7-c3e0-499b-badc-71fafb3e3fed', 'name': '', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'network_id': '58c6c132-5eda-43a8-8854-7c32efa949bf', 'ip_version': 4, 'cidr': '84.67.78.64/26', 'allocation_pools': [{'start': '84.67.78.66', 'end': '84.67.78.126'}], 'gateway_ip': '84.67.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.67.78.66', 'tags': [], 'project_id': '4b770f6c70d841a6abe714f2a7c3377f'}}
2025-08-04 02:23:57,702 - INFO - Created VN ctest-vn-99914339
2025-08-04 02:23:57,755 - DEBUG - VN ctest-vn-99914339 UUID is 58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:57,869 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467, 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-67191733:ctest-vn-99914339, 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-08-04 02:23:58,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67052f4c-13c2-4d50-bb72-d5e40b163a6d', 'name': 'ctest-vn-45707467', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'project_id': '4b770f6c70d841a6abe714f2a7c3377f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['370f9843-2bb0-4605-90a1-df236d15c9a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-vn-45707467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-policy-allow-all-81139180']], 'subnet_ipam': [{'subnet_cidr': '177.208.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:58,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58c6c132-5eda-43a8-8854-7c32efa949bf', 'name': 'ctest-vn-99914339', 'tenant_id': '4b770f6c70d841a6abe714f2a7c3377f', 'project_id': '4b770f6c70d841a6abe714f2a7c3377f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59d23bf7-c3e0-499b-badc-71fafb3e3fed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-vn-99914339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-policy-allow-all-81139180']], 'subnet_ipam': [{'subnet_cidr': '84.67.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-04 02:23:58,619 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-04 02:23:58,920 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-04 02:23:58,951 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de97289b-119c-4aac-af38-8342922e6b9e
2025-08-04 02:23:58,965 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b770f6c-70d8-41a6-abe7-14f2a7c3377f
2025-08-04 02:23:59,046 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,059 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,071 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/abc0b9d4-7283-4d9c-802c-4701ed7e6894
2025-08-04 02:23:59,080 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/abc0b9d4-7283-4d9c-802c-4701ed7e6894
2025-08-04 02:23:59,088 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2f8267bc-c03d-4d65-a9f8-faea69dfbfd7
2025-08-04 02:23:59,097 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:23:59,097 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,107 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/abc0b9d4-7283-4d9c-802c-4701ed7e6894
2025-08-04 02:23:59,125 - INFO - Verified VN network id 11 for VN 67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,125 - INFO - Verifications in API Server for VN ctest-vn-45707467 passed
2025-08-04 02:23:59,125 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,138 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/abc0b9d4-7283-4d9c-802c-4701ed7e6894
2025-08-04 02:23:59,149 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/abc0b9d4-7283-4d9c-802c-4701ed7e6894
2025-08-04 02:23:59,159 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2f8267bc-c03d-4d65-a9f8-faea69dfbfd7
2025-08-04 02:23:59,173 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67191733', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7423391564585651536', 'uuid-lslong': '13507093407852804717'}, 'enable': 'true', 'created': '2025-08-04T02:23:56', 'last-modified': '2025-08-04T02:23:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016918'}
2025-08-04 02:23:59,180 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-04 02:23:59,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45707467 passed
2025-08-04 02:23:59,180 - DEBUG - ====Verifying policy data for ctest-vn-45707467 in API_Server ======
2025-08-04 02:23:59,180 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-04 02:23:59,186 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de97289b-119c-4aac-af38-8342922e6b9e
2025-08-04 02:23:59,198 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b770f6c-70d8-41a6-abe7-14f2a7c3377f
2025-08-04 02:23:59,275 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/67052f4c-13c2-4d50-bb72-d5e40b163a6d
2025-08-04 02:23:59,285 - DEBUG - ==>Verifying data for policy with id: b6ebee36-b94f-4c99-9b92-c4656fd7a6d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-policy-allow-all-81139180']
2025-08-04 02:23:59,285 - INFO - VN ctest-vn-45707467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:23:59,285 - DEBUG - Verifying the vn in opserver
2025-08-04 02:23:59,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467 virtual network link through opserver 10.0.0.249
2025-08-04 02:23:59,285 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-04 02:23:59,598 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-04 02:23:59,658 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467?flat'}
2025-08-04 02:23:59,658 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-45707467 is found in opserver
2025-08-04 02:23:59,673 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:23:59,678 - DEBUG - VRF ids for VN ctest-vn-45707467: {}
2025-08-04 02:23:59,679 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-04 02:23:59,686 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de97289b-119c-4aac-af38-8342922e6b9e
2025-08-04 02:23:59,701 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b770f6c-70d8-41a6-abe7-14f2a7c3377f
2025-08-04 02:23:59,778 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:59,793 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:59,803 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7c6a6829-0b05-48b1-be32-390ceeb41f38
2025-08-04 02:23:59,811 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7c6a6829-0b05-48b1-be32-390ceeb41f38
2025-08-04 02:23:59,820 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9bb3350-a0f7-47d9-addc-b7377abb7343
2025-08-04 02:23:59,828 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:23:59,828 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:59,839 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7c6a6829-0b05-48b1-be32-390ceeb41f38
2025-08-04 02:23:59,856 - INFO - Verified VN network id 12 for VN 58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:59,856 - INFO - Verifications in API Server for VN ctest-vn-99914339 passed
2025-08-04 02:23:59,856 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:23:59,870 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7c6a6829-0b05-48b1-be32-390ceeb41f38
2025-08-04 02:23:59,879 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7c6a6829-0b05-48b1-be32-390ceeb41f38
2025-08-04 02:23:59,887 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9bb3350-a0f7-47d9-addc-b7377abb7343
2025-08-04 02:23:59,901 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-99914339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67191733', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6397012742810256296', 'uuid-lslong': '9823613245412952511'}, 'enable': 'true', 'created': '2025-08-04T02:23:57', 'last-modified': '2025-08-04T02:23:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481306'}
2025-08-04 02:23:59,909 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-04 02:23:59,909 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99914339 passed
2025-08-04 02:23:59,910 - DEBUG - ====Verifying policy data for ctest-vn-99914339 in API_Server ======
2025-08-04 02:23:59,910 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-04 02:23:59,917 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de97289b-119c-4aac-af38-8342922e6b9e
2025-08-04 02:23:59,933 - DEBUG - Requesting: http://10.0.0.249:8082/project/4b770f6c-70d8-41a6-abe7-14f2a7c3377f
2025-08-04 02:24:00,009 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/58c6c132-5eda-43a8-8854-7c32efa949bf
2025-08-04 02:24:00,021 - DEBUG - ==>Verifying data for policy with id: b6ebee36-b94f-4c99-9b92-c4656fd7a6d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-67191733', 'ctest-policy-allow-all-81139180']
2025-08-04 02:24:00,021 - INFO - VN ctest-vn-99914339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-04 02:24:00,021 - DEBUG - Verifying the vn in opserver
2025-08-04 02:24:00,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-99914339 virtual network link through opserver 10.0.0.249
2025-08-04 02:24:00,021 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-04 02:24:00,035 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-99914339', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-99914339?flat'}
2025-08-04 02:24:00,035 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67191733:ctest-vn-99914339 is found in opserver
2025-08-04 02:24:00,047 - DEBUG - Do not have enough data to verify VN in agent
2025-08-04 02:24:00,053 - DEBUG - VRF ids for VN ctest-vn-99914339: {}
2025-08-04 02:24:00,113 - DEBUG - Services list from nova: [