2025-06-17 21:36:11,332 - INFO - Domain Default found not creating
2025-06-17 21:36:11,471 - INFO - Project ctest-TestBasicPolicy-28087627 not found, creating it
2025-06-17 21:36:11,952 - INFO - Created Project:ctest-TestBasicPolicy-28087627, ID : d6c23343-d264-491d-b709-fc1bfdaee783
2025-06-17 21:36:13,421 - INFO - ================================================================================
2025-06-17 21:36:13,421 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 21:36:13,421 - 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-17 21:36:13,684 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-06-17 21:36:13,684 - INFO - Initial checks done. Running the testcase now
2025-06-17 21:36:13,684 - INFO -
2025-06-17 21:36:14,267 - DEBUG - Response for create_network : {'network': {'id': '840187e0-679b-4556-a29d-b43e437462df', 'name': 'ctest-vn-60748120', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'project_id': 'd6c23343d264491db709fc1bfdaee783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-vn-60748120'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 21:36:14,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2f8e6cf-5ffe-4176-9015-163278b94926', 'name': '', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'network_id': '840187e0-679b-4556-a29d-b43e437462df', 'ip_version': 4, 'cidr': '30.154.20.128/26', 'allocation_pools': [{'start': '30.154.20.130', 'end': '30.154.20.190'}], 'gateway_ip': '30.154.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.154.20.130', 'tags': [], 'project_id': 'd6c23343d264491db709fc1bfdaee783'}}
2025-06-17 21:36:14,437 - INFO - Created VN ctest-vn-60748120
2025-06-17 21:36:14,488 - DEBUG - VN ctest-vn-60748120 UUID is 840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:14,803 - DEBUG - Response for create_network : {'network': {'id': '3eb774f8-a7cb-4051-9b27-8956cb3e7e74', 'name': 'ctest-vn-27402767', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'project_id': 'd6c23343d264491db709fc1bfdaee783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-vn-27402767'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 21:36:14,950 - DEBUG - Response for create_subnet : {'subnet': {'id': '95aa7d51-8872-4adf-813b-c0d63d75372b', 'name': '', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'network_id': '3eb774f8-a7cb-4051-9b27-8956cb3e7e74', 'ip_version': 4, 'cidr': '57.187.84.64/26', 'allocation_pools': [{'start': '57.187.84.66', 'end': '57.187.84.126'}], 'gateway_ip': '57.187.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.187.84.66', 'tags': [], 'project_id': 'd6c23343d264491db709fc1bfdaee783'}}
2025-06-17 21:36:14,968 - INFO - Created VN ctest-vn-27402767
2025-06-17 21:36:15,020 - DEBUG - VN ctest-vn-27402767 UUID is 3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:15,168 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120, 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-28087627:ctest-vn-27402767, 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-17 21:36:15,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '840187e0-679b-4556-a29d-b43e437462df', 'name': 'ctest-vn-60748120', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'project_id': 'd6c23343d264491db709fc1bfdaee783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2f8e6cf-5ffe-4176-9015-163278b94926'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-vn-60748120'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-policy-allow-all-63435817']], 'subnet_ipam': [{'subnet_cidr': '30.154.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 21:36:15,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3eb774f8-a7cb-4051-9b27-8956cb3e7e74', 'name': 'ctest-vn-27402767', 'tenant_id': 'd6c23343d264491db709fc1bfdaee783', 'project_id': 'd6c23343d264491db709fc1bfdaee783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95aa7d51-8872-4adf-813b-c0d63d75372b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-vn-27402767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-policy-allow-all-63435817']], 'subnet_ipam': [{'subnet_cidr': '57.187.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 21:36:15,842 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-17 21:36:16,135 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-17 21:36:16,161 - DEBUG - Requesting: http://10.0.0.49:8082/domain/47453156-2b7c-46d2-91f2-dfd6d64463b7
2025-06-17 21:36:16,174 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c23343-d264-491d-b709-fc1bfdaee783
2025-06-17 21:36:16,246 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,257 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,266 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/484896e2-126d-4c10-8aa2-e085c9d8edf7
2025-06-17 21:36:16,273 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/484896e2-126d-4c10-8aa2-e085c9d8edf7
2025-06-17 21:36:16,281 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b387bea7-0574-42fa-a139-92750cfbf84b
2025-06-17 21:36:16,290 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 21:36:16,290 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,301 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/484896e2-126d-4c10-8aa2-e085c9d8edf7
2025-06-17 21:36:16,315 - INFO - Verified VN network id 8 for VN 840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,316 - INFO - Verifications in API Server for VN ctest-vn-60748120 passed
2025-06-17 21:36:16,316 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,327 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/484896e2-126d-4c10-8aa2-e085c9d8edf7
2025-06-17 21:36:16,335 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/484896e2-126d-4c10-8aa2-e085c9d8edf7
2025-06-17 21:36:16,341 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b387bea7-0574-42fa-a139-92750cfbf84b
2025-06-17 21:36:16,353 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28087627', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9512033285863851350', 'uuid-lslong': '11717719985000571615'}, 'enable': 'true', 'created': '2025-06-17T21:36:14', 'last-modified': '2025-06-17T21:36:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921571'}
2025-06-17 21:36:16,359 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 21:36:16,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60748120 passed
2025-06-17 21:36:16,359 - DEBUG - ====Verifying policy data for ctest-vn-60748120 in API_Server ======
2025-06-17 21:36:16,359 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-17 21:36:16,364 - DEBUG - Requesting: http://10.0.0.49:8082/domain/47453156-2b7c-46d2-91f2-dfd6d64463b7
2025-06-17 21:36:16,375 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c23343-d264-491d-b709-fc1bfdaee783
2025-06-17 21:36:16,445 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/840187e0-679b-4556-a29d-b43e437462df
2025-06-17 21:36:16,454 - DEBUG - ==>Verifying data for policy with id: 3f61d568-6727-4ec8-9bb0-32a0dfa32698, fqn: ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-policy-allow-all-63435817']
2025-06-17 21:36:16,454 - INFO - VN ctest-vn-60748120 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 21:36:16,455 - DEBUG - Verifying the vn in opserver
2025-06-17 21:36:16,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120 virtual network link through opserver 10.0.0.49
2025-06-17 21:36:16,455 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-17 21:36:16,763 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-17 21:36:16,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120?flat'}
2025-06-17 21:36:16,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-60748120 is found in opserver
2025-06-17 21:36:16,826 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 21:36:16,831 - DEBUG - VRF ids for VN ctest-vn-60748120: {}
2025-06-17 21:36:16,831 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-17 21:36:16,836 - DEBUG - Requesting: http://10.0.0.49:8082/domain/47453156-2b7c-46d2-91f2-dfd6d64463b7
2025-06-17 21:36:16,849 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c23343-d264-491d-b709-fc1bfdaee783
2025-06-17 21:36:16,934 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:16,949 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:16,961 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f058f0e3-dafc-4250-87ee-e3f9f6bada0d
2025-06-17 21:36:16,970 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f058f0e3-dafc-4250-87ee-e3f9f6bada0d
2025-06-17 21:36:16,978 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/27df1d2a-8c66-491f-85a4-106ea75cb711
2025-06-17 21:36:16,985 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 21:36:16,985 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:16,994 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f058f0e3-dafc-4250-87ee-e3f9f6bada0d
2025-06-17 21:36:17,009 - INFO - Verified VN network id 9 for VN 3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:17,009 - INFO - Verifications in API Server for VN ctest-vn-27402767 passed
2025-06-17 21:36:17,009 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:17,020 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f058f0e3-dafc-4250-87ee-e3f9f6bada0d
2025-06-17 21:36:17,027 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f058f0e3-dafc-4250-87ee-e3f9f6bada0d
2025-06-17 21:36:17,035 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/27df1d2a-8c66-491f-85a4-106ea75cb711
2025-06-17 21:36:17,049 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-27402767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28087627', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4519209362405408849', 'uuid-lslong': '11180055605840608884'}, 'enable': 'true', 'created': '2025-06-17T21:36:14', 'last-modified': '2025-06-17T21:36:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427442'}
2025-06-17 21:36:17,058 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 21:36:17,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27402767 passed
2025-06-17 21:36:17,058 - DEBUG - ====Verifying policy data for ctest-vn-27402767 in API_Server ======
2025-06-17 21:36:17,058 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-17 21:36:17,066 - DEBUG - Requesting: http://10.0.0.49:8082/domain/47453156-2b7c-46d2-91f2-dfd6d64463b7
2025-06-17 21:36:17,081 - DEBUG - Requesting: http://10.0.0.49:8082/project/d6c23343-d264-491d-b709-fc1bfdaee783
2025-06-17 21:36:17,158 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3eb774f8-a7cb-4051-9b27-8956cb3e7e74
2025-06-17 21:36:17,168 - DEBUG - ==>Verifying data for policy with id: 3f61d568-6727-4ec8-9bb0-32a0dfa32698, fqn: ['default-domain', 'ctest-TestBasicPolicy-28087627', 'ctest-policy-allow-all-63435817']
2025-06-17 21:36:17,168 - INFO - VN ctest-vn-27402767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 21:36:17,168 - DEBUG - Verifying the vn in opserver
2025-06-17 21:36:17,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-27402767 virtual network link through opserver 10.0.0.49
2025-06-17 21:36:17,169 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-17 21:36:17,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-27402767', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-27402767?flat'}
2025-06-17 21:36:17,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28087627:ctest-vn-27402767 is found in opserver
2025-06-17 21:36:17,192 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 21:36:17,198 - DEBUG - VRF ids for VN ctest-vn-27402767: {}
2025-06-17 21:36:17,262 - DEBUG - Services list from nova: [