2025-06-27 03:40:40,566 - INFO - Domain Default found not creating
2025-06-27 03:40:40,707 - INFO - Project ctest-TestBasicPolicy-38722532 not found, creating it
2025-06-27 03:40:41,225 - INFO - Created Project:ctest-TestBasicPolicy-38722532, ID : 22891ee7-703b-484f-9ea7-4e5631e4254c
2025-06-27 03:40:42,661 - INFO - ================================================================================
2025-06-27 03:40:42,661 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-27 03:40:42,661 - 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-27 03:40:42,921 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-27 03:40:42,921 - INFO - Initial checks done. Running the testcase now
2025-06-27 03:40:42,921 - INFO -
2025-06-27 03:40:43,467 - DEBUG - Response for create_network : {'network': {'id': '960b1a88-d207-41e7-ad93-0ab0ebf3590c', 'name': 'ctest-vn-14760340', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'project_id': '22891ee7703b484f9ea74e5631e4254c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-vn-14760340'], 'port_security_enabled': True, 'description': ''}}
2025-06-27 03:40:43,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '147ac304-f522-4b56-8ef9-8d0f8ab9f99a', 'name': '', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'network_id': '960b1a88-d207-41e7-ad93-0ab0ebf3590c', 'ip_version': 4, 'cidr': '120.106.231.0/26', 'allocation_pools': [{'start': '120.106.231.2', 'end': '120.106.231.62'}], 'gateway_ip': '120.106.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.106.231.2', 'tags': [], 'project_id': '22891ee7703b484f9ea74e5631e4254c'}}
2025-06-27 03:40:43,722 - INFO - Created VN ctest-vn-14760340
2025-06-27 03:40:43,775 - DEBUG - VN ctest-vn-14760340 UUID is 960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:44,233 - DEBUG - Response for create_network : {'network': {'id': '7400293a-dfe0-4f36-b06d-5e72b2c0886d', 'name': 'ctest-vn-70100867', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'project_id': '22891ee7703b484f9ea74e5631e4254c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-vn-70100867'], 'port_security_enabled': True, 'description': ''}}
2025-06-27 03:40:44,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ea97668-02f7-44f6-81a8-92f9dff3eed8', 'name': '', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'network_id': '7400293a-dfe0-4f36-b06d-5e72b2c0886d', 'ip_version': 4, 'cidr': '118.105.98.192/26', 'allocation_pools': [{'start': '118.105.98.194', 'end': '118.105.98.254'}], 'gateway_ip': '118.105.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.105.98.194', 'tags': [], 'project_id': '22891ee7703b484f9ea74e5631e4254c'}}
2025-06-27 03:40:44,457 - INFO - Created VN ctest-vn-70100867
2025-06-27 03:40:44,511 - DEBUG - VN ctest-vn-70100867 UUID is 7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:44,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340, 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-38722532:ctest-vn-70100867, 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-27 03:40:44,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '960b1a88-d207-41e7-ad93-0ab0ebf3590c', 'name': 'ctest-vn-14760340', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'project_id': '22891ee7703b484f9ea74e5631e4254c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['147ac304-f522-4b56-8ef9-8d0f8ab9f99a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-vn-14760340'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-policy-allow-all-01855718']], 'subnet_ipam': [{'subnet_cidr': '120.106.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-27 03:40:45,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7400293a-dfe0-4f36-b06d-5e72b2c0886d', 'name': 'ctest-vn-70100867', 'tenant_id': '22891ee7703b484f9ea74e5631e4254c', 'project_id': '22891ee7703b484f9ea74e5631e4254c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ea97668-02f7-44f6-81a8-92f9dff3eed8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-vn-70100867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-policy-allow-all-01855718']], 'subnet_ipam': [{'subnet_cidr': '118.105.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-27 03:40:45,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-27 03:40:45,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-27 03:40:45,683 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78684d99-4ef3-4744-82e2-dc0d26b10845
2025-06-27 03:40:45,697 - DEBUG - Requesting: http://10.0.0.38:8082/project/22891ee7-703b-484f-9ea7-4e5631e4254c
2025-06-27 03:40:45,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,782 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e52e8cfb-4a27-4d50-a296-95df6562dda3
2025-06-27 03:40:45,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e52e8cfb-4a27-4d50-a296-95df6562dda3
2025-06-27 03:40:45,809 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eee9c665-512f-46c7-9487-2295b9a51ae5
2025-06-27 03:40:45,815 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-27 03:40:45,815 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e52e8cfb-4a27-4d50-a296-95df6562dda3
2025-06-27 03:40:45,840 - INFO - Verified VN network id 8 for VN 960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,840 - INFO - Verifications in API Server for VN ctest-vn-14760340 passed
2025-06-27 03:40:45,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,850 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e52e8cfb-4a27-4d50-a296-95df6562dda3
2025-06-27 03:40:45,857 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e52e8cfb-4a27-4d50-a296-95df6562dda3
2025-06-27 03:40:45,864 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eee9c665-512f-46c7-9487-2295b9a51ae5
2025-06-27 03:40:45,876 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38722532', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10811764505374573031', 'uuid-lslong': '12507352345127115020'}, 'enable': 'true', 'created': '2025-06-27T03:40:43', 'last-modified': '2025-06-27T03:40:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954425'}
2025-06-27 03:40:45,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-27 03:40:45,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14760340 passed
2025-06-27 03:40:45,883 - DEBUG - ====Verifying policy data for ctest-vn-14760340 in API_Server ======
2025-06-27 03:40:45,883 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-27 03:40:45,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78684d99-4ef3-4744-82e2-dc0d26b10845
2025-06-27 03:40:45,900 - DEBUG - Requesting: http://10.0.0.38:8082/project/22891ee7-703b-484f-9ea7-4e5631e4254c
2025-06-27 03:40:45,979 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/960b1a88-d207-41e7-ad93-0ab0ebf3590c
2025-06-27 03:40:45,989 - DEBUG - ==>Verifying data for policy with id: 4597a852-6c11-47af-996e-445d67b54857, fqn: ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-policy-allow-all-01855718']
2025-06-27 03:40:45,989 - INFO - VN ctest-vn-14760340 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-27 03:40:45,990 - DEBUG - Verifying the vn in opserver
2025-06-27 03:40:45,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340 virtual network link through opserver 10.0.0.38
2025-06-27 03:40:45,990 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-27 03:40:46,281 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-27 03:40:46,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340?flat'}
2025-06-27 03:40:46,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-14760340 is found in opserver
2025-06-27 03:40:46,354 - DEBUG - Do not have enough data to verify VN in agent
2025-06-27 03:40:46,361 - DEBUG - VRF ids for VN ctest-vn-14760340: {}
2025-06-27 03:40:46,361 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-27 03:40:46,368 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78684d99-4ef3-4744-82e2-dc0d26b10845
2025-06-27 03:40:46,380 - DEBUG - Requesting: http://10.0.0.38:8082/project/22891ee7-703b-484f-9ea7-4e5631e4254c
2025-06-27 03:40:46,456 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,479 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde9a244-d060-4d11-b7c6-c283d33c2f53
2025-06-27 03:40:46,487 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde9a244-d060-4d11-b7c6-c283d33c2f53
2025-06-27 03:40:46,495 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac1adde3-2780-4c1b-b21b-c4d06d0763cf
2025-06-27 03:40:46,501 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-27 03:40:46,501 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde9a244-d060-4d11-b7c6-c283d33c2f53
2025-06-27 03:40:46,526 - INFO - Verified VN network id 9 for VN 7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,526 - INFO - Verifications in API Server for VN ctest-vn-70100867 passed
2025-06-27 03:40:46,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,536 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde9a244-d060-4d11-b7c6-c283d33c2f53
2025-06-27 03:40:46,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde9a244-d060-4d11-b7c6-c283d33c2f53
2025-06-27 03:40:46,551 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac1adde3-2780-4c1b-b21b-c4d06d0763cf
2025-06-27 03:40:46,563 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-70100867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38722532', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8358726241240502070', 'uuid-lslong': '12712921169855023213'}, 'enable': 'true', 'created': '2025-06-27T03:40:44', 'last-modified': '2025-06-27T03:40:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396928'}
2025-06-27 03:40:46,570 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-27 03:40:46,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70100867 passed
2025-06-27 03:40:46,570 - DEBUG - ====Verifying policy data for ctest-vn-70100867 in API_Server ======
2025-06-27 03:40:46,570 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-27 03:40:46,576 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78684d99-4ef3-4744-82e2-dc0d26b10845
2025-06-27 03:40:46,588 - DEBUG - Requesting: http://10.0.0.38:8082/project/22891ee7-703b-484f-9ea7-4e5631e4254c
2025-06-27 03:40:46,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7400293a-dfe0-4f36-b06d-5e72b2c0886d
2025-06-27 03:40:46,669 - DEBUG - ==>Verifying data for policy with id: 4597a852-6c11-47af-996e-445d67b54857, fqn: ['default-domain', 'ctest-TestBasicPolicy-38722532', 'ctest-policy-allow-all-01855718']
2025-06-27 03:40:46,670 - INFO - VN ctest-vn-70100867 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-27 03:40:46,670 - DEBUG - Verifying the vn in opserver
2025-06-27 03:40:46,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-70100867 virtual network link through opserver 10.0.0.38
2025-06-27 03:40:46,670 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-27 03:40:46,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-70100867', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-70100867?flat'}
2025-06-27 03:40:46,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38722532:ctest-vn-70100867 is found in opserver
2025-06-27 03:40:46,692 - DEBUG - Do not have enough data to verify VN in agent
2025-06-27 03:40:46,697 - DEBUG - VRF ids for VN ctest-vn-70100867: {}
2025-06-27 03:40:46,750 - DEBUG - Services list from nova: [