2024-10-24 02:41:19,418 - INFO - Domain Default found not creating
2024-10-24 02:41:19,593 - INFO - Project ctest-TestBasicPolicy-96648863 not found, creating it
2024-10-24 02:41:20,056 - INFO - Created Project:ctest-TestBasicPolicy-96648863, ID : 9d275851-f307-436c-bc7f-a87ac317cbb8
2024-10-24 02:41:21,567 - INFO - ================================================================================
2024-10-24 02:41:21,567 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 02:41:21,567 - 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-24 02:41:21,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with
2024-10-24 02:41:21,825 - INFO - Initial checks done. Running the testcase now
2024-10-24 02:41:21,825 - INFO -
2024-10-24 02:41:22,395 - DEBUG - Response for create_network : {'network': {'id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'name': 'ctest-vn-43326723', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-43326723'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:41:22,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d64a965-cfd1-441c-b931-9c730466b8da', 'name': '', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'network_id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'ip_version': 4, 'cidr': '154.174.182.128/26', 'allocation_pools': [{'start': '154.174.182.130', 'end': '154.174.182.190'}], 'gateway_ip': '154.174.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.174.182.130', 'tags': [], 'project_id': '9d275851f307436cbc7fa87ac317cbb8'}}
2024-10-24 02:41:22,610 - INFO - Created VN ctest-vn-43326723
2024-10-24 02:41:22,666 - DEBUG - VN ctest-vn-43326723 UUID is 24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:22,948 - DEBUG - Response for create_network : {'network': {'id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'name': 'ctest-vn-31405661', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-31405661'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:41:23,166 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6ee0231-119c-403e-8bea-90a9ba0599b8', 'name': '', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'network_id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'ip_version': 4, 'cidr': '65.188.77.64/26', 'allocation_pools': [{'start': '65.188.77.66', 'end': '65.188.77.126'}], 'gateway_ip': '65.188.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.188.77.66', 'tags': [], 'project_id': '9d275851f307436cbc7fa87ac317cbb8'}}
2024-10-24 02:41:23,184 - INFO - Created VN ctest-vn-31405661
2024-10-24 02:41:23,234 - DEBUG - VN ctest-vn-31405661 UUID is ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:23,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723, 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-96648863:ctest-vn-31405661, 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-24 02:41:23,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'name': 'ctest-vn-43326723', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d64a965-cfd1-441c-b931-9c730466b8da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-43326723'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']], 'subnet_ipam': [{'subnet_cidr': '154.174.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:41:23,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'name': 'ctest-vn-31405661', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6ee0231-119c-403e-8bea-90a9ba0599b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-31405661'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']], 'subnet_ipam': [{'subnet_cidr': '65.188.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:41:24,066 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-24 02:41:24,367 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-24 02:41:24,399 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6
2024-10-24 02:41:24,412 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8
2024-10-24 02:41:24,490 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,500 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,509 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227
2024-10-24 02:41:24,516 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227
2024-10-24 02:41:24,524 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0816a785-caad-4bef-91d5-91a549808982
2024-10-24 02:41:24,532 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 02:41:24,532 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,542 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227
2024-10-24 02:41:24,557 - INFO - Verified VN network id 9 for VN 24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,558 - INFO - Verifications in API Server for VN ctest-vn-43326723 passed
2024-10-24 02:41:24,558 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,566 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227
2024-10-24 02:41:24,576 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227
2024-10-24 02:41:24,583 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0816a785-caad-4bef-91d5-91a549808982
2024-10-24 02:41:24,600 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96648863', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2664881470465263131', 'uuid-lslong': '10117361809624480754'}, 'enable': 'true', 'created': '2024-10-24T02:41:22', 'last-modified': '2024-10-24T02:41:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960400'}
2024-10-24 02:41:24,606 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 02:41:24,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43326723 passed
2024-10-24 02:41:24,607 - DEBUG - ====Verifying policy data for ctest-vn-43326723 in API_Server ======
2024-10-24 02:41:24,607 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-24 02:41:24,630 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6
2024-10-24 02:41:24,687 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8
2024-10-24 02:41:24,841 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2
2024-10-24 02:41:24,862 - DEBUG - ==>Verifying data for policy with id: 5355d1e7-72c6-488d-9feb-e347c03e876a, fqn: ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']
2024-10-24 02:41:24,862 - INFO - VN ctest-vn-43326723 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 02:41:24,862 - DEBUG - Verifying the vn in opserver
2024-10-24 02:41:24,862 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723 virtual network link through opserver 10.0.0.40
2024-10-24 02:41:24,862 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-24 02:41:25,196 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-24 02:41:25,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723?flat'}
2024-10-24 02:41:25,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723 is found in opserver
2024-10-24 02:41:25,306 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 02:41:25,311 - DEBUG - VRF ids for VN ctest-vn-43326723: {}
2024-10-24 02:41:25,311 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-24 02:41:25,331 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6
2024-10-24 02:41:25,359 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8
2024-10-24 02:41:25,432 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,455 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,465 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b
2024-10-24 02:41:25,480 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b
2024-10-24 02:41:25,488 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5a29d1d7-13c2-453d-941b-1f9516eca0ca
2024-10-24 02:41:25,495 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 02:41:25,495 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,506 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b
2024-10-24 02:41:25,522 - INFO - Verified VN network id 10 for VN ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,523 - INFO - Verifications in API Server for VN ctest-vn-31405661 passed
2024-10-24 02:41:25,523 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,532 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b
2024-10-24 02:41:25,539 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b
2024-10-24 02:41:25,547 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5a29d1d7-13c2-453d-941b-1f9516eca0ca
2024-10-24 02:41:25,560 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96648863', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12572265924146710311', 'uuid-lslong': '12801804395302283369'}, 'enable': 'true', 'created': '2024-10-24T02:41:22', 'last-modified': '2024-10-24T02:41:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.683235'}
2024-10-24 02:41:25,567 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 02:41:25,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31405661 passed
2024-10-24 02:41:25,567 - DEBUG - ====Verifying policy data for ctest-vn-31405661 in API_Server ======
2024-10-24 02:41:25,567 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-24 02:41:25,574 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6
2024-10-24 02:41:25,589 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8
2024-10-24 02:41:25,658 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869
2024-10-24 02:41:25,667 - DEBUG - ==>Verifying data for policy with id: 5355d1e7-72c6-488d-9feb-e347c03e876a, fqn: ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']
2024-10-24 02:41:25,667 - INFO - VN ctest-vn-31405661 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 02:41:25,667 - DEBUG - Verifying the vn in opserver
2024-10-24 02:41:25,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661 virtual network link through opserver 10.0.0.40
2024-10-24 02:41:25,667 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-24 02:41:25,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661?flat'}
2024-10-24 02:41:25,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661 is found in opserver
2024-10-24 02:41:25,690 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 02:41:25,695 - DEBUG - VRF ids for VN ctest-vn-31405661: {}
2024-10-24 02:41:25,759 - DEBUG - Services list from nova: [