2025-06-24 08:44:48,762 - INFO - Domain Default found not creating
2025-06-24 08:44:48,928 - INFO - Project ctest-TestBasicPolicy-03826773 not found, creating it
2025-06-24 08:44:49,378 - INFO - Created Project:ctest-TestBasicPolicy-03826773, ID : ca9e595d-211d-465d-a717-41cc08045d1b
2025-06-24 08:44:50,934 - INFO - ================================================================================
2025-06-24 08:44:50,934 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 08:44:50,934 - 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-24 08:44:51,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-24 08:44:51,191 - INFO - Initial checks done. Running the testcase now
2025-06-24 08:44:51,191 - INFO -
2025-06-24 08:44:51,757 - DEBUG - Response for create_network : {'network': {'id': '5dbe2310-12a3-44cf-bab2-5a9d84ca01fd', 'name': 'ctest-vn-85391115', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'project_id': 'ca9e595d211d465da71741cc08045d1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-vn-85391115'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:44:51,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea89722c-20a2-4e6d-8662-fad361c4f130', 'name': '', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'network_id': '5dbe2310-12a3-44cf-bab2-5a9d84ca01fd', 'ip_version': 4, 'cidr': '202.166.232.64/26', 'allocation_pools': [{'start': '202.166.232.66', 'end': '202.166.232.126'}], 'gateway_ip': '202.166.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.166.232.66', 'tags': [], 'project_id': 'ca9e595d211d465da71741cc08045d1b'}}
2025-06-24 08:44:51,982 - INFO - Created VN ctest-vn-85391115
2025-06-24 08:44:52,037 - DEBUG - VN ctest-vn-85391115 UUID is 5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:52,336 - DEBUG - Response for create_network : {'network': {'id': 'd4ad003b-7a06-4b42-ad1a-68b096f36653', 'name': 'ctest-vn-34695332', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'project_id': 'ca9e595d211d465da71741cc08045d1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-vn-34695332'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:44:52,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cbfd976-e6f7-4698-a4ce-748e00fa5e5b', 'name': '', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'network_id': 'd4ad003b-7a06-4b42-ad1a-68b096f36653', 'ip_version': 4, 'cidr': '61.196.90.0/26', 'allocation_pools': [{'start': '61.196.90.2', 'end': '61.196.90.62'}], 'gateway_ip': '61.196.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.196.90.2', 'tags': [], 'project_id': 'ca9e595d211d465da71741cc08045d1b'}}
2025-06-24 08:44:52,547 - INFO - Created VN ctest-vn-34695332
2025-06-24 08:44:52,601 - DEBUG - VN ctest-vn-34695332 UUID is d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:52,753 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115, 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-03826773:ctest-vn-34695332, 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-24 08:44:53,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dbe2310-12a3-44cf-bab2-5a9d84ca01fd', 'name': 'ctest-vn-85391115', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'project_id': 'ca9e595d211d465da71741cc08045d1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea89722c-20a2-4e6d-8662-fad361c4f130'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-vn-85391115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-policy-allow-all-90531856']], 'subnet_ipam': [{'subnet_cidr': '202.166.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:44:53,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4ad003b-7a06-4b42-ad1a-68b096f36653', 'name': 'ctest-vn-34695332', 'tenant_id': 'ca9e595d211d465da71741cc08045d1b', 'project_id': 'ca9e595d211d465da71741cc08045d1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cbfd976-e6f7-4698-a4ce-748e00fa5e5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-vn-34695332'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-policy-allow-all-90531856']], 'subnet_ipam': [{'subnet_cidr': '61.196.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 08:44:53,465 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 08:44:53,763 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 08:44:53,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ace018c5-1e60-4d37-8466-5e269458ea0c
2025-06-24 08:44:53,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca9e595d-211d-465d-a717-41cc08045d1b
2025-06-24 08:44:53,887 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:53,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:53,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfd23214-32b7-414f-bdbf-975409f52e62
2025-06-24 08:44:53,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfd23214-32b7-414f-bdbf-975409f52e62
2025-06-24 08:44:53,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0b8d1d8e-4a2f-43e5-a466-493cc02b504c
2025-06-24 08:44:53,932 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 08:44:53,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:53,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfd23214-32b7-414f-bdbf-975409f52e62
2025-06-24 08:44:53,961 - INFO - Verified VN network id 8 for VN 5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:53,961 - INFO - Verifications in API Server for VN ctest-vn-85391115 passed
2025-06-24 08:44:53,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:53,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfd23214-32b7-414f-bdbf-975409f52e62
2025-06-24 08:44:53,982 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfd23214-32b7-414f-bdbf-975409f52e62
2025-06-24 08:44:53,990 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0b8d1d8e-4a2f-43e5-a466-493cc02b504c
2025-06-24 08:44:54,005 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03826773', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6754875043041461455', 'uuid-lslong': '13452914669493289469'}, 'enable': 'true', 'created': '2025-06-24T08:44:51', 'last-modified': '2025-06-24T08:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976170'}
2025-06-24 08:44:54,014 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 08:44:54,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85391115 passed
2025-06-24 08:44:54,015 - DEBUG - ====Verifying policy data for ctest-vn-85391115 in API_Server ======
2025-06-24 08:44:54,015 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 08:44:54,022 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ace018c5-1e60-4d37-8466-5e269458ea0c
2025-06-24 08:44:54,036 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca9e595d-211d-465d-a717-41cc08045d1b
2025-06-24 08:44:54,109 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5dbe2310-12a3-44cf-bab2-5a9d84ca01fd
2025-06-24 08:44:54,121 - DEBUG - ==>Verifying data for policy with id: 91107c4c-9637-4718-ab27-19baa33e19a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-policy-allow-all-90531856']
2025-06-24 08:44:54,121 - INFO - VN ctest-vn-85391115 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 08:44:54,121 - DEBUG - Verifying the vn in opserver
2025-06-24 08:44:54,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115 virtual network link through opserver 10.0.0.38
2025-06-24 08:44:54,121 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 08:44:54,419 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 08:44:54,486 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115?flat'}
2025-06-24 08:44:54,486 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-85391115 is found in opserver
2025-06-24 08:44:54,500 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 08:44:54,507 - DEBUG - VRF ids for VN ctest-vn-85391115: {}
2025-06-24 08:44:54,507 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 08:44:54,515 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ace018c5-1e60-4d37-8466-5e269458ea0c
2025-06-24 08:44:54,532 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca9e595d-211d-465d-a717-41cc08045d1b
2025-06-24 08:44:54,619 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,634 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/48f059c8-3194-42d7-8177-2a667a6412ed
2025-06-24 08:44:54,658 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/48f059c8-3194-42d7-8177-2a667a6412ed
2025-06-24 08:44:54,666 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77cdcb16-f866-4281-bbec-4af1aca2f1af
2025-06-24 08:44:54,676 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 08:44:54,676 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,689 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/48f059c8-3194-42d7-8177-2a667a6412ed
2025-06-24 08:44:54,706 - INFO - Verified VN network id 9 for VN d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,706 - INFO - Verifications in API Server for VN ctest-vn-34695332 passed
2025-06-24 08:44:54,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/48f059c8-3194-42d7-8177-2a667a6412ed
2025-06-24 08:44:54,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/48f059c8-3194-42d7-8177-2a667a6412ed
2025-06-24 08:44:54,734 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77cdcb16-f866-4281-bbec-4af1aca2f1af
2025-06-24 08:44:54,749 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-34695332', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03826773', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15324905362461969218', 'uuid-lslong': '12473397225612076627'}, 'enable': 'true', 'created': '2025-06-24T08:44:52', 'last-modified': '2025-06-24T08:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472150'}
2025-06-24 08:44:54,756 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 08:44:54,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34695332 passed
2025-06-24 08:44:54,757 - DEBUG - ====Verifying policy data for ctest-vn-34695332 in API_Server ======
2025-06-24 08:44:54,757 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 08:44:54,765 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ace018c5-1e60-4d37-8466-5e269458ea0c
2025-06-24 08:44:54,780 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca9e595d-211d-465d-a717-41cc08045d1b
2025-06-24 08:44:54,857 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ad003b-7a06-4b42-ad1a-68b096f36653
2025-06-24 08:44:54,869 - DEBUG - ==>Verifying data for policy with id: 91107c4c-9637-4718-ab27-19baa33e19a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-03826773', 'ctest-policy-allow-all-90531856']
2025-06-24 08:44:54,869 - INFO - VN ctest-vn-34695332 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 08:44:54,869 - DEBUG - Verifying the vn in opserver
2025-06-24 08:44:54,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-34695332 virtual network link through opserver 10.0.0.38
2025-06-24 08:44:54,869 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 08:44:54,882 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-34695332', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-34695332?flat'}
2025-06-24 08:44:54,882 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03826773:ctest-vn-34695332 is found in opserver
2025-06-24 08:44:54,894 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 08:44:54,899 - DEBUG - VRF ids for VN ctest-vn-34695332: {}
2025-06-24 08:44:54,970 - DEBUG - Services list from nova: [