2025-08-19 21:03:32,110 - INFO - Domain Default found not creating
2025-08-19 21:03:32,245 - INFO - Project ctest-TestBasicPolicy-50392159 not found, creating it
2025-08-19 21:03:32,726 - INFO - Created Project:ctest-TestBasicPolicy-50392159, ID : 6baa4f14-aae9-4845-a370-bf71620bbc1c
2025-08-19 21:03:34,077 - INFO - ================================================================================
2025-08-19 21:03:34,078 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 21:03:34,078 - 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-19 21:03:34,327 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-19 21:03:34,327 - INFO - Initial checks done. Running the testcase now
2025-08-19 21:03:34,327 - INFO -
2025-08-19 21:03:34,829 - DEBUG - Response for create_network : {'network': {'id': '9e7cfa8b-02e4-4e50-988a-06a19aee1f49', 'name': 'ctest-vn-75252900', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'project_id': '6baa4f14aae94845a370bf71620bbc1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-vn-75252900'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 21:03:34,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f055647-26cf-4da6-8033-94ca0d4ec368', 'name': '', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'network_id': '9e7cfa8b-02e4-4e50-988a-06a19aee1f49', 'ip_version': 4, 'cidr': '192.37.164.192/26', 'allocation_pools': [{'start': '192.37.164.194', 'end': '192.37.164.254'}], 'gateway_ip': '192.37.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.37.164.194', 'tags': [], 'project_id': '6baa4f14aae94845a370bf71620bbc1c'}}
2025-08-19 21:03:34,998 - INFO - Created VN ctest-vn-75252900
2025-08-19 21:03:35,047 - DEBUG - VN ctest-vn-75252900 UUID is 9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:35,355 - DEBUG - Response for create_network : {'network': {'id': '4ad651f7-dc1e-4a47-890e-5a1344e3cc03', 'name': 'ctest-vn-93890125', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'project_id': '6baa4f14aae94845a370bf71620bbc1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-vn-93890125'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 21:03:35,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a662268-c8e6-4e26-89bc-987ca320aaf7', 'name': '', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'network_id': '4ad651f7-dc1e-4a47-890e-5a1344e3cc03', 'ip_version': 4, 'cidr': '42.141.174.128/26', 'allocation_pools': [{'start': '42.141.174.130', 'end': '42.141.174.190'}], 'gateway_ip': '42.141.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.141.174.130', 'tags': [], 'project_id': '6baa4f14aae94845a370bf71620bbc1c'}}
2025-08-19 21:03:35,556 - INFO - Created VN ctest-vn-93890125
2025-08-19 21:03:35,606 - DEBUG - VN ctest-vn-93890125 UUID is 4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:35,750 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900, 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-50392159:ctest-vn-93890125, 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-19 21:03:36,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e7cfa8b-02e4-4e50-988a-06a19aee1f49', 'name': 'ctest-vn-75252900', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'project_id': '6baa4f14aae94845a370bf71620bbc1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f055647-26cf-4da6-8033-94ca0d4ec368'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-vn-75252900'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-policy-allow-all-06890283']], 'subnet_ipam': [{'subnet_cidr': '192.37.164.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 21:03:36,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ad651f7-dc1e-4a47-890e-5a1344e3cc03', 'name': 'ctest-vn-93890125', 'tenant_id': '6baa4f14aae94845a370bf71620bbc1c', 'project_id': '6baa4f14aae94845a370bf71620bbc1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a662268-c8e6-4e26-89bc-987ca320aaf7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-vn-93890125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-policy-allow-all-06890283']], 'subnet_ipam': [{'subnet_cidr': '42.141.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 21:03:36,407 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 21:03:36,698 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 21:03:36,723 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61
2025-08-19 21:03:36,733 - DEBUG - Requesting: http://10.0.0.254:8082/project/6baa4f14-aae9-4845-a370-bf71620bbc1c
2025-08-19 21:03:36,811 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:36,824 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:36,834 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab66d4a3-aaa4-4a36-81fa-89f8131695d3
2025-08-19 21:03:36,839 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab66d4a3-aaa4-4a36-81fa-89f8131695d3
2025-08-19 21:03:36,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3365c35c-cb4c-4fd2-8cd8-2269e4994f79
2025-08-19 21:03:36,852 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 21:03:36,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:36,862 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab66d4a3-aaa4-4a36-81fa-89f8131695d3
2025-08-19 21:03:36,878 - INFO - Verified VN network id 11 for VN 9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:36,878 - INFO - Verifications in API Server for VN ctest-vn-75252900 passed
2025-08-19 21:03:36,878 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:36,885 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab66d4a3-aaa4-4a36-81fa-89f8131695d3
2025-08-19 21:03:36,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab66d4a3-aaa4-4a36-81fa-89f8131695d3
2025-08-19 21:03:36,896 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3365c35c-cb4c-4fd2-8cd8-2269e4994f79
2025-08-19 21:03:36,906 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50392159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11420278230060650064', 'uuid-lslong': '10991605131709914953'}, 'enable': 'true', 'created': '2025-08-19T21:03:34', 'last-modified': '2025-08-19T21:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901282'}
2025-08-19 21:03:36,912 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 21:03:36,912 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75252900 passed
2025-08-19 21:03:36,912 - DEBUG - ====Verifying policy data for ctest-vn-75252900 in API_Server ======
2025-08-19 21:03:36,912 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 21:03:36,918 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61
2025-08-19 21:03:36,926 - DEBUG - Requesting: http://10.0.0.254:8082/project/6baa4f14-aae9-4845-a370-bf71620bbc1c
2025-08-19 21:03:36,997 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9e7cfa8b-02e4-4e50-988a-06a19aee1f49
2025-08-19 21:03:37,005 - DEBUG - ==>Verifying data for policy with id: b6026f80-7851-497a-9cab-05646306cd78, fqn: ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-policy-allow-all-06890283']
2025-08-19 21:03:37,005 - INFO - VN ctest-vn-75252900 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 21:03:37,005 - DEBUG - Verifying the vn in opserver
2025-08-19 21:03:37,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900 virtual network link through opserver 10.0.0.254
2025-08-19 21:03:37,005 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 21:03:37,300 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 21:03:37,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900?flat'}
2025-08-19 21:03:37,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-75252900 is found in opserver
2025-08-19 21:03:37,356 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 21:03:37,362 - DEBUG - VRF ids for VN ctest-vn-75252900: {}
2025-08-19 21:03:37,362 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 21:03:37,367 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61
2025-08-19 21:03:37,376 - DEBUG - Requesting: http://10.0.0.254:8082/project/6baa4f14-aae9-4845-a370-bf71620bbc1c
2025-08-19 21:03:37,441 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbd8b5df-95fe-4231-a601-564c760896cc
2025-08-19 21:03:37,464 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbd8b5df-95fe-4231-a601-564c760896cc
2025-08-19 21:03:37,468 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ea376dac-18fc-4694-bd79-484c08259013
2025-08-19 21:03:37,476 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 21:03:37,477 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,483 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbd8b5df-95fe-4231-a601-564c760896cc
2025-08-19 21:03:37,493 - INFO - Verified VN network id 12 for VN 4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,493 - INFO - Verifications in API Server for VN ctest-vn-93890125 passed
2025-08-19 21:03:37,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,499 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbd8b5df-95fe-4231-a601-564c760896cc
2025-08-19 21:03:37,504 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbd8b5df-95fe-4231-a601-564c760896cc
2025-08-19 21:03:37,509 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ea376dac-18fc-4694-bd79-484c08259013
2025-08-19 21:03:37,518 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-93890125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50392159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5392587728814492231', 'uuid-lslong': '9875930071676734467'}, 'enable': 'true', 'created': '2025-08-19T21:03:35', 'last-modified': '2025-08-19T21:03:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295195'}
2025-08-19 21:03:37,522 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 21:03:37,522 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93890125 passed
2025-08-19 21:03:37,522 - DEBUG - ====Verifying policy data for ctest-vn-93890125 in API_Server ======
2025-08-19 21:03:37,523 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 21:03:37,526 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61
2025-08-19 21:03:37,534 - DEBUG - Requesting: http://10.0.0.254:8082/project/6baa4f14-aae9-4845-a370-bf71620bbc1c
2025-08-19 21:03:37,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4ad651f7-dc1e-4a47-890e-5a1344e3cc03
2025-08-19 21:03:37,609 - DEBUG - ==>Verifying data for policy with id: b6026f80-7851-497a-9cab-05646306cd78, fqn: ['default-domain', 'ctest-TestBasicPolicy-50392159', 'ctest-policy-allow-all-06890283']
2025-08-19 21:03:37,609 - INFO - VN ctest-vn-93890125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 21:03:37,609 - DEBUG - Verifying the vn in opserver
2025-08-19 21:03:37,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-93890125 virtual network link through opserver 10.0.0.254
2025-08-19 21:03:37,609 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 21:03:37,617 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-93890125', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-93890125?flat'}
2025-08-19 21:03:37,617 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50392159:ctest-vn-93890125 is found in opserver
2025-08-19 21:03:37,626 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 21:03:37,629 - DEBUG - VRF ids for VN ctest-vn-93890125: {}
2025-08-19 21:03:37,681 - DEBUG - Services list from nova: [