2025-02-10 17:39:43,839 - INFO - Domain Default found not creating
2025-02-10 17:39:43,964 - INFO - Project ctest-TestBasicPolicy-72811583 not found, creating it
2025-02-10 17:39:44,401 - INFO - Created Project:ctest-TestBasicPolicy-72811583, ID : e6cc98c0-02e7-442a-90a6-16f47e4bec07
2025-02-10 17:39:45,863 - INFO - ================================================================================
2025-02-10 17:39:45,863 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 17:39:45,863 - 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-02-10 17:39:46,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with
2025-02-10 17:39:46,123 - INFO - Initial checks done. Running the testcase now
2025-02-10 17:39:46,123 - INFO -
2025-02-10 17:39:46,689 - DEBUG - Response for create_network : {'network': {'id': 'cd798956-5219-48ec-9955-0a2bdafa08c7', 'name': 'ctest-vn-75161565', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'project_id': 'e6cc98c002e7442a90a616f47e4bec07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-vn-75161565'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 17:39:46,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '218ed433-e353-45b9-8439-8878b41bc28f', 'name': '', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'network_id': 'cd798956-5219-48ec-9955-0a2bdafa08c7', 'ip_version': 4, 'cidr': '153.233.251.192/26', 'allocation_pools': [{'start': '153.233.251.194', 'end': '153.233.251.254'}], 'gateway_ip': '153.233.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.233.251.194', 'tags': [], 'project_id': 'e6cc98c002e7442a90a616f47e4bec07'}}
2025-02-10 17:39:46,889 - INFO - Created VN ctest-vn-75161565
2025-02-10 17:39:46,940 - DEBUG - VN ctest-vn-75161565 UUID is cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:47,255 - DEBUG - Response for create_network : {'network': {'id': '973212fc-5722-493d-8b62-c8a1c6dd8b06', 'name': 'ctest-vn-43035849', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'project_id': 'e6cc98c002e7442a90a616f47e4bec07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-vn-43035849'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 17:39:47,402 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f14d06a8-8af2-48a1-ba9f-933d6e2a2417', 'name': '', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'network_id': '973212fc-5722-493d-8b62-c8a1c6dd8b06', 'ip_version': 4, 'cidr': '165.141.179.128/26', 'allocation_pools': [{'start': '165.141.179.130', 'end': '165.141.179.190'}], 'gateway_ip': '165.141.179.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.141.179.130', 'tags': [], 'project_id': 'e6cc98c002e7442a90a616f47e4bec07'}}
2025-02-10 17:39:47,420 - INFO - Created VN ctest-vn-43035849
2025-02-10 17:39:47,476 - DEBUG - VN ctest-vn-43035849 UUID is 973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:47,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565, 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-72811583:ctest-vn-43035849, 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-02-10 17:39:47,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd798956-5219-48ec-9955-0a2bdafa08c7', 'name': 'ctest-vn-75161565', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'project_id': 'e6cc98c002e7442a90a616f47e4bec07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['218ed433-e353-45b9-8439-8878b41bc28f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-vn-75161565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-policy-allow-all-36488951']], 'subnet_ipam': [{'subnet_cidr': '153.233.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 17:39:48,152 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '973212fc-5722-493d-8b62-c8a1c6dd8b06', 'name': 'ctest-vn-43035849', 'tenant_id': 'e6cc98c002e7442a90a616f47e4bec07', 'project_id': 'e6cc98c002e7442a90a616f47e4bec07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f14d06a8-8af2-48a1-ba9f-933d6e2a2417'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-vn-43035849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-policy-allow-all-36488951']], 'subnet_ipam': [{'subnet_cidr': '165.141.179.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 17:39:48,304 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-10 17:39:48,603 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-10 17:39:48,632 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4f62b827-e11c-4665-a6b3-3012057af6bc
2025-02-10 17:39:48,645 - DEBUG - Requesting: http://10.0.0.31:8082/project/e6cc98c0-02e7-442a-90a6-16f47e4bec07
2025-02-10 17:39:48,716 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,727 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,736 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0487e4a3-fde1-483b-92ae-d7834eac08a6
2025-02-10 17:39:48,743 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0487e4a3-fde1-483b-92ae-d7834eac08a6
2025-02-10 17:39:48,750 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c3efcd8a-5a88-415a-8837-ff9162bbf2ae
2025-02-10 17:39:48,756 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 17:39:48,756 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,765 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0487e4a3-fde1-483b-92ae-d7834eac08a6
2025-02-10 17:39:48,778 - INFO - Verified VN network id 9 for VN cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,778 - INFO - Verifications in API Server for VN ctest-vn-75161565 passed
2025-02-10 17:39:48,778 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,789 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0487e4a3-fde1-483b-92ae-d7834eac08a6
2025-02-10 17:39:48,796 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0487e4a3-fde1-483b-92ae-d7834eac08a6
2025-02-10 17:39:48,803 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c3efcd8a-5a88-415a-8837-ff9162bbf2ae
2025-02-10 17:39:48,814 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72811583', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14806016253794797804', 'uuid-lslong': '11048748444297070791'}, 'enable': 'true', 'created': '2025-02-10T17:39:46', 'last-modified': '2025-02-10T17:39:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915635'}
2025-02-10 17:39:48,821 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 17:39:48,821 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75161565 passed
2025-02-10 17:39:48,821 - DEBUG - ====Verifying policy data for ctest-vn-75161565 in API_Server ======
2025-02-10 17:39:48,821 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-10 17:39:48,827 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4f62b827-e11c-4665-a6b3-3012057af6bc
2025-02-10 17:39:48,837 - DEBUG - Requesting: http://10.0.0.31:8082/project/e6cc98c0-02e7-442a-90a6-16f47e4bec07
2025-02-10 17:39:48,913 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cd798956-5219-48ec-9955-0a2bdafa08c7
2025-02-10 17:39:48,923 - DEBUG - ==>Verifying data for policy with id: ae62f364-cee5-423b-b6ca-95659daca735, fqn: ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-policy-allow-all-36488951']
2025-02-10 17:39:48,923 - INFO - VN ctest-vn-75161565 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 17:39:48,923 - DEBUG - Verifying the vn in opserver
2025-02-10 17:39:48,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565 virtual network link through opserver 10.0.0.31
2025-02-10 17:39:48,923 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-10 17:39:49,218 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-10 17:39:49,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565?flat'}
2025-02-10 17:39:49,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-75161565 is found in opserver
2025-02-10 17:39:49,287 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 17:39:49,292 - DEBUG - VRF ids for VN ctest-vn-75161565: {}
2025-02-10 17:39:49,292 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-10 17:39:49,298 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4f62b827-e11c-4665-a6b3-3012057af6bc
2025-02-10 17:39:49,309 - DEBUG - Requesting: http://10.0.0.31:8082/project/e6cc98c0-02e7-442a-90a6-16f47e4bec07
2025-02-10 17:39:49,384 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,396 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,405 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a309d269-2541-466c-93a0-c21521123c79
2025-02-10 17:39:49,411 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a309d269-2541-466c-93a0-c21521123c79
2025-02-10 17:39:49,418 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/4517e96d-a251-462e-8eb6-c8e79f6044b5
2025-02-10 17:39:49,423 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 17:39:49,423 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,432 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a309d269-2541-466c-93a0-c21521123c79
2025-02-10 17:39:49,445 - INFO - Verified VN network id 10 for VN 973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,445 - INFO - Verifications in API Server for VN ctest-vn-43035849 passed
2025-02-10 17:39:49,445 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,454 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a309d269-2541-466c-93a0-c21521123c79
2025-02-10 17:39:49,461 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a309d269-2541-466c-93a0-c21521123c79
2025-02-10 17:39:49,467 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/4517e96d-a251-462e-8eb6-c8e79f6044b5
2025-02-10 17:39:49,478 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-43035849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72811583', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10894791323565574461', 'uuid-lslong': '10043810716141325062'}, 'enable': 'true', 'created': '2025-02-10T17:39:47', 'last-modified': '2025-02-10T17:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344954'}
2025-02-10 17:39:49,485 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 17:39:49,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43035849 passed
2025-02-10 17:39:49,485 - DEBUG - ====Verifying policy data for ctest-vn-43035849 in API_Server ======
2025-02-10 17:39:49,485 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-10 17:39:49,490 - DEBUG - Requesting: http://10.0.0.31:8082/domain/4f62b827-e11c-4665-a6b3-3012057af6bc
2025-02-10 17:39:49,501 - DEBUG - Requesting: http://10.0.0.31:8082/project/e6cc98c0-02e7-442a-90a6-16f47e4bec07
2025-02-10 17:39:49,577 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/973212fc-5722-493d-8b62-c8a1c6dd8b06
2025-02-10 17:39:49,587 - DEBUG - ==>Verifying data for policy with id: ae62f364-cee5-423b-b6ca-95659daca735, fqn: ['default-domain', 'ctest-TestBasicPolicy-72811583', 'ctest-policy-allow-all-36488951']
2025-02-10 17:39:49,587 - INFO - VN ctest-vn-43035849 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 17:39:49,587 - DEBUG - Verifying the vn in opserver
2025-02-10 17:39:49,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-43035849 virtual network link through opserver 10.0.0.31
2025-02-10 17:39:49,587 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-10 17:39:49,597 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-43035849', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-43035849?flat'}
2025-02-10 17:39:49,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72811583:ctest-vn-43035849 is found in opserver
2025-02-10 17:39:49,607 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 17:39:49,612 - DEBUG - VRF ids for VN ctest-vn-43035849: {}
2025-02-10 17:39:49,666 - DEBUG - Services list from nova: [