2025-01-08 16:55:13,943 - INFO - Domain Default found not creating
2025-01-08 16:55:14,085 - INFO - Project ctest-TestBasicPolicy-29646210 not found, creating it
2025-01-08 16:55:14,559 - INFO - Created Project:ctest-TestBasicPolicy-29646210, ID : 059b0b13-2947-48bf-8c53-b6f79149ba36
2025-01-08 16:55:15,996 - INFO - ================================================================================
2025-01-08 16:55:15,996 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 16:55:15,996 - 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-08 16:55:16,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.12': '0'}} with
2025-01-08 16:55:16,256 - INFO - Initial checks done. Running the testcase now
2025-01-08 16:55:16,256 - INFO -
2025-01-08 16:55:16,851 - DEBUG - Response for create_network : {'network': {'id': 'a9e2f523-4ea2-4339-9304-3e91460bfce7', 'name': 'ctest-vn-77740360', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'project_id': '059b0b13294748bf8c53b6f79149ba36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-vn-77740360'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 16:55:17,029 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a802acf0-aff3-479d-a16e-0662d3b923ca', 'name': '', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'network_id': 'a9e2f523-4ea2-4339-9304-3e91460bfce7', 'ip_version': 4, 'cidr': '45.207.86.0/26', 'allocation_pools': [{'start': '45.207.86.2', 'end': '45.207.86.62'}], 'gateway_ip': '45.207.86.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.207.86.2', 'tags': [], 'project_id': '059b0b13294748bf8c53b6f79149ba36'}}
2025-01-08 16:55:17,046 - INFO - Created VN ctest-vn-77740360
2025-01-08 16:55:17,102 - DEBUG - VN ctest-vn-77740360 UUID is a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:17,406 - DEBUG - Response for create_network : {'network': {'id': '6524f3d5-b6b2-4a25-b9fd-cc75a6a90649', 'name': 'ctest-vn-18380265', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'project_id': '059b0b13294748bf8c53b6f79149ba36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-vn-18380265'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 16:55:17,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '8037ce33-9b85-4d06-940b-b384896688e4', 'name': '', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'network_id': '6524f3d5-b6b2-4a25-b9fd-cc75a6a90649', 'ip_version': 4, 'cidr': '142.255.255.128/26', 'allocation_pools': [{'start': '142.255.255.130', 'end': '142.255.255.190'}], 'gateway_ip': '142.255.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.255.255.130', 'tags': [], 'project_id': '059b0b13294748bf8c53b6f79149ba36'}}
2025-01-08 16:55:17,609 - INFO - Created VN ctest-vn-18380265
2025-01-08 16:55:17,661 - DEBUG - VN ctest-vn-18380265 UUID is 6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:17,813 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360, 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-29646210:ctest-vn-18380265, 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-08 16:55:18,106 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9e2f523-4ea2-4339-9304-3e91460bfce7', 'name': 'ctest-vn-77740360', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'project_id': '059b0b13294748bf8c53b6f79149ba36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a802acf0-aff3-479d-a16e-0662d3b923ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-vn-77740360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-policy-allow-all-86354677']], 'subnet_ipam': [{'subnet_cidr': '45.207.86.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 16:55:18,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6524f3d5-b6b2-4a25-b9fd-cc75a6a90649', 'name': 'ctest-vn-18380265', 'tenant_id': '059b0b13294748bf8c53b6f79149ba36', 'project_id': '059b0b13294748bf8c53b6f79149ba36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8037ce33-9b85-4d06-940b-b384896688e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-vn-18380265'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-policy-allow-all-86354677']], 'subnet_ipam': [{'subnet_cidr': '142.255.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 16:55:18,501 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-01-08 16:55:18,793 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-01-08 16:55:18,823 - DEBUG - Requesting: http://10.0.0.43:8082/domain/06ad6b27-cb14-461a-b254-3545b166bdf1
2025-01-08 16:55:18,840 - DEBUG - Requesting: http://10.0.0.43:8082/project/059b0b13-2947-48bf-8c53-b6f79149ba36
2025-01-08 16:55:18,924 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:18,936 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:18,948 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c10b7385-69f3-41ca-97f8-d744acbefd66
2025-01-08 16:55:18,956 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c10b7385-69f3-41ca-97f8-d744acbefd66
2025-01-08 16:55:18,964 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/702c1a57-9267-4a17-8f99-f05a16e0d1ab
2025-01-08 16:55:18,972 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 16:55:18,972 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:18,982 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c10b7385-69f3-41ca-97f8-d744acbefd66
2025-01-08 16:55:18,996 - INFO - Verified VN network id 7 for VN a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:18,996 - INFO - Verifications in API Server for VN ctest-vn-77740360 passed
2025-01-08 16:55:18,996 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:19,007 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c10b7385-69f3-41ca-97f8-d744acbefd66
2025-01-08 16:55:19,014 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c10b7385-69f3-41ca-97f8-d744acbefd66
2025-01-08 16:55:19,021 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/702c1a57-9267-4a17-8f99-f05a16e0d1ab
2025-01-08 16:55:19,034 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29646210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12241616269138346809', 'uuid-lslong': '10593661017148620007'}, 'enable': 'true', 'created': '2025-01-08T16:55:16', 'last-modified': '2025-01-08T16:55:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951298'}
2025-01-08 16:55:19,041 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 16:55:19,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77740360 passed
2025-01-08 16:55:19,041 - DEBUG - ====Verifying policy data for ctest-vn-77740360 in API_Server ======
2025-01-08 16:55:19,041 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-01-08 16:55:19,047 - DEBUG - Requesting: http://10.0.0.43:8082/domain/06ad6b27-cb14-461a-b254-3545b166bdf1
2025-01-08 16:55:19,060 - DEBUG - Requesting: http://10.0.0.43:8082/project/059b0b13-2947-48bf-8c53-b6f79149ba36
2025-01-08 16:55:19,135 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/a9e2f523-4ea2-4339-9304-3e91460bfce7
2025-01-08 16:55:19,145 - DEBUG - ==>Verifying data for policy with id: 17e842bb-af8e-443d-85dd-1acaa921a72e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-policy-allow-all-86354677']
2025-01-08 16:55:19,145 - INFO - VN ctest-vn-77740360 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 16:55:19,145 - DEBUG - Verifying the vn in opserver
2025-01-08 16:55:19,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360 virtual network link through opserver 10.0.0.43
2025-01-08 16:55:19,145 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-01-08 16:55:19,436 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-01-08 16:55:19,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360?flat'}
2025-01-08 16:55:19,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-77740360 is found in opserver
2025-01-08 16:55:19,504 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 16:55:19,510 - DEBUG - VRF ids for VN ctest-vn-77740360: {}
2025-01-08 16:55:19,510 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-01-08 16:55:19,515 - DEBUG - Requesting: http://10.0.0.43:8082/domain/06ad6b27-cb14-461a-b254-3545b166bdf1
2025-01-08 16:55:19,528 - DEBUG - Requesting: http://10.0.0.43:8082/project/059b0b13-2947-48bf-8c53-b6f79149ba36
2025-01-08 16:55:19,602 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,616 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,625 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/08945bd7-3e2e-478e-871d-ed1514de8328
2025-01-08 16:55:19,633 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/08945bd7-3e2e-478e-871d-ed1514de8328
2025-01-08 16:55:19,639 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/d083de67-a063-4b6f-8389-8a12ce923647
2025-01-08 16:55:19,646 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 16:55:19,646 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,655 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/08945bd7-3e2e-478e-871d-ed1514de8328
2025-01-08 16:55:19,670 - INFO - Verified VN network id 8 for VN 6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,670 - INFO - Verifications in API Server for VN ctest-vn-18380265 passed
2025-01-08 16:55:19,670 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,680 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/08945bd7-3e2e-478e-871d-ed1514de8328
2025-01-08 16:55:19,689 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/08945bd7-3e2e-478e-871d-ed1514de8328
2025-01-08 16:55:19,696 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/d083de67-a063-4b6f-8389-8a12ce923647
2025-01-08 16:55:19,709 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-18380265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29646210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7288218196211026469', 'uuid-lslong': '13402092871803799113'}, 'enable': 'true', 'created': '2025-01-08T16:55:17', 'last-modified': '2025-01-08T16:55:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391108'}
2025-01-08 16:55:19,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 16:55:19,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18380265 passed
2025-01-08 16:55:19,717 - DEBUG - ====Verifying policy data for ctest-vn-18380265 in API_Server ======
2025-01-08 16:55:19,717 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-01-08 16:55:19,723 - DEBUG - Requesting: http://10.0.0.43:8082/domain/06ad6b27-cb14-461a-b254-3545b166bdf1
2025-01-08 16:55:19,734 - DEBUG - Requesting: http://10.0.0.43:8082/project/059b0b13-2947-48bf-8c53-b6f79149ba36
2025-01-08 16:55:19,805 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/6524f3d5-b6b2-4a25-b9fd-cc75a6a90649
2025-01-08 16:55:19,816 - DEBUG - ==>Verifying data for policy with id: 17e842bb-af8e-443d-85dd-1acaa921a72e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29646210', 'ctest-policy-allow-all-86354677']
2025-01-08 16:55:19,816 - INFO - VN ctest-vn-18380265 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 16:55:19,817 - DEBUG - Verifying the vn in opserver
2025-01-08 16:55:19,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-18380265 virtual network link through opserver 10.0.0.43
2025-01-08 16:55:19,817 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-01-08 16:55:19,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-18380265', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-18380265?flat'}
2025-01-08 16:55:19,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29646210:ctest-vn-18380265 is found in opserver
2025-01-08 16:55:19,843 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 16:55:19,849 - DEBUG - VRF ids for VN ctest-vn-18380265: {}
2025-01-08 16:55:19,906 - DEBUG - Services list from nova: [