2025-07-15 16:36:11,919 - INFO - Domain Default found not creating
2025-07-15 16:36:12,092 - INFO - Project ctest-TestBasicPolicy-78932198 not found, creating it
2025-07-15 16:36:12,586 - INFO - Created Project:ctest-TestBasicPolicy-78932198, ID : 0c27fd20-cd7d-4963-888c-12f8851ae8ad
2025-07-15 16:36:14,180 - INFO - ================================================================================
2025-07-15 16:36:14,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-15 16:36:14,181 - 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-15 16:36:14,436 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-15 16:36:14,436 - INFO - Initial checks done. Running the testcase now
2025-07-15 16:36:14,436 - INFO -
2025-07-15 16:36:15,050 - DEBUG - Response for create_network : {'network': {'id': 'fbe4a79b-c2c4-4aab-b370-b0de9598c842', 'name': 'ctest-vn-39251649', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-vn-39251649'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:36:15,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '3db15a30-fc4a-4346-9510-2793f5328075', 'name': '', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'network_id': 'fbe4a79b-c2c4-4aab-b370-b0de9598c842', 'ip_version': 4, 'cidr': '54.247.135.128/26', 'allocation_pools': [{'start': '54.247.135.130', 'end': '54.247.135.190'}], 'gateway_ip': '54.247.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.247.135.130', 'tags': [], 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad'}}
2025-07-15 16:36:15,244 - INFO - Created VN ctest-vn-39251649
2025-07-15 16:36:15,297 - DEBUG - VN ctest-vn-39251649 UUID is fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:15,649 - DEBUG - Response for create_network : {'network': {'id': '8c85ea7a-ea99-49cd-ac45-4854f46208e1', 'name': 'ctest-vn-39528464', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-vn-39528464'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:36:15,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c31ab0c2-dfaf-4e2b-97dc-5f6b206eeeb9', 'name': '', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'network_id': '8c85ea7a-ea99-49cd-ac45-4854f46208e1', 'ip_version': 4, 'cidr': '15.77.5.64/26', 'allocation_pools': [{'start': '15.77.5.66', 'end': '15.77.5.126'}], 'gateway_ip': '15.77.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.77.5.66', 'tags': [], 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad'}}
2025-07-15 16:36:15,896 - INFO - Created VN ctest-vn-39528464
2025-07-15 16:36:15,953 - DEBUG - VN ctest-vn-39528464 UUID is 8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:16,083 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649, 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-78932198:ctest-vn-39528464, 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-15 16:36:16,390 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbe4a79b-c2c4-4aab-b370-b0de9598c842', 'name': 'ctest-vn-39251649', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3db15a30-fc4a-4346-9510-2793f5328075'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-vn-39251649'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-policy-allow-all-09969926']], 'subnet_ipam': [{'subnet_cidr': '54.247.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:36:16,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c85ea7a-ea99-49cd-ac45-4854f46208e1', 'name': 'ctest-vn-39528464', 'tenant_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'project_id': '0c27fd20cd7d4963888c12f8851ae8ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c31ab0c2-dfaf-4e2b-97dc-5f6b206eeeb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-vn-39528464'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-policy-allow-all-09969926']], 'subnet_ipam': [{'subnet_cidr': '15.77.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 16:36:16,813 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 16:36:17,123 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 16:36:17,161 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6b7d9eb-2a2a-4501-b2d6-f326d1ef284b
2025-07-15 16:36:17,176 - DEBUG - Requesting: http://10.0.0.50:8082/project/0c27fd20-cd7d-4963-888c-12f8851ae8ad
2025-07-15 16:36:17,254 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,280 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a50351-2993-43ea-adc6-adf71290b7dc
2025-07-15 16:36:17,290 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a50351-2993-43ea-adc6-adf71290b7dc
2025-07-15 16:36:17,305 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0be4a0e6-3360-4248-a782-7d21d84f85b5
2025-07-15 16:36:17,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 16:36:17,316 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a50351-2993-43ea-adc6-adf71290b7dc
2025-07-15 16:36:17,349 - INFO - Verified VN network id 8 for VN fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,349 - INFO - Verifications in API Server for VN ctest-vn-39251649 passed
2025-07-15 16:36:17,349 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a50351-2993-43ea-adc6-adf71290b7dc
2025-07-15 16:36:17,374 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/46a50351-2993-43ea-adc6-adf71290b7dc
2025-07-15 16:36:17,386 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0be4a0e6-3360-4248-a782-7d21d84f85b5
2025-07-15 16:36:17,400 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78932198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18150816685639355051', 'uuid-lslong': '12930029000219740226'}, 'enable': 'true', 'created': '2025-07-15T16:36:15', 'last-modified': '2025-07-15T16:36:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020742'}
2025-07-15 16:36:17,409 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 16:36:17,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39251649 passed
2025-07-15 16:36:17,410 - DEBUG - ====Verifying policy data for ctest-vn-39251649 in API_Server ======
2025-07-15 16:36:17,410 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 16:36:17,420 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6b7d9eb-2a2a-4501-b2d6-f326d1ef284b
2025-07-15 16:36:17,436 - DEBUG - Requesting: http://10.0.0.50:8082/project/0c27fd20-cd7d-4963-888c-12f8851ae8ad
2025-07-15 16:36:17,527 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fbe4a79b-c2c4-4aab-b370-b0de9598c842
2025-07-15 16:36:17,542 - DEBUG - ==>Verifying data for policy with id: c1d76032-7ec5-4e20-95da-2eb53b35dcca, fqn: ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-policy-allow-all-09969926']
2025-07-15 16:36:17,542 - INFO - VN ctest-vn-39251649 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 16:36:17,543 - DEBUG - Verifying the vn in opserver
2025-07-15 16:36:17,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649 virtual network link through opserver 10.0.0.50
2025-07-15 16:36:17,543 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 16:36:17,841 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 16:36:17,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649?flat'}
2025-07-15 16:36:17,908 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39251649 is found in opserver
2025-07-15 16:36:17,921 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 16:36:17,927 - DEBUG - VRF ids for VN ctest-vn-39251649: {}
2025-07-15 16:36:17,927 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 16:36:17,936 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6b7d9eb-2a2a-4501-b2d6-f326d1ef284b
2025-07-15 16:36:17,950 - DEBUG - Requesting: http://10.0.0.50:8082/project/0c27fd20-cd7d-4963-888c-12f8851ae8ad
2025-07-15 16:36:18,030 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,044 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,055 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9a206a4-6e6e-4225-9315-a7d012f02a30
2025-07-15 16:36:18,065 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9a206a4-6e6e-4225-9315-a7d012f02a30
2025-07-15 16:36:18,075 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/abd19c19-3344-4783-9c66-2b88f17e128f
2025-07-15 16:36:18,084 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 16:36:18,084 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,098 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9a206a4-6e6e-4225-9315-a7d012f02a30
2025-07-15 16:36:18,116 - INFO - Verified VN network id 9 for VN 8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,116 - INFO - Verifications in API Server for VN ctest-vn-39528464 passed
2025-07-15 16:36:18,116 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,128 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9a206a4-6e6e-4225-9315-a7d012f02a30
2025-07-15 16:36:18,139 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9a206a4-6e6e-4225-9315-a7d012f02a30
2025-07-15 16:36:18,147 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/abd19c19-3344-4783-9c66-2b88f17e128f
2025-07-15 16:36:18,162 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39528464', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78932198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10125757150855252429', 'uuid-lslong': '12413407477631158497'}, 'enable': 'true', 'created': '2025-07-15T16:36:15', 'last-modified': '2025-07-15T16:36:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.549083'}
2025-07-15 16:36:18,169 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 16:36:18,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39528464 passed
2025-07-15 16:36:18,170 - DEBUG - ====Verifying policy data for ctest-vn-39528464 in API_Server ======
2025-07-15 16:36:18,170 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 16:36:18,179 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6b7d9eb-2a2a-4501-b2d6-f326d1ef284b
2025-07-15 16:36:18,193 - DEBUG - Requesting: http://10.0.0.50:8082/project/0c27fd20-cd7d-4963-888c-12f8851ae8ad
2025-07-15 16:36:18,273 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c85ea7a-ea99-49cd-ac45-4854f46208e1
2025-07-15 16:36:18,284 - DEBUG - ==>Verifying data for policy with id: c1d76032-7ec5-4e20-95da-2eb53b35dcca, fqn: ['default-domain', 'ctest-TestBasicPolicy-78932198', 'ctest-policy-allow-all-09969926']
2025-07-15 16:36:18,284 - INFO - VN ctest-vn-39528464 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 16:36:18,285 - DEBUG - Verifying the vn in opserver
2025-07-15 16:36:18,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39528464 virtual network link through opserver 10.0.0.50
2025-07-15 16:36:18,285 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 16:36:18,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39528464', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39528464?flat'}
2025-07-15 16:36:18,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78932198:ctest-vn-39528464 is found in opserver
2025-07-15 16:36:18,312 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 16:36:18,319 - DEBUG - VRF ids for VN ctest-vn-39528464: {}
2025-07-15 16:36:18,407 - DEBUG - Services list from nova: [