2025-06-08 21:45:33,791 - INFO - Domain Default found not creating
2025-06-08 21:45:33,946 - INFO - Project ctest-TestBasicPolicy-50835927 not found, creating it
2025-06-08 21:45:34,418 - INFO - Created Project:ctest-TestBasicPolicy-50835927, ID : 37f0cba9-ff11-48fa-bad6-375177baf3bf
2025-06-08 21:45:35,839 - INFO - ================================================================================
2025-06-08 21:45:35,839 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-08 21:45:35,839 - 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-06-08 21:45:36,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-08 21:45:36,105 - INFO - Initial checks done. Running the testcase now
2025-06-08 21:45:36,105 - INFO -
2025-06-08 21:45:36,656 - DEBUG - Response for create_network : {'network': {'id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'name': 'ctest-vn-36774167', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-36774167'], 'port_security_enabled': True, 'description': ''}}
2025-06-08 21:45:36,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6514504-b88d-4584-93fc-a421d4495726', 'name': '', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'network_id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'ip_version': 4, 'cidr': '52.112.29.128/26', 'allocation_pools': [{'start': '52.112.29.130', 'end': '52.112.29.190'}], 'gateway_ip': '52.112.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.112.29.130', 'tags': [], 'project_id': '37f0cba9ff1148fabad6375177baf3bf'}}
2025-06-08 21:45:36,846 - INFO - Created VN ctest-vn-36774167
2025-06-08 21:45:36,898 - DEBUG - VN ctest-vn-36774167 UUID is d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:37,214 - DEBUG - Response for create_network : {'network': {'id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'name': 'ctest-vn-76167154', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-76167154'], 'port_security_enabled': True, 'description': ''}}
2025-06-08 21:45:37,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '216e8ad1-3f17-4653-89c0-6f21542d956c', 'name': '', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'network_id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'ip_version': 4, 'cidr': '27.7.99.128/26', 'allocation_pools': [{'start': '27.7.99.130', 'end': '27.7.99.190'}], 'gateway_ip': '27.7.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.7.99.130', 'tags': [], 'project_id': '37f0cba9ff1148fabad6375177baf3bf'}}
2025-06-08 21:45:37,422 - INFO - Created VN ctest-vn-76167154
2025-06-08 21:45:37,474 - DEBUG - VN ctest-vn-76167154 UUID is d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:37,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167, 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-50835927:ctest-vn-76167154, 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-06-08 21:45:38,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'name': 'ctest-vn-36774167', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6514504-b88d-4584-93fc-a421d4495726'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-36774167'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']], 'subnet_ipam': [{'subnet_cidr': '52.112.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-08 21:45:38,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'name': 'ctest-vn-76167154', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['216e8ad1-3f17-4653-89c0-6f21542d956c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-76167154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']], 'subnet_ipam': [{'subnet_cidr': '27.7.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-08 21:45:38,410 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-08 21:45:38,707 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-08 21:45:38,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc
2025-06-08 21:45:38,748 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf
2025-06-08 21:45:38,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:38,833 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:38,843 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f
2025-06-08 21:45:38,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f
2025-06-08 21:45:38,855 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abeda956-3027-4510-8b97-da984344afcf
2025-06-08 21:45:38,861 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-08 21:45:38,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:38,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f
2025-06-08 21:45:38,883 - INFO - Verified VN network id 8 for VN d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:38,883 - INFO - Verifications in API Server for VN ctest-vn-36774167 passed
2025-06-08 21:45:38,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:38,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f
2025-06-08 21:45:38,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f
2025-06-08 21:45:38,905 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abeda956-3027-4510-8b97-da984344afcf
2025-06-08 21:45:38,918 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50835927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15550259346390338092', 'uuid-lslong': '13368107493942597646'}, 'enable': 'true', 'created': '2025-06-08T21:45:36', 'last-modified': '2025-06-08T21:45:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924113'}
2025-06-08 21:45:38,924 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-08 21:45:38,924 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36774167 passed
2025-06-08 21:45:38,924 - DEBUG - ====Verifying policy data for ctest-vn-36774167 in API_Server ======
2025-06-08 21:45:38,924 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-08 21:45:38,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc
2025-06-08 21:45:38,943 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf
2025-06-08 21:45:39,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e
2025-06-08 21:45:39,026 - DEBUG - ==>Verifying data for policy with id: eb2dd893-d485-4bbe-acaa-4e697d9223b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']
2025-06-08 21:45:39,027 - INFO - VN ctest-vn-36774167 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-08 21:45:39,027 - DEBUG - Verifying the vn in opserver
2025-06-08 21:45:39,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167 virtual network link through opserver 10.0.0.38
2025-06-08 21:45:39,027 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-08 21:45:39,320 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-08 21:45:39,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167?flat'}
2025-06-08 21:45:39,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167 is found in opserver
2025-06-08 21:45:39,385 - DEBUG - Do not have enough data to verify VN in agent
2025-06-08 21:45:39,390 - DEBUG - VRF ids for VN ctest-vn-36774167: {}
2025-06-08 21:45:39,390 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-08 21:45:39,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc
2025-06-08 21:45:39,408 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf
2025-06-08 21:45:39,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,494 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c
2025-06-08 21:45:39,509 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c
2025-06-08 21:45:39,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d762580c-20bd-4955-8f40-a6e9c4a72d82
2025-06-08 21:45:39,522 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-08 21:45:39,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c
2025-06-08 21:45:39,547 - INFO - Verified VN network id 9 for VN d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,547 - INFO - Verifications in API Server for VN ctest-vn-76167154 passed
2025-06-08 21:45:39,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c
2025-06-08 21:45:39,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c
2025-06-08 21:45:39,568 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d762580c-20bd-4955-8f40-a6e9c4a72d82
2025-06-08 21:45:39,579 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50835927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15421875639405135729', 'uuid-lslong': '10578067957993676579'}, 'enable': 'true', 'created': '2025-06-08T21:45:37', 'last-modified': '2025-06-08T21:45:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361759'}
2025-06-08 21:45:39,585 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-08 21:45:39,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76167154 passed
2025-06-08 21:45:39,586 - DEBUG - ====Verifying policy data for ctest-vn-76167154 in API_Server ======
2025-06-08 21:45:39,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-08 21:45:39,592 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc
2025-06-08 21:45:39,603 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf
2025-06-08 21:45:39,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23
2025-06-08 21:45:39,691 - DEBUG - ==>Verifying data for policy with id: eb2dd893-d485-4bbe-acaa-4e697d9223b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']
2025-06-08 21:45:39,691 - INFO - VN ctest-vn-76167154 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-08 21:45:39,691 - DEBUG - Verifying the vn in opserver
2025-06-08 21:45:39,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154 virtual network link through opserver 10.0.0.38
2025-06-08 21:45:39,691 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-08 21:45:39,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154?flat'}
2025-06-08 21:45:39,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154 is found in opserver
2025-06-08 21:45:39,713 - DEBUG - Do not have enough data to verify VN in agent
2025-06-08 21:45:39,719 - DEBUG - VRF ids for VN ctest-vn-76167154: {}
2025-06-08 21:45:39,776 - DEBUG - Services list from nova: [