2025-05-03 09:13:32,803 - INFO - Domain Default found not creating
2025-05-03 09:13:33,004 - INFO - Project ctest-TestBasicPolicy-73589148 not found, creating it
2025-05-03 09:13:33,429 - INFO - Created Project:ctest-TestBasicPolicy-73589148, ID : 4e54a1bb-c944-41f8-af3d-afa5e889f386
2025-05-03 09:13:34,766 - INFO - ================================================================================
2025-05-03 09:13:34,766 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-03 09:13:34,766 - 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-05-03 09:13:35,027 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with
2025-05-03 09:13:35,027 - INFO - Initial checks done. Running the testcase now
2025-05-03 09:13:35,027 - INFO -
2025-05-03 09:13:35,545 - DEBUG - Response for create_network : {'network': {'id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'name': 'ctest-vn-31024809', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-31024809'], 'port_security_enabled': True, 'description': ''}}
2025-05-03 09:13:35,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cfc62e1-44d4-4538-8a24-d3c5f7a8e4dc', 'name': '', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'network_id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'ip_version': 4, 'cidr': '152.91.88.64/26', 'allocation_pools': [{'start': '152.91.88.66', 'end': '152.91.88.126'}], 'gateway_ip': '152.91.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.91.88.66', 'tags': [], 'project_id': '4e54a1bbc94441f8af3dafa5e889f386'}}
2025-05-03 09:13:35,741 - INFO - Created VN ctest-vn-31024809
2025-05-03 09:13:35,798 - DEBUG - VN ctest-vn-31024809 UUID is 4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:36,151 - DEBUG - Response for create_network : {'network': {'id': '0be9d695-c405-406f-8937-d7eb459f5493', 'name': 'ctest-vn-83166066', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-83166066'], 'port_security_enabled': True, 'description': ''}}
2025-05-03 09:13:36,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4465281-9a56-4c4c-b9a4-5a555c524815', 'name': '', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'network_id': '0be9d695-c405-406f-8937-d7eb459f5493', 'ip_version': 4, 'cidr': '18.250.70.64/26', 'allocation_pools': [{'start': '18.250.70.66', 'end': '18.250.70.126'}], 'gateway_ip': '18.250.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.250.70.66', 'tags': [], 'project_id': '4e54a1bbc94441f8af3dafa5e889f386'}}
2025-05-03 09:13:36,319 - INFO - Created VN ctest-vn-83166066
2025-05-03 09:13:36,374 - DEBUG - VN ctest-vn-83166066 UUID is 0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:36,526 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809, 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-73589148:ctest-vn-83166066, 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-05-03 09:13:36,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'name': 'ctest-vn-31024809', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cfc62e1-44d4-4538-8a24-d3c5f7a8e4dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-31024809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']], 'subnet_ipam': [{'subnet_cidr': '152.91.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-03 09:13:37,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0be9d695-c405-406f-8937-d7eb459f5493', 'name': 'ctest-vn-83166066', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4465281-9a56-4c4c-b9a4-5a555c524815'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-83166066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']], 'subnet_ipam': [{'subnet_cidr': '18.250.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-03 09:13:37,203 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-03 09:13:37,500 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-03 09:13:37,524 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60
2025-05-03 09:13:37,534 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386
2025-05-03 09:13:37,610 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,625 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,634 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c
2025-05-03 09:13:37,647 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c
2025-05-03 09:13:37,652 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eb278140-b181-4fd8-aa3e-d32465c7dd11
2025-05-03 09:13:37,657 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-03 09:13:37,657 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,665 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c
2025-05-03 09:13:37,676 - INFO - Verified VN network id 8 for VN 4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,676 - INFO - Verifications in API Server for VN ctest-vn-31024809 passed
2025-05-03 09:13:37,676 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,683 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c
2025-05-03 09:13:37,690 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c
2025-05-03 09:13:37,694 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eb278140-b181-4fd8-aa3e-d32465c7dd11
2025-05-03 09:13:37,704 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73589148', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5751799658867998742', 'uuid-lslong': '10730946205084235365'}, 'enable': 'true', 'created': '2025-05-03T09:13:35', 'last-modified': '2025-05-03T09:13:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922406'}
2025-05-03 09:13:37,709 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-03 09:13:37,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31024809 passed
2025-05-03 09:13:37,709 - DEBUG - ====Verifying policy data for ctest-vn-31024809 in API_Server ======
2025-05-03 09:13:37,709 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-03 09:13:37,714 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60
2025-05-03 09:13:37,724 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386
2025-05-03 09:13:37,794 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665
2025-05-03 09:13:37,801 - DEBUG - ==>Verifying data for policy with id: e2eb8315-e67c-46de-ab9d-429e53070df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']
2025-05-03 09:13:37,802 - INFO - VN ctest-vn-31024809 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-03 09:13:37,802 - DEBUG - Verifying the vn in opserver
2025-05-03 09:13:37,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809 virtual network link through opserver 10.0.0.57
2025-05-03 09:13:37,802 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-03 09:13:38,090 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-03 09:13:38,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809?flat'}
2025-05-03 09:13:38,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809 is found in opserver
2025-05-03 09:13:38,144 - DEBUG - Do not have enough data to verify VN in agent
2025-05-03 09:13:38,147 - DEBUG - VRF ids for VN ctest-vn-31024809: {}
2025-05-03 09:13:38,147 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-03 09:13:38,152 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60
2025-05-03 09:13:38,212 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386
2025-05-03 09:13:38,283 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,292 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,299 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811
2025-05-03 09:13:38,304 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811
2025-05-03 09:13:38,309 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f7adcf56-f7ae-4631-88c4-3e88e92c416b
2025-05-03 09:13:38,313 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-03 09:13:38,313 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,320 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811
2025-05-03 09:13:38,330 - INFO - Verified VN network id 9 for VN 0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,330 - INFO - Verifications in API Server for VN ctest-vn-83166066 passed
2025-05-03 09:13:38,330 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,337 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811
2025-05-03 09:13:38,342 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811
2025-05-03 09:13:38,346 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f7adcf56-f7ae-4631-88c4-3e88e92c416b
2025-05-03 09:13:38,355 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73589148', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '858453142717939823', 'uuid-lslong': '9887608912400569491'}, 'enable': 'true', 'created': '2025-05-03T09:13:36', 'last-modified': '2025-05-03T09:13:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343905'}
2025-05-03 09:13:38,359 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-03 09:13:38,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83166066 passed
2025-05-03 09:13:38,360 - DEBUG - ====Verifying policy data for ctest-vn-83166066 in API_Server ======
2025-05-03 09:13:38,360 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-03 09:13:38,363 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60
2025-05-03 09:13:38,371 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386
2025-05-03 09:13:38,440 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493
2025-05-03 09:13:38,447 - DEBUG - ==>Verifying data for policy with id: e2eb8315-e67c-46de-ab9d-429e53070df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']
2025-05-03 09:13:38,447 - INFO - VN ctest-vn-83166066 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-03 09:13:38,447 - DEBUG - Verifying the vn in opserver
2025-05-03 09:13:38,447 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066 virtual network link through opserver 10.0.0.57
2025-05-03 09:13:38,447 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-03 09:13:38,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066?flat'}
2025-05-03 09:13:38,455 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066 is found in opserver
2025-05-03 09:13:38,462 - DEBUG - Do not have enough data to verify VN in agent
2025-05-03 09:13:38,466 - DEBUG - VRF ids for VN ctest-vn-83166066: {}
2025-05-03 09:13:38,513 - DEBUG - Services list from nova: [