2025-01-13 02:19:33,421 - INFO - Domain Default found not creating
2025-01-13 02:19:33,603 - INFO - Project ctest-TestBasicPolicy-09968244 not found, creating it
2025-01-13 02:19:34,121 - INFO - Created Project:ctest-TestBasicPolicy-09968244, ID : f15a6038-3a60-4b4c-bf79-d5e085b6b1b1
2025-01-13 02:19:35,806 - INFO - ================================================================================
2025-01-13 02:19:35,806 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 02:19:35,806 - 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-01-13 02:19:36,082 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with
2025-01-13 02:19:36,082 - INFO - Initial checks done. Running the testcase now
2025-01-13 02:19:36,082 - INFO -
2025-01-13 02:19:36,686 - DEBUG - Response for create_network : {'network': {'id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'name': 'ctest-vn-21361885', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-21361885'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:19:36,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1b776a9-ea5f-4ce2-8cef-cf0841671ead', 'name': '', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'network_id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'ip_version': 4, 'cidr': '121.135.199.192/26', 'allocation_pools': [{'start': '121.135.199.194', 'end': '121.135.199.254'}], 'gateway_ip': '121.135.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.135.199.194', 'tags': [], 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1'}}
2025-01-13 02:19:36,921 - INFO - Created VN ctest-vn-21361885
2025-01-13 02:19:36,975 - DEBUG - VN ctest-vn-21361885 UUID is 02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:37,299 - DEBUG - Response for create_network : {'network': {'id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'name': 'ctest-vn-66664986', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-66664986'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:19:37,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '585399b6-7186-4503-bb2b-8e0068915f45', 'name': '', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'network_id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'ip_version': 4, 'cidr': '118.60.213.192/26', 'allocation_pools': [{'start': '118.60.213.194', 'end': '118.60.213.254'}], 'gateway_ip': '118.60.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.60.213.194', 'tags': [], 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1'}}
2025-01-13 02:19:37,520 - INFO - Created VN ctest-vn-66664986
2025-01-13 02:19:37,575 - DEBUG - VN ctest-vn-66664986 UUID is 04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:37,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885, 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-09968244:ctest-vn-66664986, 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-01-13 02:19:38,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'name': 'ctest-vn-21361885', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1b776a9-ea5f-4ce2-8cef-cf0841671ead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-21361885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']], 'subnet_ipam': [{'subnet_cidr': '121.135.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:19:38,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'name': 'ctest-vn-66664986', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['585399b6-7186-4503-bb2b-8e0068915f45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-66664986'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']], 'subnet_ipam': [{'subnet_cidr': '118.60.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:19:38,443 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 02:19:38,785 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 02:19:38,815 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2
2025-01-13 02:19:38,831 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1
2025-01-13 02:19:38,910 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:38,924 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:38,936 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128
2025-01-13 02:19:38,946 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128
2025-01-13 02:19:38,954 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/51136038-ab1c-49d9-bce2-b13064a02a16
2025-01-13 02:19:38,963 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 02:19:38,963 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:38,974 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128
2025-01-13 02:19:38,992 - INFO - Verified VN network id 7 for VN 02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:38,992 - INFO - Verifications in API Server for VN ctest-vn-21361885 passed
2025-01-13 02:19:38,993 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:39,005 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128
2025-01-13 02:19:39,014 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128
2025-01-13 02:19:39,023 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/51136038-ab1c-49d9-bce2-b13064a02a16
2025-01-13 02:19:39,039 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09968244', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '150439809352419258', 'uuid-lslong': '11117222475084640757'}, 'enable': 'true', 'created': '2025-01-13T02:19:36', 'last-modified': '2025-01-13T02:19:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056710'}
2025-01-13 02:19:39,046 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 02:19:39,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21361885 passed
2025-01-13 02:19:39,047 - DEBUG - ====Verifying policy data for ctest-vn-21361885 in API_Server ======
2025-01-13 02:19:39,047 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 02:19:39,054 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2
2025-01-13 02:19:39,068 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1
2025-01-13 02:19:39,145 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5
2025-01-13 02:19:39,159 - DEBUG - ==>Verifying data for policy with id: 9c92168b-1f32-42f6-8522-655de51f492f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']
2025-01-13 02:19:39,159 - INFO - VN ctest-vn-21361885 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:19:39,159 - DEBUG - Verifying the vn in opserver
2025-01-13 02:19:39,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885 virtual network link through opserver 10.0.0.12
2025-01-13 02:19:39,160 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 02:19:39,498 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 02:19:39,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885?flat'}
2025-01-13 02:19:39,568 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885 is found in opserver
2025-01-13 02:19:39,581 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:19:39,587 - DEBUG - VRF ids for VN ctest-vn-21361885: {}
2025-01-13 02:19:39,587 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 02:19:39,594 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2
2025-01-13 02:19:39,609 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1
2025-01-13 02:19:39,687 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,703 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,719 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5
2025-01-13 02:19:39,731 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5
2025-01-13 02:19:39,742 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22374d8d-167e-47bd-9ccd-0226c9099530
2025-01-13 02:19:39,753 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:19:39,753 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,770 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5
2025-01-13 02:19:39,793 - INFO - Verified VN network id 8 for VN 04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,793 - INFO - Verifications in API Server for VN ctest-vn-66664986 passed
2025-01-13 02:19:39,793 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,805 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5
2025-01-13 02:19:39,814 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5
2025-01-13 02:19:39,822 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22374d8d-167e-47bd-9ccd-0226c9099530
2025-01-13 02:19:39,836 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09968244', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '355810569307636847', 'uuid-lslong': '12302172791342804091'}, 'enable': 'true', 'created': '2025-01-13T02:19:37', 'last-modified': '2025-01-13T02:19:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597716'}
2025-01-13 02:19:39,843 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:19:39,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66664986 passed
2025-01-13 02:19:39,843 - DEBUG - ====Verifying policy data for ctest-vn-66664986 in API_Server ======
2025-01-13 02:19:39,843 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 02:19:39,849 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2
2025-01-13 02:19:39,862 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1
2025-01-13 02:19:39,942 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b
2025-01-13 02:19:39,954 - DEBUG - ==>Verifying data for policy with id: 9c92168b-1f32-42f6-8522-655de51f492f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']
2025-01-13 02:19:39,954 - INFO - VN ctest-vn-66664986 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:19:39,954 - DEBUG - Verifying the vn in opserver
2025-01-13 02:19:39,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986 virtual network link through opserver 10.0.0.12
2025-01-13 02:19:39,954 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 02:19:39,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986?flat'}
2025-01-13 02:19:39,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986 is found in opserver
2025-01-13 02:19:39,980 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:19:39,986 - DEBUG - VRF ids for VN ctest-vn-66664986: {}
2025-01-13 02:19:40,052 - DEBUG - Services list from nova: [