2025-07-21 12:12:36,135 - INFO - Domain Default found not creating
2025-07-21 12:12:36,282 - INFO - Project ctest-TestBasicPolicy-17579895 not found, creating it
2025-07-21 12:12:36,746 - INFO - Created Project:ctest-TestBasicPolicy-17579895, ID : d9b78916-8e42-457f-b8aa-2d09115be924
2025-07-21 12:12:38,164 - INFO - ================================================================================
2025-07-21 12:12:38,164 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 12:12:38,164 - 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-07-21 12:12:38,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-07-21 12:12:38,423 - INFO - Initial checks done. Running the testcase now
2025-07-21 12:12:38,423 - INFO -
2025-07-21 12:12:38,981 - DEBUG - Response for create_network : {'network': {'id': 'c6454f43-eafe-4853-910d-6d3a9bc63ff8', 'name': 'ctest-vn-37498650', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'project_id': 'd9b789168e42457fb8aa2d09115be924', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-vn-37498650'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:12:39,164 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9c06e4b-0cf0-40df-80d9-b2208f6e3ad4', 'name': '', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'network_id': 'c6454f43-eafe-4853-910d-6d3a9bc63ff8', 'ip_version': 4, 'cidr': '163.73.197.192/26', 'allocation_pools': [{'start': '163.73.197.194', 'end': '163.73.197.254'}], 'gateway_ip': '163.73.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.73.197.194', 'tags': [], 'project_id': 'd9b789168e42457fb8aa2d09115be924'}}
2025-07-21 12:12:39,182 - INFO - Created VN ctest-vn-37498650
2025-07-21 12:12:39,234 - DEBUG - VN ctest-vn-37498650 UUID is c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:39,531 - DEBUG - Response for create_network : {'network': {'id': '9141a361-0161-4790-ae11-b24574a8ed19', 'name': 'ctest-vn-17808537', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'project_id': 'd9b789168e42457fb8aa2d09115be924', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-vn-17808537'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:12:39,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba7f6b63-0204-421b-81da-7ab694e6b7ae', 'name': '', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'network_id': '9141a361-0161-4790-ae11-b24574a8ed19', 'ip_version': 4, 'cidr': '21.154.17.0/26', 'allocation_pools': [{'start': '21.154.17.2', 'end': '21.154.17.62'}], 'gateway_ip': '21.154.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.154.17.2', 'tags': [], 'project_id': 'd9b789168e42457fb8aa2d09115be924'}}
2025-07-21 12:12:39,706 - INFO - Created VN ctest-vn-17808537
2025-07-21 12:12:39,758 - DEBUG - VN ctest-vn-17808537 UUID is 9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:39,910 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650, 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-17579895:ctest-vn-17808537, 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-07-21 12:12:40,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6454f43-eafe-4853-910d-6d3a9bc63ff8', 'name': 'ctest-vn-37498650', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'project_id': 'd9b789168e42457fb8aa2d09115be924', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9c06e4b-0cf0-40df-80d9-b2208f6e3ad4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-vn-37498650'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-policy-allow-all-13175130']], 'subnet_ipam': [{'subnet_cidr': '163.73.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:12:40,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9141a361-0161-4790-ae11-b24574a8ed19', 'name': 'ctest-vn-17808537', 'tenant_id': 'd9b789168e42457fb8aa2d09115be924', 'project_id': 'd9b789168e42457fb8aa2d09115be924', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba7f6b63-0204-421b-81da-7ab694e6b7ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-vn-17808537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-policy-allow-all-13175130']], 'subnet_ipam': [{'subnet_cidr': '21.154.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:12:40,630 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-21 12:12:40,938 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-21 12:12:40,968 - DEBUG - Requesting: http://10.0.0.65:8082/domain/a39917a0-d3a9-4bc6-a909-11160314c285
2025-07-21 12:12:40,982 - DEBUG - Requesting: http://10.0.0.65:8082/project/d9b78916-8e42-457f-b8aa-2d09115be924
2025-07-21 12:12:41,056 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,067 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,077 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/200d49c7-96dd-4713-b975-ee188707c3bb
2025-07-21 12:12:41,087 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/200d49c7-96dd-4713-b975-ee188707c3bb
2025-07-21 12:12:41,094 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7f7af07d-c8b7-4f62-977f-4a5052e56a9a
2025-07-21 12:12:41,102 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:12:41,102 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,112 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/200d49c7-96dd-4713-b975-ee188707c3bb
2025-07-21 12:12:41,127 - INFO - Verified VN network id 8 for VN c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,128 - INFO - Verifications in API Server for VN ctest-vn-37498650 passed
2025-07-21 12:12:41,128 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,138 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/200d49c7-96dd-4713-b975-ee188707c3bb
2025-07-21 12:12:41,146 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/200d49c7-96dd-4713-b975-ee188707c3bb
2025-07-21 12:12:41,154 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7f7af07d-c8b7-4f62-977f-4a5052e56a9a
2025-07-21 12:12:41,167 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17579895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14286912546026702931', 'uuid-lslong': '10452130408685780984'}, 'enable': 'true', 'created': '2025-07-21T12:12:38', 'last-modified': '2025-07-21T12:12:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974842'}
2025-07-21 12:12:41,175 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:12:41,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37498650 passed
2025-07-21 12:12:41,175 - DEBUG - ====Verifying policy data for ctest-vn-37498650 in API_Server ======
2025-07-21 12:12:41,175 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-21 12:12:41,181 - DEBUG - Requesting: http://10.0.0.65:8082/domain/a39917a0-d3a9-4bc6-a909-11160314c285
2025-07-21 12:12:41,193 - DEBUG - Requesting: http://10.0.0.65:8082/project/d9b78916-8e42-457f-b8aa-2d09115be924
2025-07-21 12:12:41,263 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c6454f43-eafe-4853-910d-6d3a9bc63ff8
2025-07-21 12:12:41,274 - DEBUG - ==>Verifying data for policy with id: 09e8b8fe-b5cb-49b0-95c1-d0b4edcd4513, fqn: ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-policy-allow-all-13175130']
2025-07-21 12:12:41,274 - INFO - VN ctest-vn-37498650 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:12:41,274 - DEBUG - Verifying the vn in opserver
2025-07-21 12:12:41,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650 virtual network link through opserver 10.0.0.65
2025-07-21 12:12:41,275 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-21 12:12:41,563 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-21 12:12:41,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650?flat'}
2025-07-21 12:12:41,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-37498650 is found in opserver
2025-07-21 12:12:41,631 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:12:41,636 - DEBUG - VRF ids for VN ctest-vn-37498650: {}
2025-07-21 12:12:41,636 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-21 12:12:41,642 - DEBUG - Requesting: http://10.0.0.65:8082/domain/a39917a0-d3a9-4bc6-a909-11160314c285
2025-07-21 12:12:41,654 - DEBUG - Requesting: http://10.0.0.65:8082/project/d9b78916-8e42-457f-b8aa-2d09115be924
2025-07-21 12:12:41,724 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,738 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,748 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7c0290d3-be1a-4420-80b7-490d4c19b90b
2025-07-21 12:12:41,756 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7c0290d3-be1a-4420-80b7-490d4c19b90b
2025-07-21 12:12:41,763 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e917f129-11a9-459c-acf0-4edd2c494fc1
2025-07-21 12:12:41,771 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:12:41,771 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,784 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7c0290d3-be1a-4420-80b7-490d4c19b90b
2025-07-21 12:12:41,800 - INFO - Verified VN network id 9 for VN 9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,800 - INFO - Verifications in API Server for VN ctest-vn-17808537 passed
2025-07-21 12:12:41,800 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,810 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7c0290d3-be1a-4420-80b7-490d4c19b90b
2025-07-21 12:12:41,818 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7c0290d3-be1a-4420-80b7-490d4c19b90b
2025-07-21 12:12:41,825 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e917f129-11a9-459c-acf0-4edd2c494fc1
2025-07-21 12:12:41,838 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-17808537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17579895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10466826646016051088', 'uuid-lslong': '12543002448583257369'}, 'enable': 'true', 'created': '2025-07-21T12:12:39', 'last-modified': '2025-07-21T12:12:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398326'}
2025-07-21 12:12:41,844 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:12:41,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17808537 passed
2025-07-21 12:12:41,845 - DEBUG - ====Verifying policy data for ctest-vn-17808537 in API_Server ======
2025-07-21 12:12:41,845 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-21 12:12:41,850 - DEBUG - Requesting: http://10.0.0.65:8082/domain/a39917a0-d3a9-4bc6-a909-11160314c285
2025-07-21 12:12:41,863 - DEBUG - Requesting: http://10.0.0.65:8082/project/d9b78916-8e42-457f-b8aa-2d09115be924
2025-07-21 12:12:41,932 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/9141a361-0161-4790-ae11-b24574a8ed19
2025-07-21 12:12:41,943 - DEBUG - ==>Verifying data for policy with id: 09e8b8fe-b5cb-49b0-95c1-d0b4edcd4513, fqn: ['default-domain', 'ctest-TestBasicPolicy-17579895', 'ctest-policy-allow-all-13175130']
2025-07-21 12:12:41,943 - INFO - VN ctest-vn-17808537 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:12:41,943 - DEBUG - Verifying the vn in opserver
2025-07-21 12:12:41,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-17808537 virtual network link through opserver 10.0.0.65
2025-07-21 12:12:41,943 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-21 12:12:41,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-17808537', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-17808537?flat'}
2025-07-21 12:12:41,954 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17579895:ctest-vn-17808537 is found in opserver
2025-07-21 12:12:41,966 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:12:41,971 - DEBUG - VRF ids for VN ctest-vn-17808537: {}
2025-07-21 12:12:42,028 - DEBUG - Services list from nova: [