2025-10-21 17:39:56,932 - INFO - Domain Default found not creating
2025-10-21 17:39:57,093 - INFO - Project ctest-TestBasicPolicy-03866024 not found, creating it
2025-10-21 17:39:57,532 - INFO - Created Project:ctest-TestBasicPolicy-03866024, ID : 89f09463-e5b4-4763-ad99-386d9ce88902
2025-10-21 17:39:59,072 - INFO - ================================================================================
2025-10-21 17:39:59,072 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 17:39:59,072 - 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-10-21 17:39:59,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-21 17:39:59,326 - INFO - Initial checks done. Running the testcase now
2025-10-21 17:39:59,326 - INFO -
2025-10-21 17:39:59,965 - DEBUG - Response for create_network : {'network': {'id': '5bb51954-6666-457a-af1c-3fd5e62e9a60', 'name': 'ctest-vn-35212993', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'project_id': '89f09463e5b44763ad99386d9ce88902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-vn-35212993'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:40:00,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7893b1-2ea3-4879-a966-021a16ef8b03', 'name': '', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'network_id': '5bb51954-6666-457a-af1c-3fd5e62e9a60', 'ip_version': 4, 'cidr': '108.58.69.64/26', 'allocation_pools': [{'start': '108.58.69.66', 'end': '108.58.69.126'}], 'gateway_ip': '108.58.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.58.69.66', 'tags': [], 'project_id': '89f09463e5b44763ad99386d9ce88902'}}
2025-10-21 17:40:00,175 - INFO - Created VN ctest-vn-35212993
2025-10-21 17:40:00,233 - DEBUG - VN ctest-vn-35212993 UUID is 5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:00,541 - DEBUG - Response for create_network : {'network': {'id': '80d013b7-cbcc-47b1-8da2-34bd8c5602d3', 'name': 'ctest-vn-68219699', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'project_id': '89f09463e5b44763ad99386d9ce88902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-vn-68219699'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:40:00,777 - DEBUG - Response for create_subnet : {'subnet': {'id': '4723d3c5-5ee6-4709-b3f2-cf75c261d56c', 'name': '', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'network_id': '80d013b7-cbcc-47b1-8da2-34bd8c5602d3', 'ip_version': 4, 'cidr': '138.106.206.0/26', 'allocation_pools': [{'start': '138.106.206.2', 'end': '138.106.206.62'}], 'gateway_ip': '138.106.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.106.206.2', 'tags': [], 'project_id': '89f09463e5b44763ad99386d9ce88902'}}
2025-10-21 17:40:00,797 - INFO - Created VN ctest-vn-68219699
2025-10-21 17:40:00,853 - DEBUG - VN ctest-vn-68219699 UUID is 80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:01,008 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993, 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-03866024:ctest-vn-68219699, 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-10-21 17:40:01,310 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bb51954-6666-457a-af1c-3fd5e62e9a60', 'name': 'ctest-vn-35212993', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'project_id': '89f09463e5b44763ad99386d9ce88902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e7893b1-2ea3-4879-a966-021a16ef8b03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-vn-35212993'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-policy-allow-all-76171286']], 'subnet_ipam': [{'subnet_cidr': '108.58.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:40:01,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80d013b7-cbcc-47b1-8da2-34bd8c5602d3', 'name': 'ctest-vn-68219699', 'tenant_id': '89f09463e5b44763ad99386d9ce88902', 'project_id': '89f09463e5b44763ad99386d9ce88902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4723d3c5-5ee6-4709-b3f2-cf75c261d56c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-vn-68219699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-policy-allow-all-76171286']], 'subnet_ipam': [{'subnet_cidr': '138.106.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:40:01,733 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 17:40:02,064 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 17:40:02,093 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d3847469-1e39-4950-8ecc-fc5de392e31b
2025-10-21 17:40:02,105 - DEBUG - Requesting: http://10.0.0.254:8082/project/89f09463-e5b4-4763-ad99-386d9ce88902
2025-10-21 17:40:02,181 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,193 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,204 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11b0d1a4-6c40-4bc4-b457-e6e0cb2a0890
2025-10-21 17:40:02,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11b0d1a4-6c40-4bc4-b457-e6e0cb2a0890
2025-10-21 17:40:02,219 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dbdfc7e4-434e-49c6-90de-59ad9da30ea9
2025-10-21 17:40:02,226 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:40:02,226 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,234 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11b0d1a4-6c40-4bc4-b457-e6e0cb2a0890
2025-10-21 17:40:02,247 - INFO - Verified VN network id 11 for VN 5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,247 - INFO - Verifications in API Server for VN ctest-vn-35212993 passed
2025-10-21 17:40:02,247 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11b0d1a4-6c40-4bc4-b457-e6e0cb2a0890
2025-10-21 17:40:02,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11b0d1a4-6c40-4bc4-b457-e6e0cb2a0890
2025-10-21 17:40:02,266 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dbdfc7e4-434e-49c6-90de-59ad9da30ea9
2025-10-21 17:40:02,276 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03866024', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6608215878521996666', 'uuid-lslong': '12618030443907684960'}, 'enable': 'true', 'created': '2025-10-21T17:39:59', 'last-modified': '2025-10-21T17:40:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993026'}
2025-10-21 17:40:02,282 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:40:02,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35212993 passed
2025-10-21 17:40:02,283 - DEBUG - ====Verifying policy data for ctest-vn-35212993 in API_Server ======
2025-10-21 17:40:02,283 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 17:40:02,288 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d3847469-1e39-4950-8ecc-fc5de392e31b
2025-10-21 17:40:02,298 - DEBUG - Requesting: http://10.0.0.254:8082/project/89f09463-e5b4-4763-ad99-386d9ce88902
2025-10-21 17:40:02,366 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bb51954-6666-457a-af1c-3fd5e62e9a60
2025-10-21 17:40:02,374 - DEBUG - ==>Verifying data for policy with id: de1d6ed3-41ce-4e00-823b-c59cd96cd0b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-policy-allow-all-76171286']
2025-10-21 17:40:02,374 - INFO - VN ctest-vn-35212993 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:40:02,374 - DEBUG - Verifying the vn in opserver
2025-10-21 17:40:02,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993 virtual network link through opserver 10.0.0.254
2025-10-21 17:40:02,375 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 17:40:02,708 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 17:40:02,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993?flat'}
2025-10-21 17:40:02,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-35212993 is found in opserver
2025-10-21 17:40:02,779 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:40:02,784 - DEBUG - VRF ids for VN ctest-vn-35212993: {}
2025-10-21 17:40:02,784 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 17:40:02,790 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d3847469-1e39-4950-8ecc-fc5de392e31b
2025-10-21 17:40:02,805 - DEBUG - Requesting: http://10.0.0.254:8082/project/89f09463-e5b4-4763-ad99-386d9ce88902
2025-10-21 17:40:02,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:02,889 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:02,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fda681e1-97b5-4345-b780-396e91f2f23a
2025-10-21 17:40:02,908 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fda681e1-97b5-4345-b780-396e91f2f23a
2025-10-21 17:40:02,915 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6eca1a8d-068e-4e59-a017-986d4e83e502
2025-10-21 17:40:02,922 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:40:02,922 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:02,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fda681e1-97b5-4345-b780-396e91f2f23a
2025-10-21 17:40:02,943 - INFO - Verified VN network id 12 for VN 80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:02,943 - INFO - Verifications in API Server for VN ctest-vn-68219699 passed
2025-10-21 17:40:02,943 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:02,951 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fda681e1-97b5-4345-b780-396e91f2f23a
2025-10-21 17:40:02,957 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fda681e1-97b5-4345-b780-396e91f2f23a
2025-10-21 17:40:02,963 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6eca1a8d-068e-4e59-a017-986d4e83e502
2025-10-21 17:40:02,973 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-68219699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03866024', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9281940512129697713', 'uuid-lslong': '10205777694282875603'}, 'enable': 'true', 'created': '2025-10-21T17:40:00', 'last-modified': '2025-10-21T17:40:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450241'}
2025-10-21 17:40:02,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:40:02,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68219699 passed
2025-10-21 17:40:02,979 - DEBUG - ====Verifying policy data for ctest-vn-68219699 in API_Server ======
2025-10-21 17:40:02,979 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 17:40:02,986 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d3847469-1e39-4950-8ecc-fc5de392e31b
2025-10-21 17:40:02,996 - DEBUG - Requesting: http://10.0.0.254:8082/project/89f09463-e5b4-4763-ad99-386d9ce88902
2025-10-21 17:40:03,068 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/80d013b7-cbcc-47b1-8da2-34bd8c5602d3
2025-10-21 17:40:03,077 - DEBUG - ==>Verifying data for policy with id: de1d6ed3-41ce-4e00-823b-c59cd96cd0b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03866024', 'ctest-policy-allow-all-76171286']
2025-10-21 17:40:03,078 - INFO - VN ctest-vn-68219699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:40:03,078 - DEBUG - Verifying the vn in opserver
2025-10-21 17:40:03,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-68219699 virtual network link through opserver 10.0.0.254
2025-10-21 17:40:03,078 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 17:40:03,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-68219699', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-68219699?flat'}
2025-10-21 17:40:03,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03866024:ctest-vn-68219699 is found in opserver
2025-10-21 17:40:03,097 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:40:03,102 - DEBUG - VRF ids for VN ctest-vn-68219699: {}
2025-10-21 17:40:03,157 - DEBUG - Services list from nova: [