2025-05-15 16:28:23,193 - INFO - Domain Default found not creating
2025-05-15 16:28:23,319 - INFO - Project ctest-TestBasicPolicy-30994486 not found, creating it
2025-05-15 16:28:23,750 - INFO - Created Project:ctest-TestBasicPolicy-30994486, ID : f572ed2c-240c-44d2-a48f-1be0487f8a2f
2025-05-15 16:28:25,100 - INFO - ================================================================================
2025-05-15 16:28:25,101 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 16:28:25,101 - 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-15 16:28:25,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-15 16:28:25,359 - INFO - Initial checks done. Running the testcase now
2025-05-15 16:28:25,359 - INFO -
2025-05-15 16:28:25,874 - DEBUG - Response for create_network : {'network': {'id': '00773616-dabb-4023-8182-e2769f526305', 'name': 'ctest-vn-60581294', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-60581294'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 16:28:26,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '7acb750b-4ef1-4512-a5cd-68d16d86282f', 'name': '', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'network_id': '00773616-dabb-4023-8182-e2769f526305', 'ip_version': 4, 'cidr': '40.230.254.64/26', 'allocation_pools': [{'start': '40.230.254.66', 'end': '40.230.254.126'}], 'gateway_ip': '40.230.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.230.254.66', 'tags': [], 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f'}}
2025-05-15 16:28:26,075 - INFO - Created VN ctest-vn-60581294
2025-05-15 16:28:26,126 - DEBUG - VN ctest-vn-60581294 UUID is 00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:26,439 - DEBUG - Response for create_network : {'network': {'id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'name': 'ctest-vn-31866987', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-31866987'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 16:28:26,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '1824d891-3c61-4e60-9c4c-74d7a3bbd7bd', 'name': '', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'network_id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'ip_version': 4, 'cidr': '25.77.203.192/26', 'allocation_pools': [{'start': '25.77.203.194', 'end': '25.77.203.254'}], 'gateway_ip': '25.77.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.77.203.194', 'tags': [], 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f'}}
2025-05-15 16:28:26,612 - INFO - Created VN ctest-vn-31866987
2025-05-15 16:28:26,662 - DEBUG - VN ctest-vn-31866987 UUID is 172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:26,802 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294, 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-30994486:ctest-vn-31866987, 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-15 16:28:27,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00773616-dabb-4023-8182-e2769f526305', 'name': 'ctest-vn-60581294', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7acb750b-4ef1-4512-a5cd-68d16d86282f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-60581294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']], 'subnet_ipam': [{'subnet_cidr': '40.230.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 16:28:27,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'name': 'ctest-vn-31866987', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1824d891-3c61-4e60-9c4c-74d7a3bbd7bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-31866987'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']], 'subnet_ipam': [{'subnet_cidr': '25.77.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 16:28:27,458 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-15 16:28:27,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-15 16:28:27,776 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f
2025-05-15 16:28:27,788 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f
2025-05-15 16:28:27,871 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:27,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:27,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292
2025-05-15 16:28:27,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292
2025-05-15 16:28:27,902 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19dee53d-3488-4461-8124-014a7dc6459a
2025-05-15 16:28:27,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 16:28:27,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:27,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292
2025-05-15 16:28:27,928 - INFO - Verified VN network id 7 for VN 00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:27,929 - INFO - Verifications in API Server for VN ctest-vn-60581294 passed
2025-05-15 16:28:27,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:27,937 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292
2025-05-15 16:28:27,943 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292
2025-05-15 16:28:27,949 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19dee53d-3488-4461-8124-014a7dc6459a
2025-05-15 16:28:27,959 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30994486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '33554994015453219', 'uuid-lslong': '9332270376972083973'}, 'enable': 'true', 'created': '2025-05-15T16:28:25', 'last-modified': '2025-05-15T16:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889855'}
2025-05-15 16:28:27,965 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 16:28:27,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60581294 passed
2025-05-15 16:28:27,966 - DEBUG - ====Verifying policy data for ctest-vn-60581294 in API_Server ======
2025-05-15 16:28:27,966 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-15 16:28:27,970 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f
2025-05-15 16:28:27,980 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f
2025-05-15 16:28:28,049 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305
2025-05-15 16:28:28,058 - DEBUG - ==>Verifying data for policy with id: 8ad579e0-562f-4a0b-807d-df1a7a7f988d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']
2025-05-15 16:28:28,058 - INFO - VN ctest-vn-60581294 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 16:28:28,059 - DEBUG - Verifying the vn in opserver
2025-05-15 16:28:28,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294 virtual network link through opserver 10.0.0.254
2025-05-15 16:28:28,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-15 16:28:28,346 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-15 16:28:28,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294?flat'}
2025-05-15 16:28:28,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294 is found in opserver
2025-05-15 16:28:28,405 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 16:28:28,410 - DEBUG - VRF ids for VN ctest-vn-60581294: {}
2025-05-15 16:28:28,410 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-15 16:28:28,415 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f
2025-05-15 16:28:28,428 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f
2025-05-15 16:28:28,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a
2025-05-15 16:28:28,520 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a
2025-05-15 16:28:28,526 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/924712a3-d414-450b-a4d7-097a34123cec
2025-05-15 16:28:28,531 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 16:28:28,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a
2025-05-15 16:28:28,551 - INFO - Verified VN network id 8 for VN 172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,551 - INFO - Verifications in API Server for VN ctest-vn-31866987 passed
2025-05-15 16:28:28,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,559 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a
2025-05-15 16:28:28,565 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a
2025-05-15 16:28:28,571 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/924712a3-d414-450b-a4d7-097a34123cec
2025-05-15 16:28:28,582 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30994486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1669859298363262504', 'uuid-lslong': '10343660570571441997'}, 'enable': 'true', 'created': '2025-05-15T16:28:26', 'last-modified': '2025-05-15T16:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284592'}
2025-05-15 16:28:28,588 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 16:28:28,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31866987 passed
2025-05-15 16:28:28,588 - DEBUG - ====Verifying policy data for ctest-vn-31866987 in API_Server ======
2025-05-15 16:28:28,588 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-15 16:28:28,593 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f
2025-05-15 16:28:28,604 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f
2025-05-15 16:28:28,669 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d
2025-05-15 16:28:28,679 - DEBUG - ==>Verifying data for policy with id: 8ad579e0-562f-4a0b-807d-df1a7a7f988d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']
2025-05-15 16:28:28,679 - INFO - VN ctest-vn-31866987 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 16:28:28,679 - DEBUG - Verifying the vn in opserver
2025-05-15 16:28:28,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987 virtual network link through opserver 10.0.0.254
2025-05-15 16:28:28,679 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-15 16:28:28,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987?flat'}
2025-05-15 16:28:28,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987 is found in opserver
2025-05-15 16:28:28,699 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 16:28:28,704 - DEBUG - VRF ids for VN ctest-vn-31866987: {}
2025-05-15 16:28:28,754 - DEBUG - Services list from nova: [