2025-05-28 12:10:09,147 - INFO - Domain Default found not creating
2025-05-28 12:10:09,301 - INFO - Project ctest-TestBasicPolicy-90254995 not found, creating it
2025-05-28 12:10:09,766 - INFO - Created Project:ctest-TestBasicPolicy-90254995, ID : e2d89280-d22a-427d-aff1-4f4202d2a498
2025-05-28 12:10:11,432 - INFO - ================================================================================
2025-05-28 12:10:11,432 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-28 12:10:11,432 - 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-28 12:10:11,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-05-28 12:10:11,699 - INFO - Initial checks done. Running the testcase now
2025-05-28 12:10:11,699 - INFO -
2025-05-28 12:10:12,322 - DEBUG - Response for create_network : {'network': {'id': 'f55d4348-51dc-4a8d-b287-657b7de3fc6e', 'name': 'ctest-vn-24656424', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'project_id': 'e2d89280d22a427daff14f4202d2a498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-vn-24656424'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 12:10:12,526 - DEBUG - Response for create_subnet : {'subnet': {'id': '150b389b-d71d-4938-b7b5-c29eab7f0704', 'name': '', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'network_id': 'f55d4348-51dc-4a8d-b287-657b7de3fc6e', 'ip_version': 4, 'cidr': '201.229.182.192/26', 'allocation_pools': [{'start': '201.229.182.194', 'end': '201.229.182.254'}], 'gateway_ip': '201.229.182.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.229.182.194', 'tags': [], 'project_id': 'e2d89280d22a427daff14f4202d2a498'}}
2025-05-28 12:10:12,544 - INFO - Created VN ctest-vn-24656424
2025-05-28 12:10:12,599 - DEBUG - VN ctest-vn-24656424 UUID is f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:12,897 - DEBUG - Response for create_network : {'network': {'id': '8ca04cf7-727b-4fcb-a2ab-385fc7cca24f', 'name': 'ctest-vn-40309524', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'project_id': 'e2d89280d22a427daff14f4202d2a498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-vn-40309524'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 12:10:13,100 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9d6172e-5211-4636-b1ec-1d78ce1c78c0', 'name': '', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'network_id': '8ca04cf7-727b-4fcb-a2ab-385fc7cca24f', 'ip_version': 4, 'cidr': '132.246.10.0/26', 'allocation_pools': [{'start': '132.246.10.2', 'end': '132.246.10.62'}], 'gateway_ip': '132.246.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.246.10.2', 'tags': [], 'project_id': 'e2d89280d22a427daff14f4202d2a498'}}
2025-05-28 12:10:13,122 - INFO - Created VN ctest-vn-40309524
2025-05-28 12:10:13,175 - DEBUG - VN ctest-vn-40309524 UUID is 8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:13,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424, 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-90254995:ctest-vn-40309524, 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-28 12:10:13,600 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f55d4348-51dc-4a8d-b287-657b7de3fc6e', 'name': 'ctest-vn-24656424', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'project_id': 'e2d89280d22a427daff14f4202d2a498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['150b389b-d71d-4938-b7b5-c29eab7f0704'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-vn-24656424'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-policy-allow-all-34539307']], 'subnet_ipam': [{'subnet_cidr': '201.229.182.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 12:10:13,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ca04cf7-727b-4fcb-a2ab-385fc7cca24f', 'name': 'ctest-vn-40309524', 'tenant_id': 'e2d89280d22a427daff14f4202d2a498', 'project_id': 'e2d89280d22a427daff14f4202d2a498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9d6172e-5211-4636-b1ec-1d78ce1c78c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-vn-40309524'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-policy-allow-all-34539307']], 'subnet_ipam': [{'subnet_cidr': '132.246.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 12:10:14,027 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-28 12:10:14,366 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-28 12:10:14,395 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3b9f3d8d-9c90-4e8f-beb7-906a36c758a1
2025-05-28 12:10:14,408 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2d89280-d22a-427d-aff1-4f4202d2a498
2025-05-28 12:10:14,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,492 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,501 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7eb4e199-4527-4046-a5a4-6b3c95329cfb
2025-05-28 12:10:14,508 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7eb4e199-4527-4046-a5a4-6b3c95329cfb
2025-05-28 12:10:14,515 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c7ba9f83-23d5-4677-9c57-6f46bef27a71
2025-05-28 12:10:14,521 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 12:10:14,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,530 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7eb4e199-4527-4046-a5a4-6b3c95329cfb
2025-05-28 12:10:14,547 - INFO - Verified VN network id 8 for VN f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,547 - INFO - Verifications in API Server for VN ctest-vn-24656424 passed
2025-05-28 12:10:14,547 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7eb4e199-4527-4046-a5a4-6b3c95329cfb
2025-05-28 12:10:14,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7eb4e199-4527-4046-a5a4-6b3c95329cfb
2025-05-28 12:10:14,570 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c7ba9f83-23d5-4677-9c57-6f46bef27a71
2025-05-28 12:10:14,583 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90254995', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17680361690016533133', 'uuid-lslong': '12864362441674587246'}, 'enable': 'true', 'created': '2025-05-28T12:10:12', 'last-modified': '2025-05-28T12:10:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012312'}
2025-05-28 12:10:14,589 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 12:10:14,589 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24656424 passed
2025-05-28 12:10:14,590 - DEBUG - ====Verifying policy data for ctest-vn-24656424 in API_Server ======
2025-05-28 12:10:14,590 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-28 12:10:14,595 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3b9f3d8d-9c90-4e8f-beb7-906a36c758a1
2025-05-28 12:10:14,606 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2d89280-d22a-427d-aff1-4f4202d2a498
2025-05-28 12:10:14,679 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f55d4348-51dc-4a8d-b287-657b7de3fc6e
2025-05-28 12:10:14,689 - DEBUG - ==>Verifying data for policy with id: 9e3cf2df-85ed-4d59-9193-7fac166dfb7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-policy-allow-all-34539307']
2025-05-28 12:10:14,689 - INFO - VN ctest-vn-24656424 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 12:10:14,689 - DEBUG - Verifying the vn in opserver
2025-05-28 12:10:14,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424 virtual network link through opserver 10.0.0.254
2025-05-28 12:10:14,690 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-28 12:10:15,024 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-28 12:10:15,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424?flat'}
2025-05-28 12:10:15,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-24656424 is found in opserver
2025-05-28 12:10:15,098 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 12:10:15,104 - DEBUG - VRF ids for VN ctest-vn-24656424: {}
2025-05-28 12:10:15,104 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-28 12:10:15,109 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3b9f3d8d-9c90-4e8f-beb7-906a36c758a1
2025-05-28 12:10:15,123 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2d89280-d22a-427d-aff1-4f4202d2a498
2025-05-28 12:10:15,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,219 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c4c2a2a-1f31-4df6-b515-d61981a83ba3
2025-05-28 12:10:15,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c4c2a2a-1f31-4df6-b515-d61981a83ba3
2025-05-28 12:10:15,235 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e194d101-4de6-411c-8d5c-697dba3220b0
2025-05-28 12:10:15,241 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 12:10:15,242 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,252 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c4c2a2a-1f31-4df6-b515-d61981a83ba3
2025-05-28 12:10:15,269 - INFO - Verified VN network id 9 for VN 8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,269 - INFO - Verifications in API Server for VN ctest-vn-40309524 passed
2025-05-28 12:10:15,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,280 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c4c2a2a-1f31-4df6-b515-d61981a83ba3
2025-05-28 12:10:15,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c4c2a2a-1f31-4df6-b515-d61981a83ba3
2025-05-28 12:10:15,294 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e194d101-4de6-411c-8d5c-697dba3220b0
2025-05-28 12:10:15,307 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-40309524', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90254995', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10133183787244933067', 'uuid-lslong': '11721524439186973263'}, 'enable': 'true', 'created': '2025-05-28T12:10:12', 'last-modified': '2025-05-28T12:10:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.483439'}
2025-05-28 12:10:15,314 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 12:10:15,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40309524 passed
2025-05-28 12:10:15,314 - DEBUG - ====Verifying policy data for ctest-vn-40309524 in API_Server ======
2025-05-28 12:10:15,314 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-28 12:10:15,320 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3b9f3d8d-9c90-4e8f-beb7-906a36c758a1
2025-05-28 12:10:15,332 - DEBUG - Requesting: http://10.0.0.254:8082/project/e2d89280-d22a-427d-aff1-4f4202d2a498
2025-05-28 12:10:15,404 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8ca04cf7-727b-4fcb-a2ab-385fc7cca24f
2025-05-28 12:10:15,418 - DEBUG - ==>Verifying data for policy with id: 9e3cf2df-85ed-4d59-9193-7fac166dfb7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-90254995', 'ctest-policy-allow-all-34539307']
2025-05-28 12:10:15,418 - INFO - VN ctest-vn-40309524 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 12:10:15,418 - DEBUG - Verifying the vn in opserver
2025-05-28 12:10:15,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-40309524 virtual network link through opserver 10.0.0.254
2025-05-28 12:10:15,418 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-28 12:10:15,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-40309524', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-40309524?flat'}
2025-05-28 12:10:15,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90254995:ctest-vn-40309524 is found in opserver
2025-05-28 12:10:15,442 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 12:10:15,448 - DEBUG - VRF ids for VN ctest-vn-40309524: {}
2025-05-28 12:10:15,504 - DEBUG - Services list from nova: [