2024-09-19 02:24:03,527 - INFO - Reading existing Domain with UUID df30a39c-7ce1-425c-8d6f-05f52997b6ef
2024-09-19 02:24:03,542 - INFO - Using existing domain ['admin_domain'](df30a39c-7ce1-425c-8d6f-05f52997b6ef)
2024-09-19 02:24:03,737 - INFO - Project ctest-TestBasicPolicy-52966419 not found, creating it
2024-09-19 02:24:04,258 - INFO - Created Project:ctest-TestBasicPolicy-52966419, ID : 29c421ec-72cc-4381-bec5-f1d2e4fc5e3a
2024-09-19 02:24:05,912 - INFO - ================================================================================
2024-09-19 02:24:05,912 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 02:24:05,913 - 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
2024-09-19 02:24:06,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.0.0.36': '0'}} with
2024-09-19 02:24:06,295 - INFO - Initial checks done. Running the testcase now
2024-09-19 02:24:06,295 - INFO -
2024-09-19 02:24:07,098 - DEBUG - Response for create_network : {'network': {'id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'name': 'ctest-vn-41051667', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-41051667'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-19 02:24:07,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff76f339-b5e2-4f10-9697-c32015cba7a4', 'name': '', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'network_id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'ip_version': 4, 'cidr': '9.92.117.128/26', 'allocation_pools': [{'start': '9.92.117.130', 'end': '9.92.117.190'}], 'gateway_ip': '9.92.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:24:07.223364', 'updated_at': '2024-09-19T02:24:07.223364', 'dns_server_address': '9.92.117.130', 'tags': [], 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a'}}
2024-09-19 02:24:07,392 - INFO - Created VN ctest-vn-41051667
2024-09-19 02:24:07,449 - DEBUG - VN ctest-vn-41051667 UUID is d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:07,970 - DEBUG - Response for create_network : {'network': {'id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'name': 'ctest-vn-79578906', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-79578906'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-19 02:24:08,222 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa90b046-ed68-4eb4-931f-ca84771ad107', 'name': '', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'network_id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'ip_version': 4, 'cidr': '103.86.227.128/26', 'allocation_pools': [{'start': '103.86.227.130', 'end': '103.86.227.190'}], 'gateway_ip': '103.86.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:24:08.119872', 'updated_at': '2024-09-19T02:24:08.119872', 'dns_server_address': '103.86.227.130', 'tags': [], 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a'}}
2024-09-19 02:24:08,287 - INFO - Created VN ctest-vn-79578906
2024-09-19 02:24:08,345 - DEBUG - VN ctest-vn-79578906 UUID is a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:08,570 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906, 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]
2024-09-19 02:24:08,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'name': 'ctest-vn-41051667', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff76f339-b5e2-4f10-9697-c32015cba7a4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-41051667'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']], 'subnet_ipam': [{'subnet_cidr': '9.92.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-19T02:24:07.007947', 'updated_at': '2024-09-19T02:24:07.236785'}}
2024-09-19 02:24:09,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'name': 'ctest-vn-79578906', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa90b046-ed68-4eb4-931f-ca84771ad107'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-79578906'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']], 'subnet_ipam': [{'subnet_cidr': '103.86.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-19T02:24:07.892445', 'updated_at': '2024-09-19T02:24:08.133357'}}
2024-09-19 02:24:09,601 - DEBUG - Requesting: https://10.0.0.36:8082/domains
2024-09-19 02:24:09,950 - DEBUG - Requesting: https://10.0.0.36:8082/domains
2024-09-19 02:24:10,031 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef
2024-09-19 02:24:10,094 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a
2024-09-19 02:24:10,203 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:10,276 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:10,336 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71
2024-09-19 02:24:10,391 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71
2024-09-19 02:24:10,447 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/bdd80e4b-d380-410c-9acc-1872e1954f84
2024-09-19 02:24:10,502 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:24:10,502 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:10,564 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71
2024-09-19 02:24:10,647 - INFO - Verified VN network id 7 for VN d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:10,647 - INFO - Verifications in API Server for VN ctest-vn-41051667 passed
2024-09-19 02:24:10,647 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:10,715 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71
2024-09-19 02:24:10,770 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71
2024-09-19 02:24:10,830 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/bdd80e4b-d380-410c-9acc-1872e1954f84
2024-09-19 02:24:10,934 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52966419', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15062356983161177657', 'uuid-lslong': '9737695879969126453'}, 'enable': 'true', 'created': '2024-09-19T02:24:07', 'last-modified': '2024-09-19T02:24:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.974768'}
2024-09-19 02:24:10,987 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:24:10,987 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41051667 passed
2024-09-19 02:24:10,987 - DEBUG - ====Verifying policy data for ctest-vn-41051667 in API_Server ======
2024-09-19 02:24:10,987 - DEBUG - Requesting: https://10.0.0.36:8082/domains
2024-09-19 02:24:11,038 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef
2024-09-19 02:24:11,099 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a
2024-09-19 02:24:11,191 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835
2024-09-19 02:24:11,256 - DEBUG - ==>Verifying data for policy with id: 92c33c42-c098-4256-930a-f7b8aaf7357c, fqn: ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']
2024-09-19 02:24:11,256 - INFO - VN ctest-vn-41051667 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:24:11,256 - DEBUG - Verifying the vn in opserver
2024-09-19 02:24:11,256 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667 virtual network link through opserver 10.0.0.36
2024-09-19 02:24:11,256 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-19 02:24:11,602 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-19 02:24:11,718 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667', 'href': 'https://10.0.0.36:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667?flat'}
2024-09-19 02:24:11,718 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667 is found in opserver
2024-09-19 02:24:11,814 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:24:11,870 - DEBUG - VRF ids for VN ctest-vn-41051667: {}
2024-09-19 02:24:11,870 - DEBUG - Requesting: https://10.0.0.36:8082/domains
2024-09-19 02:24:11,926 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef
2024-09-19 02:24:11,987 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a
2024-09-19 02:24:12,079 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:12,140 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:12,199 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b
2024-09-19 02:24:12,254 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b
2024-09-19 02:24:12,306 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/e12401c9-3d9c-4a15-9ea7-d4416d200f07
2024-09-19 02:24:12,366 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:24:12,366 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:12,424 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b
2024-09-19 02:24:12,494 - INFO - Verified VN network id 8 for VN a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:12,494 - INFO - Verifications in API Server for VN ctest-vn-79578906 passed
2024-09-19 02:24:12,494 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:12,551 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b
2024-09-19 02:24:12,611 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b
2024-09-19 02:24:12,667 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/e12401c9-3d9c-4a15-9ea7-d4416d200f07
2024-09-19 02:24:12,771 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52966419', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11757381299710412367', 'uuid-lslong': '13170967311051162367'}, 'enable': 'true', 'created': '2024-09-19T02:24:07', 'last-modified': '2024-09-19T02:24:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.443114'}
2024-09-19 02:24:12,823 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:24:12,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79578906 passed
2024-09-19 02:24:12,824 - DEBUG - ====Verifying policy data for ctest-vn-79578906 in API_Server ======
2024-09-19 02:24:12,824 - DEBUG - Requesting: https://10.0.0.36:8082/domains
2024-09-19 02:24:12,878 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef
2024-09-19 02:24:12,939 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a
2024-09-19 02:24:13,036 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff
2024-09-19 02:24:13,104 - DEBUG - ==>Verifying data for policy with id: 92c33c42-c098-4256-930a-f7b8aaf7357c, fqn: ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']
2024-09-19 02:24:13,104 - INFO - VN ctest-vn-79578906 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:24:13,104 - DEBUG - Verifying the vn in opserver
2024-09-19 02:24:13,104 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906 virtual network link through opserver 10.0.0.36
2024-09-19 02:24:13,104 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-19 02:24:13,162 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906', 'href': 'https://10.0.0.36:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906?flat'}
2024-09-19 02:24:13,162 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906 is found in opserver
2024-09-19 02:24:13,262 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:24:13,310 - DEBUG - VRF ids for VN ctest-vn-79578906: {}
2024-09-19 02:24:13,371 - DEBUG - Services list from nova: [