2025-06-22 18:23:36,366 - INFO - Domain Default found not creating
2025-06-22 18:23:36,502 - INFO - Project ctest-TestBasicPolicy-96684972 not found, creating it
2025-06-22 18:23:36,963 - INFO - Created Project:ctest-TestBasicPolicy-96684972, ID : ba849877-d4b4-46e5-bc82-f6e32059224d
2025-06-22 18:23:38,375 - INFO - ================================================================================
2025-06-22 18:23:38,376 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-22 18:23:38,376 - 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-06-22 18:23:38,631 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-22 18:23:38,631 - INFO - Initial checks done. Running the testcase now
2025-06-22 18:23:38,631 - INFO -
2025-06-22 18:23:39,193 - DEBUG - Response for create_network : {'network': {'id': 'a8756ccf-3309-4898-9127-c5c3ae3c710b', 'name': 'ctest-vn-97836455', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'project_id': 'ba849877d4b446e5bc82f6e32059224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-vn-97836455'], 'port_security_enabled': True, 'description': ''}}
2025-06-22 18:23:39,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a85b1fa-8c9c-4b41-b94e-55e2e3b020b5', 'name': '', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'network_id': 'a8756ccf-3309-4898-9127-c5c3ae3c710b', 'ip_version': 4, 'cidr': '187.30.16.64/26', 'allocation_pools': [{'start': '187.30.16.66', 'end': '187.30.16.126'}], 'gateway_ip': '187.30.16.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.30.16.66', 'tags': [], 'project_id': 'ba849877d4b446e5bc82f6e32059224d'}}
2025-06-22 18:23:39,437 - INFO - Created VN ctest-vn-97836455
2025-06-22 18:23:39,491 - DEBUG - VN ctest-vn-97836455 UUID is a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:39,829 - DEBUG - Response for create_network : {'network': {'id': 'aeaa2def-560d-47c2-bd2a-7c902563ffec', 'name': 'ctest-vn-04098166', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'project_id': 'ba849877d4b446e5bc82f6e32059224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-vn-04098166'], 'port_security_enabled': True, 'description': ''}}
2025-06-22 18:23:40,030 - DEBUG - Response for create_subnet : {'subnet': {'id': '159d6a82-3b42-4781-9352-b2f6e2430816', 'name': '', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'network_id': 'aeaa2def-560d-47c2-bd2a-7c902563ffec', 'ip_version': 4, 'cidr': '106.92.106.192/26', 'allocation_pools': [{'start': '106.92.106.194', 'end': '106.92.106.254'}], 'gateway_ip': '106.92.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.92.106.194', 'tags': [], 'project_id': 'ba849877d4b446e5bc82f6e32059224d'}}
2025-06-22 18:23:40,171 - INFO - Created VN ctest-vn-04098166
2025-06-22 18:23:40,223 - DEBUG - VN ctest-vn-04098166 UUID is aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:40,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455, 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-96684972:ctest-vn-04098166, 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-06-22 18:23:40,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8756ccf-3309-4898-9127-c5c3ae3c710b', 'name': 'ctest-vn-97836455', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'project_id': 'ba849877d4b446e5bc82f6e32059224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a85b1fa-8c9c-4b41-b94e-55e2e3b020b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-vn-97836455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-policy-allow-all-29608199']], 'subnet_ipam': [{'subnet_cidr': '187.30.16.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-22 18:23:40,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aeaa2def-560d-47c2-bd2a-7c902563ffec', 'name': 'ctest-vn-04098166', 'tenant_id': 'ba849877d4b446e5bc82f6e32059224d', 'project_id': 'ba849877d4b446e5bc82f6e32059224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['159d6a82-3b42-4781-9352-b2f6e2430816'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-vn-04098166'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-policy-allow-all-29608199']], 'subnet_ipam': [{'subnet_cidr': '106.92.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-22 18:23:41,107 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-22 18:23:41,406 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-22 18:23:41,434 - DEBUG - Requesting: http://10.0.0.254:8082/domain/93ab230e-1fe9-47d2-82b8-58d3f9c5589e
2025-06-22 18:23:41,447 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba849877-d4b4-46e5-bc82-f6e32059224d
2025-06-22 18:23:41,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,533 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d783fdc8-51de-4e32-9bc9-0fb7d7a466c0
2025-06-22 18:23:41,551 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d783fdc8-51de-4e32-9bc9-0fb7d7a466c0
2025-06-22 18:23:41,558 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2c489cb9-aeac-4644-b4b2-af3d22bf999e
2025-06-22 18:23:41,565 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-22 18:23:41,565 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,573 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d783fdc8-51de-4e32-9bc9-0fb7d7a466c0
2025-06-22 18:23:41,588 - INFO - Verified VN network id 8 for VN a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,588 - INFO - Verifications in API Server for VN ctest-vn-97836455 passed
2025-06-22 18:23:41,588 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d783fdc8-51de-4e32-9bc9-0fb7d7a466c0
2025-06-22 18:23:41,604 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d783fdc8-51de-4e32-9bc9-0fb7d7a466c0
2025-06-22 18:23:41,611 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2c489cb9-aeac-4644-b4b2-af3d22bf999e
2025-06-22 18:23:41,622 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96684972', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12138728007817316504', 'uuid-lslong': '10459546103823757579'}, 'enable': 'true', 'created': '2025-06-22T18:23:39', 'last-modified': '2025-06-22T18:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971822'}
2025-06-22 18:23:41,628 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-22 18:23:41,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97836455 passed
2025-06-22 18:23:41,629 - DEBUG - ====Verifying policy data for ctest-vn-97836455 in API_Server ======
2025-06-22 18:23:41,629 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-22 18:23:41,634 - DEBUG - Requesting: http://10.0.0.254:8082/domain/93ab230e-1fe9-47d2-82b8-58d3f9c5589e
2025-06-22 18:23:41,644 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba849877-d4b4-46e5-bc82-f6e32059224d
2025-06-22 18:23:41,719 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a8756ccf-3309-4898-9127-c5c3ae3c710b
2025-06-22 18:23:41,729 - DEBUG - ==>Verifying data for policy with id: d0c1b256-8171-439b-9cb1-3767a419ad3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-policy-allow-all-29608199']
2025-06-22 18:23:41,729 - INFO - VN ctest-vn-97836455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-22 18:23:41,729 - DEBUG - Verifying the vn in opserver
2025-06-22 18:23:41,729 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455 virtual network link through opserver 10.0.0.254
2025-06-22 18:23:41,729 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-22 18:23:42,025 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-22 18:23:42,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455?flat'}
2025-06-22 18:23:42,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-97836455 is found in opserver
2025-06-22 18:23:42,088 - DEBUG - Do not have enough data to verify VN in agent
2025-06-22 18:23:42,092 - DEBUG - VRF ids for VN ctest-vn-97836455: {}
2025-06-22 18:23:42,092 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-22 18:23:42,098 - DEBUG - Requesting: http://10.0.0.254:8082/domain/93ab230e-1fe9-47d2-82b8-58d3f9c5589e
2025-06-22 18:23:42,110 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba849877-d4b4-46e5-bc82-f6e32059224d
2025-06-22 18:23:42,184 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,195 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d54621cb-4101-47de-b270-3fabe9921297
2025-06-22 18:23:42,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d54621cb-4101-47de-b270-3fabe9921297
2025-06-22 18:23:42,217 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7ed4ad1-d2c9-4c47-8b99-ab3284ff891b
2025-06-22 18:23:42,223 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-22 18:23:42,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d54621cb-4101-47de-b270-3fabe9921297
2025-06-22 18:23:42,245 - INFO - Verified VN network id 9 for VN aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,245 - INFO - Verifications in API Server for VN ctest-vn-04098166 passed
2025-06-22 18:23:42,245 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,254 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d54621cb-4101-47de-b270-3fabe9921297
2025-06-22 18:23:42,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d54621cb-4101-47de-b270-3fabe9921297
2025-06-22 18:23:42,267 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7ed4ad1-d2c9-4c47-8b99-ab3284ff891b
2025-06-22 18:23:42,277 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-04098166', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96684972', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12585922614604416962', 'uuid-lslong': '13630844180734672876'}, 'enable': 'true', 'created': '2025-06-22T18:23:39', 'last-modified': '2025-06-22T18:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394004'}
2025-06-22 18:23:42,284 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-22 18:23:42,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04098166 passed
2025-06-22 18:23:42,284 - DEBUG - ====Verifying policy data for ctest-vn-04098166 in API_Server ======
2025-06-22 18:23:42,284 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-22 18:23:42,289 - DEBUG - Requesting: http://10.0.0.254:8082/domain/93ab230e-1fe9-47d2-82b8-58d3f9c5589e
2025-06-22 18:23:42,301 - DEBUG - Requesting: http://10.0.0.254:8082/project/ba849877-d4b4-46e5-bc82-f6e32059224d
2025-06-22 18:23:42,377 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeaa2def-560d-47c2-bd2a-7c902563ffec
2025-06-22 18:23:42,387 - DEBUG - ==>Verifying data for policy with id: d0c1b256-8171-439b-9cb1-3767a419ad3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-96684972', 'ctest-policy-allow-all-29608199']
2025-06-22 18:23:42,387 - INFO - VN ctest-vn-04098166 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-22 18:23:42,387 - DEBUG - Verifying the vn in opserver
2025-06-22 18:23:42,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-04098166 virtual network link through opserver 10.0.0.254
2025-06-22 18:23:42,387 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-22 18:23:42,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-04098166', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-04098166?flat'}
2025-06-22 18:23:42,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96684972:ctest-vn-04098166 is found in opserver
2025-06-22 18:23:42,407 - DEBUG - Do not have enough data to verify VN in agent
2025-06-22 18:23:42,412 - DEBUG - VRF ids for VN ctest-vn-04098166: {}
2025-06-22 18:23:42,464 - DEBUG - Services list from nova: [