2025-04-07 09:39:20,871 - INFO - Domain Default found not creating
2025-04-07 09:39:21,015 - INFO - Project ctest-TestBasicPolicy-46176189 not found, creating it
2025-04-07 09:39:21,482 - INFO - Created Project:ctest-TestBasicPolicy-46176189, ID : 5e6d0977-80c8-4f51-86e0-e7af4f86c6c9
2025-04-07 09:39:22,956 - INFO - ================================================================================
2025-04-07 09:39:22,956 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 09:39:22,956 - 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-04-07 09:39:23,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.32': '0'}} with
2025-04-07 09:39:23,221 - INFO - Initial checks done. Running the testcase now
2025-04-07 09:39:23,221 - INFO -
2025-04-07 09:39:23,821 - DEBUG - Response for create_network : {'network': {'id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'name': 'ctest-vn-50445454', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-50445454'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:24,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '06559121-9310-4e2c-a691-196600d0a715', 'name': '', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'network_id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'ip_version': 4, 'cidr': '130.26.130.128/26', 'allocation_pools': [{'start': '130.26.130.130', 'end': '130.26.130.190'}], 'gateway_ip': '130.26.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.26.130.130', 'tags': [], 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9'}}
2025-04-07 09:39:24,051 - INFO - Created VN ctest-vn-50445454
2025-04-07 09:39:24,106 - DEBUG - VN ctest-vn-50445454 UUID is 9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:24,401 - DEBUG - Response for create_network : {'network': {'id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'name': 'ctest-vn-38360623', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-38360623'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:24,607 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f0e3c17-b13d-4f52-b24c-015af5b43514', 'name': '', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'network_id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'ip_version': 4, 'cidr': '174.201.122.128/26', 'allocation_pools': [{'start': '174.201.122.130', 'end': '174.201.122.190'}], 'gateway_ip': '174.201.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.201.122.130', 'tags': [], 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9'}}
2025-04-07 09:39:24,625 - INFO - Created VN ctest-vn-38360623
2025-04-07 09:39:24,686 - DEBUG - VN ctest-vn-38360623 UUID is d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:24,810 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454, 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-46176189:ctest-vn-38360623, 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-04-07 09:39:25,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'name': 'ctest-vn-50445454', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06559121-9310-4e2c-a691-196600d0a715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-50445454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']], 'subnet_ipam': [{'subnet_cidr': '130.26.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:25,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'name': 'ctest-vn-38360623', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f0e3c17-b13d-4f52-b24c-015af5b43514'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-38360623'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']], 'subnet_ipam': [{'subnet_cidr': '174.201.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:39:25,534 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-07 09:39:25,846 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-07 09:39:25,874 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec
2025-04-07 09:39:25,892 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9
2025-04-07 09:39:25,968 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:25,982 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:25,995 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd
2025-04-07 09:39:26,004 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd
2025-04-07 09:39:26,012 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/32b66b63-26bb-44ae-b1d4-e3346160e5af
2025-04-07 09:39:26,019 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:39:26,019 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:26,031 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd
2025-04-07 09:39:26,048 - INFO - Verified VN network id 8 for VN 9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:26,048 - INFO - Verifications in API Server for VN ctest-vn-50445454 passed
2025-04-07 09:39:26,048 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:26,059 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd
2025-04-07 09:39:26,067 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd
2025-04-07 09:39:26,075 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/32b66b63-26bb-44ae-b1d4-e3346160e5af
2025-04-07 09:39:26,088 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46176189', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11249973238054473414', 'uuid-lslong': '9538233570418202028'}, 'enable': 'true', 'created': '2025-04-07T09:39:23', 'last-modified': '2025-04-07T09:39:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993367'}
2025-04-07 09:39:26,097 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:39:26,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50445454 passed
2025-04-07 09:39:26,097 - DEBUG - ====Verifying policy data for ctest-vn-50445454 in API_Server ======
2025-04-07 09:39:26,097 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-07 09:39:26,104 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec
2025-04-07 09:39:26,116 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9
2025-04-07 09:39:26,197 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac
2025-04-07 09:39:26,208 - DEBUG - ==>Verifying data for policy with id: 129f383e-cb7d-495c-b73b-0d54080ae7d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']
2025-04-07 09:39:26,208 - INFO - VN ctest-vn-50445454 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:39:26,208 - DEBUG - Verifying the vn in opserver
2025-04-07 09:39:26,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454 virtual network link through opserver 10.0.0.24
2025-04-07 09:39:26,208 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-07 09:39:26,503 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-07 09:39:26,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454?flat'}
2025-04-07 09:39:26,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454 is found in opserver
2025-04-07 09:39:26,570 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:39:26,575 - DEBUG - VRF ids for VN ctest-vn-50445454: {}
2025-04-07 09:39:26,575 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-07 09:39:26,581 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec
2025-04-07 09:39:26,594 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9
2025-04-07 09:39:26,665 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,678 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,689 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7
2025-04-07 09:39:26,699 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7
2025-04-07 09:39:26,710 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/e7a08bfc-e619-45c7-ba40-efe7a4df9ea5
2025-04-07 09:39:26,720 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:39:26,720 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,731 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7
2025-04-07 09:39:26,746 - INFO - Verified VN network id 9 for VN d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,747 - INFO - Verifications in API Server for VN ctest-vn-38360623 passed
2025-04-07 09:39:26,747 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,758 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7
2025-04-07 09:39:26,765 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7
2025-04-07 09:39:26,773 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/e7a08bfc-e619-45c7-ba40-efe7a4df9ea5
2025-04-07 09:39:26,786 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46176189', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15654161070998372789', 'uuid-lslong': '12887142045977711387'}, 'enable': 'true', 'created': '2025-04-07T09:39:24', 'last-modified': '2025-04-07T09:39:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439747'}
2025-04-07 09:39:26,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:39:26,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38360623 passed
2025-04-07 09:39:26,795 - DEBUG - ====Verifying policy data for ctest-vn-38360623 in API_Server ======
2025-04-07 09:39:26,795 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-07 09:39:26,801 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec
2025-04-07 09:39:26,815 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9
2025-04-07 09:39:26,896 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b
2025-04-07 09:39:26,912 - DEBUG - ==>Verifying data for policy with id: 129f383e-cb7d-495c-b73b-0d54080ae7d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']
2025-04-07 09:39:26,912 - INFO - VN ctest-vn-38360623 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:39:26,912 - DEBUG - Verifying the vn in opserver
2025-04-07 09:39:26,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623 virtual network link through opserver 10.0.0.24
2025-04-07 09:39:26,912 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-07 09:39:26,926 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623?flat'}
2025-04-07 09:39:26,926 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623 is found in opserver
2025-04-07 09:39:26,939 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:39:26,945 - DEBUG - VRF ids for VN ctest-vn-38360623: {}
2025-04-07 09:39:27,021 - DEBUG - Services list from nova: [