2024-10-17 13:43:45,418 - INFO - Reading existing Domain with UUID cfa788e6-8a4a-4759-a522-b9348a350fea
2024-10-17 13:43:45,436 - INFO - Using existing domain ['admin_domain'](cfa788e6-8a4a-4759-a522-b9348a350fea)
2024-10-17 13:43:45,690 - INFO - Project ctest-TestBasicPolicy-01101890 not found, creating it
2024-10-17 13:43:46,297 - INFO - Created Project:ctest-TestBasicPolicy-01101890, ID : 3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8
2024-10-17 13:43:48,413 - INFO - ================================================================================
2024-10-17 13:43:48,413 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-17 13:43:48,414 - 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-10-17 13:43:48,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with
2024-10-17 13:43:48,862 - INFO - Initial checks done. Running the testcase now
2024-10-17 13:43:48,862 - INFO -
2024-10-17 13:43:49,782 - DEBUG - Response for create_network : {'network': {'id': '555e7646-843d-4f5d-a766-0a8d86262905', 'name': 'ctest-vn-86097808', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-86097808'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-10-17 13:43:50,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '79872fb6-5c8a-4a79-84ad-03a9df3b9460', 'name': '', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'network_id': '555e7646-843d-4f5d-a766-0a8d86262905', 'ip_version': 4, 'cidr': '123.219.89.192/26', 'allocation_pools': [{'start': '123.219.89.194', 'end': '123.219.89.254'}], 'gateway_ip': '123.219.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:43:49.930137', 'updated_at': '2024-10-17T13:43:49.930137', 'dns_server_address': '123.219.89.194', 'tags': [], 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8'}}
2024-10-17 13:43:50,147 - INFO - Created VN ctest-vn-86097808
2024-10-17 13:43:50,208 - DEBUG - VN ctest-vn-86097808 UUID is 555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:50,814 - DEBUG - Response for create_network : {'network': {'id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'name': 'ctest-vn-25127302', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-25127302'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-10-17 13:43:51,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd82585bf-26cb-427f-8c08-2431c3d6f9d1', 'name': '', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'network_id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'ip_version': 4, 'cidr': '206.30.5.192/26', 'allocation_pools': [{'start': '206.30.5.194', 'end': '206.30.5.254'}], 'gateway_ip': '206.30.5.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:43:50.996466', 'updated_at': '2024-10-17T13:43:50.996466', 'dns_server_address': '206.30.5.194', 'tags': [], 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8'}}
2024-10-17 13:43:51,207 - INFO - Created VN ctest-vn-25127302
2024-10-17 13:43:51,272 - DEBUG - VN ctest-vn-25127302 UUID is 3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:51,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808, 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-01101890:ctest-vn-25127302, 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-10-17 13:43:52,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '555e7646-843d-4f5d-a766-0a8d86262905', 'name': 'ctest-vn-86097808', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79872fb6-5c8a-4a79-84ad-03a9df3b9460'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-86097808'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']], 'subnet_ipam': [{'subnet_cidr': '123.219.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-17T13:43:49.696210', 'updated_at': '2024-10-17T13:43:49.950937'}}
2024-10-17 13:43:52,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'name': 'ctest-vn-25127302', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d82585bf-26cb-427f-8c08-2431c3d6f9d1'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-25127302'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']], 'subnet_ipam': [{'subnet_cidr': '206.30.5.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-17T13:43:50.709300', 'updated_at': '2024-10-17T13:43:51.012999'}}
2024-10-17 13:43:52,728 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-10-17 13:43:53,145 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-10-17 13:43:53,241 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea
2024-10-17 13:43:53,325 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8
2024-10-17 13:43:53,438 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:53,507 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:53,579 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f
2024-10-17 13:43:53,638 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f
2024-10-17 13:43:53,699 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/3b26f441-5889-4643-b69e-b842372d06fe
2024-10-17 13:43:53,761 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 13:43:53,761 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:53,825 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f
2024-10-17 13:43:53,901 - INFO - Verified VN network id 7 for VN 555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:53,902 - INFO - Verifications in API Server for VN ctest-vn-86097808 passed
2024-10-17 13:43:53,902 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:53,971 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f
2024-10-17 13:43:54,030 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f
2024-10-17 13:43:54,093 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/3b26f441-5889-4643-b69e-b842372d06fe
2024-10-17 13:43:54,206 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01101890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6151484186273075037', 'uuid-lslong': '12062340254915766533'}, 'enable': 'true', 'created': '2024-10-17T13:43:49', 'last-modified': '2024-10-17T13:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.211953'}
2024-10-17 13:43:54,259 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 13:43:54,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86097808 passed
2024-10-17 13:43:54,260 - DEBUG - ====Verifying policy data for ctest-vn-86097808 in API_Server ======
2024-10-17 13:43:54,260 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-10-17 13:43:54,313 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea
2024-10-17 13:43:54,385 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8
2024-10-17 13:43:54,498 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905
2024-10-17 13:43:54,559 - DEBUG - ==>Verifying data for policy with id: 98b39910-71d1-44da-a87c-551eac2f8f6b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']
2024-10-17 13:43:54,559 - INFO - VN ctest-vn-86097808 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 13:43:54,559 - DEBUG - Verifying the vn in opserver
2024-10-17 13:43:54,559 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808 virtual network link through opserver 10.0.0.12
2024-10-17 13:43:54,559 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-17 13:43:54,950 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-17 13:43:55,101 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808?flat'}
2024-10-17 13:43:55,101 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808 is found in opserver
2024-10-17 13:43:55,205 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 13:43:55,257 - DEBUG - VRF ids for VN ctest-vn-86097808: {}
2024-10-17 13:43:55,257 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-10-17 13:43:55,313 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea
2024-10-17 13:43:55,377 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8
2024-10-17 13:43:55,478 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:55,543 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:55,611 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438
2024-10-17 13:43:55,670 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438
2024-10-17 13:43:55,730 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/839416de-eb10-4a43-8ce6-52f4f6d1f100
2024-10-17 13:43:55,794 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 13:43:55,794 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:55,860 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438
2024-10-17 13:43:55,935 - INFO - Verified VN network id 8 for VN 3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:55,935 - INFO - Verifications in API Server for VN ctest-vn-25127302 passed
2024-10-17 13:43:55,935 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:55,999 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438
2024-10-17 13:43:56,058 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438
2024-10-17 13:43:56,118 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/839416de-eb10-4a43-8ce6-52f4f6d1f100
2024-10-17 13:43:56,234 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01101890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4584377604090249432', 'uuid-lslong': '12036924395278075935'}, 'enable': 'true', 'created': '2024-10-17T13:43:50', 'last-modified': '2024-10-17T13:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.813365'}
2024-10-17 13:43:56,286 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 13:43:56,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25127302 passed
2024-10-17 13:43:56,286 - DEBUG - ====Verifying policy data for ctest-vn-25127302 in API_Server ======
2024-10-17 13:43:56,287 - DEBUG - Requesting: https://10.0.0.12:8082/domains
2024-10-17 13:43:56,341 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea
2024-10-17 13:43:56,405 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8
2024-10-17 13:43:56,530 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f
2024-10-17 13:43:56,599 - DEBUG - ==>Verifying data for policy with id: 98b39910-71d1-44da-a87c-551eac2f8f6b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']
2024-10-17 13:43:56,599 - INFO - VN ctest-vn-25127302 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 13:43:56,599 - DEBUG - Verifying the vn in opserver
2024-10-17 13:43:56,601 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302 virtual network link through opserver 10.0.0.12
2024-10-17 13:43:56,601 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-17 13:43:56,662 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302?flat'}
2024-10-17 13:43:56,662 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302 is found in opserver
2024-10-17 13:43:56,765 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 13:43:56,817 - DEBUG - VRF ids for VN ctest-vn-25127302: {}
2024-10-17 13:43:56,902 - DEBUG - Services list from nova: [